You must be logged in to view saved presets
Configuration template to launch an Aurora cluster with PostgreSQL compatibility with one or more instances. The template also includes a new DB subnet group to specify the subnets for the cluster instances to be created as well as a new AWS Secrets Manager secret to store the password
Settings for customizing the template include:
AWSTemplateFormatVersion: '2010-09-09'
Description: ''
Resources:
DbSecret:
Type: 'AWS::SecretsManager::Secret'
Properties:
KmsKeyId: alias/aws/secretsmanager
GenerateSecretString:
ExcludeLowercase: false
ExcludeNumbers: false
ExcludePunctuation: false
ExcludeUppercase: false
PasswordLength: 32
ExcludeCharacters: /"@\
RdsCluster:
Type: 'AWS::RDS::DBCluster'
Properties:
Engine: aurora-postgresql
EngineVersion: '13.3'
DBClusterIdentifier: aurora-postgres-cluster
DBSubnetGroupName: custom-subnet-group
MasterUsername: dbadmin
MasterUserPassword:
'Fn::Sub': '{{resolve:secretsmanager:${DbSecret}}}'
Port: '5432'
StorageEncrypted: false
BackupRetentionPeriod: 1
DeletionProtection: false
RdsClusterInstance1:
Type: 'AWS::RDS::DBInstance'
Properties:
Engine: aurora-postgresql
DBClusterIdentifier:
Ref: RdsCluster
DBInstanceIdentifier: aurora-postgres-clusterInstance1
DBInstanceClass: db.t3.medium
DBSubnetGroupName: custom-subnet-group
Parameters: {}
Metadata: {}
Conditions: {}