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