Currently, I am leveraging CDK version 2 alongside Typescript. In my current setup, I encounter a situation where I necessitate the TaskID value from ECS Fargate Container to be incorporated into another command. The process involves me utilizing new ecs.Cluster
and new ecs.FargateTaskDefinition
for stack creation. Can anyone provide guidance on how I can successfully export this value in order to use it later within my code?