【问题标题】:Setting up Troposphere with Aurora使用 Aurora 设置对流层
【发布时间】:2017-11-27 14:46:17
【问题描述】:

我正在尝试使用 Troposphere 设置 Aurora,但在网上找不到任何好的示例。谁能提供一个极光对流层设置的好例子?

【问题讨论】:

    标签: python amazon-web-services amazon-aurora troposphere


    【解决方案1】:

    为了设置 aurora,您应该确保正确设置了数据库实例和数据库集群。下面是用于在 VPC 中设置极光的代码 sn-p。

    pipelinedbcluster = rds.DBCluster(
            title='PipelineDBCluster',
            DatabaseName=<your-db-name>,
            DBClusterIdentifier=<your-cluster-name>,
            DBSubnetGroupName=<your-subnet-group>,
            DBClusterParameterGroupName='default.aurora-postgresql9.6',
            DeletionProtection=False,
            Engine='aurora-postgresql',
            EngineVersion='9.6.8',
            MasterUsername=<your-username>,
            MasterUserPassword=<your-password>,
            Port=5432,
            VpcSecurityGroupIds=<your-primary-vpc-id>, #(required if creating aurora cluster in a VPC)
        )
    pipelinedb = rds.DBInstance(
            title='PipelineDBInstance',
            DBInstanceIdentifier=<your-instance-name>,
            DBClusterIdentifier=Ref(pipelinedbcluster),
            DBInstanceClass='db.r4.large',
            Engine='aurora-postgresql',
            EngineVersion='9.6.8',
            PubliclyAccessible=False,
            Tags=<your-tags>,
            AutoMinorVersionUpgrade=True,
            StorageType='aurora'
        )
    
    • 在对流层模板中添加以上两个资源。

    【讨论】:

      【解决方案2】:

      试试 Aurora 蓝图here。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2019-09-15
        • 2021-12-03
        • 1970-01-01
        • 2020-04-20
        • 1970-01-01
        • 2019-07-14
        • 2019-06-23
        • 2019-02-01
        相关资源
        最近更新 更多