amazon-web-services - 使用 aws-cdk 和 launch-template 的 cfn-hup 的正确资源路径

标签 amazon-web-services aws-cloudformation

我找到的所有示例都是针对 LaunchConfiguration 和 cfn-hup 的。但我想用

  • 一个 LaunchTemplate,具有
  • AutoScalingGroup
  • 其中应用了 CloudFormationInit 并且
  • 容量提供商

通常情况下,您会使用 path=Resources.ECSLaunchConfiguration.Metadata.AWS::CloudFormation::Init

我的设置的正确路径是什么?我的尝试失败了。
cfn-hup 有替代方案吗?

最佳答案

这个问题的解决方案是使用逻辑ID:

f"path=Resources{self.get_logical_id(self.autoscaling_group.node.default_child)}.Metadata.AWS::CloudFormation::Init"

关于amazon-web-services - 使用 aws-cdk 和 launch-template 的 cfn-hup 的正确资源路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/76714671/

相关文章:

amazon-web-services - aws sdk lambda列表函数返回空函数数组

amazon-web-services - Lambda 错误未触发 Lambda 目标

linux - 如何在没有 Route53 的情况下在 aws 上配置 dns 子级别?

amazon-web-services - AWS API-Gateway 与 SNS 通信

aws-cloudformation - Cloudformation BackupRetentionPeriod 对 RDS Aurora 集群没有任何影响

amazon-web-services - 适用于 IAM 的 AWS Cloudformation 模板帮助

amazon-web-services - AWS Internet Gateway 看不到 VPC

amazon-web-services - 有没有办法从 CFT 中的 DNS 名称获取 HostedZoneId?

amazon-web-services - 需要功能 : [CAPABILITY_IAM] mean and how do i activate this? 是什么意思

amazon-web-services - AWS Service Catalog 使用 terraform 预置产品