Twelve-Factor-App-Stack.yml [411:429]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Cpu: !Ref ContainerCpu
      Memory: !Ref ContainerMemory
      NetworkMode: awsvpc
      RequiresCompatibilities:
        - FARGATE
      ExecutionRoleArn: !GetAtt "ECSTaskExecutionRole.Arn"
      TaskRoleArn: !GetAtt "ECSTaskRole.Arn"
      ContainerDefinitions:
        - Name: !Ref ECSServiceName
          Cpu: !Ref ContainerCpu
          Memory: !Ref ContainerMemory
          Image: !Sub "${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/${ECRRepositoryName}"
          PortMappings:
            - ContainerPort: !Ref ContainerPort
          LogConfiguration:
            LogDriver: "awslogs"
            Options:
              awslogs-group: !Sub TwelveFactorApp-service-${ECSServiceName}
              awslogs-region: !Ref AWS::Region
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



Twelve-Factor-App-Stack.yml [540:558]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Cpu: !Ref ContainerCpu
      Memory: !Ref ContainerMemory
      NetworkMode: awsvpc
      RequiresCompatibilities:
        - FARGATE
      ExecutionRoleArn: !GetAtt "ECSTaskExecutionRole.Arn"
      TaskRoleArn: !GetAtt "ECSTaskRole.Arn"
      ContainerDefinitions:
        - Name: !Ref ECSServiceName
          Cpu: !Ref ContainerCpu
          Memory: !Ref ContainerMemory
          Image: !Sub "${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/${ECRRepositoryName}"
          PortMappings:
            - ContainerPort: !Ref ContainerPort
          LogConfiguration:
            LogDriver: "awslogs"
            Options:
              awslogs-group: !Sub TwelveFactorApp-service-${ECSServiceName}
              awslogs-region: !Ref AWS::Region
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



