用金建立对流层

2024-05-04 08:07:05 发布

您现在位置:Python中文网/ 问答频道 /正文

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


Tags: 例子极光对流层
2条回答

试试极光蓝图here。在

为了设置aurora,应该确保正确设置了db实例和db集群。下面是在专有网络中设置极光的代码片段。在

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'
    )
  • 在对流层模板中加入上述两种资源。在

相关问题 更多 >