From eaf0f51c1c7569fc73562f86a96f3cde048c114b Mon Sep 17 00:00:00 2001 From: Juho Makinen Date: Thu, 28 Nov 2024 18:09:52 +1100 Subject: [PATCH] fix: enable IAM auth in the CF --- cmd/ftl-provisioner-cloudformation/postgres.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/cmd/ftl-provisioner-cloudformation/postgres.go b/cmd/ftl-provisioner-cloudformation/postgres.go index 0367c518eb..fb7866b275 100644 --- a/cmd/ftl-provisioner-cloudformation/postgres.go +++ b/cmd/ftl-provisioner-cloudformation/postgres.go @@ -27,13 +27,14 @@ func (p *PostgresTemplater) AddToTemplate(template *goformation.Template) error clusterID := cloudformationResourceID(p.resourceID, "cluster") instanceID := cloudformationResourceID(p.resourceID, "instance") template.Resources[clusterID] = &rds.DBCluster{ - Engine: ptr("aurora-postgresql"), - MasterUsername: ptr("root"), - ManageMasterUserPassword: ptr(true), - DBSubnetGroupName: ptr(p.config.DatabaseSubnetGroupARN), - VpcSecurityGroupIds: []string{p.config.DatabaseSecurityGroup}, - EngineMode: ptr("provisioned"), - Port: ptr(5432), + Engine: ptr("aurora-postgresql"), + MasterUsername: ptr("root"), + ManageMasterUserPassword: ptr(true), + DBSubnetGroupName: ptr(p.config.DatabaseSubnetGroupARN), + VpcSecurityGroupIds: []string{p.config.DatabaseSecurityGroup}, + EngineMode: ptr("provisioned"), + Port: ptr(5432), + EnableIAMDatabaseAuthentication: ptr(true), ServerlessV2ScalingConfiguration: &rds.DBCluster_ServerlessV2ScalingConfiguration{ MinCapacity: ptr(0.5), MaxCapacity: ptr(10.0),