diff --git a/template.yml b/template.yml index 456d1dc..c93f279 100644 --- a/template.yml +++ b/template.yml @@ -38,6 +38,9 @@ Resources: Action: - cloudformation:DescribeStacks Resource: "*" + Environment: + Variables: + STACK_NAME: !Ref AWS::StackName Events: MyApi: Type: Api @@ -621,6 +624,9 @@ Resources: NetworkMode: "awsvpc" RequiresCompatibilities: - "FARGATE" + Environment: + - Name: "STACK_NAME" + Value: !Ref AWS::StackName ExecutionRoleArn: !GetAtt ECSExecutionRole.Arn TaskRoleArn: !GetAtt ECSTaskRole.Arn ContainerDefinitions: