Skip to content

Commit

Permalink
fix: enable IAM auth in the CF
Browse files Browse the repository at this point in the history
  • Loading branch information
jvmakine committed Nov 28, 2024
1 parent 5e55167 commit eaf0f51
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions cmd/ftl-provisioner-cloudformation/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit eaf0f51

Please sign in to comment.