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 공식업데이트됨 2년 전
- AWS 공식업데이트됨 3년 전
- AWS 공식업데이트됨 일 년 전