我正在尝试使用 cloudformation 并使用正常流程为弹性 IP 分配一个“名称”,即:
IPAddress:
Description: 'ip:${AWS::Region}:${AWS::StackName} - elastic up for something'
Type: 'AWS::EC2::EIP'
Properties:
Tags:
- Key: Name
Value: !Sub 'ec2:${AWS::Region}:${AWS::StackName}'
出于某种原因,cloudformation 抛出错误:“不支持标签”,所以我想我是在问,有没有办法使用 cloud-formation 设置弹性 ip 的“名称”?
干杯
最佳答案
错误的原因是在 CloudFormation 中,弹性 IP 资源“AWS::EC2::EIP”不支持属性标签。
对于第二个问题,据我所知,目前无法从云形成中命名弹性IP。
更新(2019 年 11 月 22 日) 现在支持标签。请参阅文档 here .
关于aws-cloudformation - AWS :elastic_ip Assign a name to an elastic ip using cloudformation,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49993354/