-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
@aws-cdk/aws-ecsRelated to Amazon Elastic ContainerRelated to Amazon Elastic Container@aws-cdk/aws-rdsRelated to Amazon Relational DatabaseRelated to Amazon Relational Databaseeffort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.in-progressThis issue is being actively worked on.This issue is being actively worked on.
Description
❓ General Issue
I wonder what's the proposed way to use the generated secret from an rds instance/cluster.
const database = new rds.DatabaseCluster(this, 'DatabaseCluster', {
removalPolicy: RemovalPolicy.DESTROY,
defaultDatabaseName: scope.getConfig(this, 'wordpressDbName'),
masterUser: {
username: 'wordpress',
},
instances: 1,
engine: rds.DatabaseClusterEngine.AURORA,
instanceProps: {
instanceType: ec2.InstanceType.of(ec2.InstanceClass.T3, ec2.InstanceSize.SMALL),
vpc: vpc,
}
})In ECS I would like to get only the password. All other information is known anyway.
WORDPRESS_DB_PASSWORD: ecs.Secret.fromSecretsManager(database.secret?.secretValueFromJson('password')),but this does not work. Modifications inside the container should not be the solution.
Environment
- CDK CLI Version: 1.19.0
- Module Version: 1.19.0
ogrodnek, Globegitter, husyn and ryparker
Metadata
Metadata
Labels
@aws-cdk/aws-ecsRelated to Amazon Elastic ContainerRelated to Amazon Elastic Container@aws-cdk/aws-rdsRelated to Amazon Relational DatabaseRelated to Amazon Relational Databaseeffort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.in-progressThis issue is being actively worked on.This issue is being actively worked on.