This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as cdk from 'aws-cdk-lib'; | |
| import { Construct } from 'constructs'; | |
| import * as ec2 from 'aws-cdk-lib/aws-ec2'; | |
| import * as ecs from 'aws-cdk-lib/aws-ecs'; | |
| import * as iam from 'aws-cdk-lib/aws-iam'; | |
| import * as logs from 'aws-cdk-lib/aws-logs'; | |
| /** | |
| * You can run this task definition via CLI, SDK, lambda | |
| * CLI: aws ecs run-task --cluster <your-cluster-name> --task-definition <task-definition-arn> --launch-type FARGATE --network-configuration "awsvpcConfiguration={subnets=[<subnet-id>],securityGroups=[<security-group-id>],assignPublicIp=ENABLED}" |
OlderNewer