Configure database username and password in AWS Secrets Manager secret
This commit is contained in:
parent
53ac74e303
commit
3eb312fd8c
1 changed files with 5 additions and 4 deletions
|
|
@ -76,13 +76,14 @@ export class AwsCdkStack extends cdk.Stack {
|
|||
secretName: 'seller-central/db-credentials',
|
||||
description: 'Database credentials for the Seller Central application',
|
||||
secretObjectValue: {
|
||||
username: cdk.SecretValue.unsafePlainText('REPLACE_WITH_DB_USERNAME'),
|
||||
host: cdk.SecretValue.unsafePlainText('REPLACE_WITH_DB_HOST'),
|
||||
password: cdk.SecretValue.unsafePlainText('REPLACE_WITH_DB_PASSWORD'),
|
||||
dbname: cdk.SecretValue.unsafePlainText('REPLACE_WITH_DB_NAME'),
|
||||
username: cdk.SecretValue.unsafePlainText('vignesh'),
|
||||
host: cdk.SecretValue.unsafePlainText('127.0.0.1'),
|
||||
password: cdk.SecretValue.unsafePlainText('vtechnosoft@123A'),
|
||||
dbname: cdk.SecretValue.unsafePlainText('sellerprofile'),
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
// Create IAM Role for EC2 Instance (to allow CloudWatch Agent to write logs & metrics)
|
||||
const role = new iam.Role(this, 'internalsRole', {
|
||||
assumedBy: new iam.ServicePrincipal('ec2.amazonaws.com'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue