我在通过 CloudFormation 更新/修改 AWS Config 时遇到问题。该用例是开始将更改流式传输到现有 AWS Config 传输通道上的 SNS 主题,该通道当前仅配置了 S3 存储桶。
代码如下所示:
"ConfigDeliveryChannel": {
"Type": "AWS::Config::DeliveryChannel",
"Properties": {
"S3BucketName": {"Ref": "ConfigBucket"},
"SnsTopicARN": {
"Ref": "ConfigTopic"
}
}
},
Run Code Online (Sandbox Code Playgroud)
非常基本的东西。我试图放弃该存储桶,因为我不想更新它,但 CloudFormation 抱怨这是必需的。好的,现在我有一个参数可以接收存储桶名称。SNS 主题是在我的模板中进一步创建的资源。但是,当我执行堆栈时,出现以下错误:
Failed to put delivery channel '<name>' because the maximum number of delivery channels: 1 is reached. (Service: AmazonConfig; Status Code: 400; Error Code: MaxNumberOfDeliveryChannelsExceededException; )
Run Code Online (Sandbox Code Playgroud)
那么如何才能做到这一点呢?这是通过 CloudFormation 不可能完成的任务,必须通过控制台手动完成吗?提前致谢!