aws-cloudformation - AWS :elastic_ip Assign a name to an elastic ip using cloudformation

标签 aws-cloudformation

我正在尝试使用 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/

相关文章:

amazon-web-services - aws cloudformation 使用 Fn::加入列表

aws-cloudformation - 使用模板创建 Athena 工作组

amazon-web-services - Cloudformation 脚本故障排除

json - 允许同一安全组中的每个实例在 Cloud Formation JSON 中相互共享任何数据吗?

amazon-web-services - 无法创建 CloudFormation 堆栈

amazon-web-services - 我在执行 aws cloudformation 模板时遇到错误,抛出错误 ROLLBACK_COMPLETE

amazon-web-services - Cloudformation YAML : expected type String, 找到 JSONObject

amazon-web-services - AWS云信息: How to run cfn-nag locally in Windows

aws-cloudformation - AWS ELB 将 HTTP 重定向到 HTTPS

amazon-web-services - 如何通过cloudformation模板访问s3存储桶的内容?