1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
CloudFormation supports adding resource tags directly to the resources that support tagging, for example;
"Resources": {
"bucket": {
"Type": "AWS::S3::Bucket",
"Properties": {
"BucketName": {
"Ref": "s3BucketName"
},
"PublicAccessBlockConfiguration": {
"BlockPublicAcls": false,
"BlockPublicPolicy": false,
"IgnorePublicAcls": false,
"RestrictPublicBuckets": false
},
"Tags": [
{
"Key": "keyname1",
"Value": "value1"
},
{
"Key": "keyname2",
"Value": "value2"
}
]
}
}
},
CloudFormation does not support adding Tags as a Parameter value within the stack. The following is the list of supported Types. Tags are required to be a List hence the error message returned requesting a JSONArray rather a String. However, CloudFormation currently only supports a List<number> type.
답변함 4달 전
관련 콘텐츠
- AWS 공식업데이트됨 2년 전