【发布时间】:2021-10-14 14:54:46
【问题描述】:
{
"AWSTemplateFormatVersion": "2010-09-09",
"Parameters": {
"EnterIpAddress":{
"Type": "String"
}
},
"Resource":{
"XyZ":{
"Type": "AWS::ECS::TaskDefinition",
"ContainerDefinitions": [
{
"Command": [
{
"Fn::Join": [
"=", [
"--beacon_ip",
{
"Ref": "EnterIpAddress"
}
]
]
}
]
}
]
}
}
}
我想将该参数用作 Fn::Join 中的引用,以便我的最终输出为
"--beacon_ip=xx.xxx.xxx.xx"
我希望用户在哪里输入 IP 地址(xx.xxx.xxx.xx)
但我在将模板上传到堆栈时收到此错误:
Template format error: Unresolved resource dependencies [EnterIpAddress] in the Resources block of the template
请告诉我如何实现所需的输出。谢谢
【问题讨论】:
标签: json amazon-web-services amazon-cloudformation