amazon-web-services - AWS Config 和对流层

标签 amazon-web-services aws-cloudformation troposphere aws-config

我正在寻找有关如何配置 AWS Config 的文档利用对流层。不幸的是,我很难找到针对这个特殊情况的有用文档。我查看了 GitHub 上的对流层文档但似乎找不到任何相关的东西。任何指导将不胜感激。

最佳答案

我自己并不了解 AWS Config,因此无法提供太多帮助,但以下是所有可用 AWS Config 资源的 Cloudformation 文档:

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-reference-config.html

这里是相应的对流层天体:

https://github.com/cloudtools/troposphere/blob/master/troposphere/config.py

需要注意的一件事是,对流层试图成为 CF 模板规范的 1:1 翻译,因此您通常可以使用现有的 Cloudformation 文档/示例,但将它们转换为对流层/python 语法。一个例子:

在 Cloudformation 中,要创建存储桶,您可以使用以下命令:

MyBucket:
  Type: AWS::S3::Bucket
  Properties:
    BucketName: my-bucket

这样转换成对流层:

from troposphere import s3, Template

t = Template()
my_s3_bucket = t.add_resource(
    s3.Bucket(
        "MyBucket",
        BucketName="my-bucket",
    )
)

希望有所帮助,抱歉,我不太了解 AWS Config!

关于amazon-web-services - AWS Config 和对流层,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54256048/

相关文章:

python - 配置 AWS Cloud9 以使用 Anaconda Python 环境

aws-cloudformation - 在 lambda 存在之前创建 lambda 角色和策略

amazon-web-services - 错误: Value of property LoadBalancerAttributes must be of type List

tomcat - 适用于 AWS 云的最佳应用服务器容器

java - Amazon S3 - 使用 Java API 在 S3 存储桶中递归列出所有 zip 文件

amazon-web-services - 如何在负载均衡器中生成 ListenerCertificate CertificateArn

python 包已安装但无法导入

aws-cloudformation - 使用对流层将 CloudWatch 警报与 MetricFilter 关联

c# - 通过 MongoDB C# 驱动程序使用 SSL 连接到 DocumentDB

javascript - 使用无服务器框架在 YML 中的代码块中使用 Javascript Resolver 时出现 AWS::Appsync:Resolver Cloudformation 错误