elegant-king-24193
10/13/2023, 9:48 AMcuddly-finland-73937
10/13/2023, 2:42 PM:
:
const secrets = {
MONGODB_URI: ecs.Secret.fromSecretsManager(docDB, 'MONGODB_URI'),
JWT_SECRET: ecs.Secret.fromSecretsManager(growthbookSecret, 'JWT_SECRET'),
ENCRYPTION_KEY: ecs.Secret.fromSecretsManager(growthbookSecret, 'ENCRYPTION_KEY'),
EMAIL_HOST_PASSWORD: ecs.Secret.fromSecretsManager(growthbookSecret, 'EMAIL_HOST_PASSWORD'),
SECRET_API_KEY: ecs.Secret.fromSecretsManager(growthbookSecret, 'SECRET_API_KEY'),
}
:
:
growthbookTask.addContainer('XYZGrowthBookContainer', {
image,
containerName,
essential: true,
logging: ecs.LogDrivers.awsLogs({
streamPrefix: 'xyz-growthbook',
logGroup,
}),
environment,
secrets,
portMappings: [{
containerPort: 3000,
}, {
containerPort: 3100,
}],
})
:
:
Doing it this way obviously breaks some stuff but it solves the specific issue you are seeing. Here us a thread where I suggested a possible fix for the code:
https://growthbookusers.slack.com/archives/C01T6Q1SVFV/p1695853665411299?thread_ts=1695783518.412269&cid=C01T6Q1SVFVelegant-king-24193
10/13/2023, 8:36 PMcuddly-finland-73937
10/15/2023, 12:20 AMMONGODB_URL
. I did have to put the entire MONGODB_URI string in the secrets.elegant-king-24193
10/16/2023, 10:44 AMcuddly-finland-73937
10/16/2023, 2:21 PMMONGODB_URI
in secrets and set that in the environmentelegant-king-24193
10/17/2023, 6:34 AMcuddly-finland-73937
10/17/2023, 12:37 PM