1 回答
- 最新
- 投票最多
- 评论最多
0
Hello.
I think it's possible to set variables within JSON.
For example, if you do the following, the value test1 will be set in the EC2 tag.
test=test1
aws ec2 create-tags --resources i-aaaaaaaaaaaaa --tags '[{"Key": "test", "Value": "'$test'"}]'
相关内容
- AWS 官方已更新 1 年前
- AWS 官方已更新 7 个月前