Skip to content

Commit

Permalink
Change RDS DBInstance to supported version (#1070)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavannd1 committed Aug 16, 2021
1 parent a997709 commit 82f112a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/app/rds_postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ type RDSPostgresDB struct {
sqlDB *sql.DB
}

const (
dbInstanceType = "db.t3.micro"
)

func NewRDSPostgresDB(name string, customRegion string) App {
return &RDSPostgresDB{
name: name,
Expand Down Expand Up @@ -146,7 +150,7 @@ func (pdb *RDSPostgresDB) Install(ctx context.Context, ns string) error {

// Create RDS instance
log.Info().Print("Creating RDS instance.", field.M{"app": pdb.name, "id": pdb.id})
_, err = rdsCli.CreateDBInstance(ctx, 20, "db.t2.micro", pdb.id, "postgres", pdb.username, pdb.password, []string{pdb.securityGroupID})
_, err = rdsCli.CreateDBInstance(ctx, 20, dbInstanceType, pdb.id, "postgres", pdb.username, pdb.password, []string{pdb.securityGroupID})
if err != nil {
return err
}
Expand Down

0 comments on commit 82f112a

Please sign in to comment.