Skip to content

Commit

Permalink
ROX-16894: Enable CloudWatch log exports for new RDS DBs (#1013)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladbologa authored May 4, 2023
1 parent b27ede3 commit beaf7c9
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions fleetshard/pkg/central/cloudprovider/awsclient/rds.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,13 +318,14 @@ func getFailoverInstanceID(databaseID string) string {

func newCreateCentralDBClusterInput(clusterID, dbPassword, securityGroup, subnetGroup, dataplaneClusterName string) *rds.CreateDBClusterInput {
return &rds.CreateDBClusterInput{
DBClusterIdentifier: aws.String(clusterID),
Engine: aws.String(dbEngine),
EngineVersion: aws.String(dbEngineVersion),
MasterUsername: aws.String(dbUser),
MasterUserPassword: aws.String(dbPassword),
VpcSecurityGroupIds: aws.StringSlice([]string{securityGroup}),
DBSubnetGroupName: aws.String(subnetGroup),
DBClusterIdentifier: aws.String(clusterID),
Engine: aws.String(dbEngine),
EngineVersion: aws.String(dbEngineVersion),
EnableCloudwatchLogsExports: aws.StringSlice([]string{"postgresql"}),
MasterUsername: aws.String(dbUser),
MasterUserPassword: aws.String(dbPassword),
VpcSecurityGroupIds: aws.StringSlice([]string{securityGroup}),
DBSubnetGroupName: aws.String(subnetGroup),
ServerlessV2ScalingConfiguration: &rds.ServerlessV2ScalingConfiguration{
MinCapacity: aws.Float64(dbMinCapacityACU),
MaxCapacity: aws.Float64(dbMaxCapacityACU),
Expand Down

0 comments on commit beaf7c9

Please sign in to comment.