mirror of
https://github.com/raseels-repos/golang-saas-starter-kit.git
synced 2025-06-06 23:46:29 +02:00
Auto generate random password for creation of RDS database instance.
This commit is contained in:
parent
72ef940eb1
commit
97e0249d38
@ -109,7 +109,7 @@ func generateToken(ctx context.Context, dbConn *sqlx.DB, tknGen TokenGenerator,
|
||||
|
||||
// Build select statement for users_accounts table to find all the user accounts for the user
|
||||
f := func() ([]userAccount, error) {
|
||||
query := sqlbuilder.NewSelectBuilder().Select("ua.account_id, ua.roles, ua.status as userStatus, ua.archived_at userArchived, a.status as accountStatus, a.archived_at, a.timezone, u.timezone as accountArchived").
|
||||
query := sqlbuilder.NewSelectBuilder().Select("ua.account_id, ua.roles, ua.status as userStatus, ua.archived_at userArchived, a.status as accountStatus, a.archived_at, a.timezone, u.timezone as userTimezone").
|
||||
From(userAccountTableName+" ua").
|
||||
Join(accountTableName+" a", "a.id = ua.account_id").
|
||||
Join(userTableName+" u", "u.id = ua.user_id")
|
||||
|
@ -26,6 +26,13 @@ in other configuration files. And since this project is open-source, we wanted t
|
||||
|
||||
If you don't have an AWS account, signup for one now and then proceed with the deployment setup.
|
||||
|
||||
We assume that if you are deploying the SaaS Stater Kit, you are starting from scratch with no existing dependencies.
|
||||
This however, excludes any domain names that you would like to use for resolving your services publicly. To use any
|
||||
pre-purchased domain names, make sure they are added to Route 53 in the AWS account. Or you can let the deploy script
|
||||
create a new zone is Route 53 and update the DNS for the domain name when your ready to make the transition. It is
|
||||
required to hosted the DNS on Route 53 so DNS entries can be managed by this deploy tool. It is possible to use a
|
||||
[subdomain that uses Route 53 as the DNS service without migrating the parent domain](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/CreatingNewSubdomain.html).
|
||||
|
||||
|
||||
## Getting Started
|
||||
|
||||
|
@ -831,7 +831,7 @@ func NewServiceDeployRequest(log *log.Logger, flags ServiceDeployFlags) (*servic
|
||||
DBName: aws.String("shared"),
|
||||
Engine: aws.String("postgres"),
|
||||
MasterUsername: aws.String("god"),
|
||||
MasterUserPassword: aws.String("mypassword"), // When empty auto generated.
|
||||
MasterUserPassword: uuid.NewRandom().String(),
|
||||
Port: aws.Int64(5432),
|
||||
DBInstanceClass: aws.String("db.t2.small"),
|
||||
AllocatedStorage: aws.Int64(20),
|
||||
|
Loading…
x
Reference in New Issue
Block a user