【发布时间】:2021-03-01 18:38:30
【问题描述】:
假设我在 SSM ParameterStore 中有一个参数。参数有一个StringList作为值,描述一个服务,例如(bucket_name, request_url)
"serviceA" = "bucket_name_A, https://www.request.com/A"
现在,在 CloudFormation 中,我想从此字符串列表中定义我的存储桶的名称。
"S3FTSE100Intraday1min": {
"Type": "AWS::S3::Bucket",
"Properties": {
"BucketName": {
"Fn::GetAtt": [
"My_SSM_ParameterStore_Logical_ID",
"Value"
]
},
...
但显然这将返回完整的字符串列表,而不仅仅是bucket_name_A
如何访问要在 CloudFormation 模板中使用的字符串列表中的参数之一?
【问题讨论】:
标签: amazon-web-services amazon-cloudformation aws-ssm aws-parameter-store