Golden Path ECS Fargate Task Definition for ZAR services.
Provides ZAR-specific defaults and best practices:
const taskDef = new EcsFargateTaskDefinition(this, 'TaskDef', { appName: 'ZarCore', deployEnvironment: 'staging', image: ecs.ContainerImage.fromEcrRepository(repo, 'v1.0.0'), imageVersion: 'v1.0.0', secrets: { DATABASE_URL: ecs.Secret.fromSecretsManager(dbSecret, 'DATABASE_URL'), },}); Copy
const taskDef = new EcsFargateTaskDefinition(this, 'TaskDef', { appName: 'ZarCore', deployEnvironment: 'staging', image: ecs.ContainerImage.fromEcrRepository(repo, 'v1.0.0'), imageVersion: 'v1.0.0', secrets: { DATABASE_URL: ecs.Secret.fromSecretsManager(dbSecret, 'DATABASE_URL'), },});
Readonly
The main container definition
The Fargate task definition
The VPC where resources are deployed
Golden Path ECS Fargate Task Definition for ZAR services.
Provides ZAR-specific defaults and best practices:
Example