purple-megabyte-83002
12/25/2021, 3:04 PMconst jwtSecretParam = new aws.ssm.Parameter('JWT_SECRET', {
type: 'SecureString',
value: cfg.requireSecret('JWT_SECRET'),
});
const service = new awsx.ecs.FargateService('api', {
desiredCount: 2,
taskDefinitionArgs: {
cpu: '256',
memory: '512',
container: {
secrets: [
{
name: 'JWT_SECRET',
valueFrom: jwtSecretParam.arn,
},
],
},
},
});