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ヶ月前