Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkg/clouds/aws/rds_postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type PostgresConfig struct {
Username string `json:"username" yaml:"username"`
Password string `json:"password" yaml:"password"`
DatabaseName *string `json:"databaseName" yaml:"databaseName"`
InitSQL *string `json:"initSQL,omitempty" yaml:"initSQL,omitempty"`
}

func ReadRdsPostgresConfig(config *api.Config) (api.Config, error) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/clouds/pulumi/aws/compute_proc.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func RdsPostgresComputeProcessor(ctx *sdk.Context, stack api.Stack, input api.Re
"PGUSER": rootPgUsername,
"PGDATABASE": "postgres",
"PGPASSWORD": rootPgPassword,
"INIT_SQL": "", // No additional SQL needed for AWS RDS initialization
"INIT_SQL": lo.FromPtrOr(postgresCfg.InitSQL, ""),
},
}); err != nil {
return nil, errors.Wrapf(err, "failed to run init task for rds postgres")
Expand Down
Loading