From b9938c7623a4ebc4509d41d3a2a562ce9a8a536b Mon Sep 17 00:00:00 2001 From: Lew Date: Tue, 28 Apr 2020 15:01:08 +1000 Subject: [PATCH 1/2] add db name --- aurora-postgres.cfndsl.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/aurora-postgres.cfndsl.rb b/aurora-postgres.cfndsl.rb index 913d3cf..2eba6af 100644 --- a/aurora-postgres.cfndsl.rb +++ b/aurora-postgres.cfndsl.rb @@ -65,6 +65,7 @@ MasterUserPassword FnIf('UseUsernameAndPassword', FnJoin('', [ '{{resolve:ssm-secure:', FnSub(master_login['password_ssm_param']), ':1}}' ]), Ref('AWS::NoValue')) DBSubnetGroupName Ref(:DBClusterSubnetGroup) VpcSecurityGroupIds [ Ref(:SecurityGroup) ] + DatabaseName database_name if defined? database_name StorageEncrypted storage_encrypted if defined? storage_encrypted KmsKeyId Ref('KmsKeyId') if (defined? kms) && (kms) Port cluster_port From 6d177e7f04bfd27a6b720df88c10bb2e827a9266 Mon Sep 17 00:00:00 2001 From: Lew Date: Thu, 30 Apr 2020 12:18:06 +1000 Subject: [PATCH 2/2] requested adjustments --- aurora-postgres.cfndsl.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aurora-postgres.cfndsl.rb b/aurora-postgres.cfndsl.rb index 2eba6af..74417e6 100644 --- a/aurora-postgres.cfndsl.rb +++ b/aurora-postgres.cfndsl.rb @@ -65,7 +65,7 @@ MasterUserPassword FnIf('UseUsernameAndPassword', FnJoin('', [ '{{resolve:ssm-secure:', FnSub(master_login['password_ssm_param']), ':1}}' ]), Ref('AWS::NoValue')) DBSubnetGroupName Ref(:DBClusterSubnetGroup) VpcSecurityGroupIds [ Ref(:SecurityGroup) ] - DatabaseName database_name if defined? database_name + DatabaseName FnSub(database_name) if defined? database_name StorageEncrypted storage_encrypted if defined? storage_encrypted KmsKeyId Ref('KmsKeyId') if (defined? kms) && (kms) Port cluster_port