Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
options.env.ProgressTable = tableArn;
}
Resources[prefixed('Task')] = {
Type: 'AWS::ECS::TaskDefinition',
Properties: {
TaskRoleArn: cf.ref(prefixed('Role')),
Family: options.family,
ContainerDefinitions: [
{
Name: cf.join('-', [prefixed(''), cf.stackName]),
Image: cf.join([
cf.accountId,
'.dkr.ecr.',
cf.findInMap('EcrRegion', cf.region, 'Region'),
'.',
cf.urlSuffix,
'/',
options.service,
':',
options.serviceVersion
]),
Cpu: options.reservation.cpu,
Privileged: options.privileged,
Environment: unpackEnv(options.env, mounts.mountPoints),
MountPoints: mounts.mountPoints,
Command: ['watchbot', 'listen', `${options.command}`],
Ulimits: [
{
Name: 'nofile',
SoftLimit: 10240,