rhythmic-camera-25993
01/13/2020, 10:04 PMSecret
with a value, you can use the secret in your taskDefinition's container definition, eg:
// secrets can be passed in as env variables too!
secrets: dbPassword.arn.apply(arn =>[
{ name: "PGPASSWORD", valueFrom: arn }
]),
where dbPassword
is a SecretValue
resource that I used to set a password on a dbPassword
Secret