Skip to content

aws-6w8hnx/cdk-rds-aurora-cluster-restore

Repository files navigation

AWS RDS Aurora Cluster restore from Snapshot in AWS CDK

    new DatabaseClusterFromSnapshot(this, 'cluster', {
      snapshotIdentifier: 'aurora-posgress-test-snapshot',
      engine: DatabaseClusterEngine.auroraPostgres({ version: AuroraPostgresEngineVersion.VER_15_5 }),
      // optional, defaults to m5.large
      writer: ClusterInstance.provisioned('writer', {
        instanceType: new InstanceType("t3.medium"),
      }),
      readers: [
        ClusterInstance.provisioned('reader', {
          instanceType: new InstanceType("t3.medium"),
        }),
      ],
      vpc,
      vpcSubnets: { subnetType: SubnetType.PRIVATE_ISOLATED },
      storageEncrypted: true,
      cloudwatchLogsExports: ["postgresql"],
      cloudwatchLogsRetention: RetentionDays.ONE_DAY,
    });

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published