Skip to content

Instantly share code, notes, and snippets.

@SumindaD
Created November 1, 2019 16:26
Show Gist options
  • Save SumindaD/f5f90e2219ba3dcafa53651b7f77a568 to your computer and use it in GitHub Desktop.
Save SumindaD/f5f90e2219ba3dcafa53651b7f77a568 to your computer and use it in GitHub Desktop.
- Name: Deploy
Actions:
- Name: Deploy
ActionTypeId:
Category: Deploy
Owner: AWS
Version: 1
Provider: CloudFormation
InputArtifacts:
- Name: source-output-artifacts
- Name: build-output-artifacts
Configuration:
ActionMode: CREATE_UPDATE
Capabilities: CAPABILITY_NAMED_IAM
# Pass parameter values to Fargate-Cluster.yml for deployment
ParameterOverrides: !Sub |
{
"ImageURI" : { "Fn::GetParam" : ["build-output-artifacts", "imageDetail.json", "ImageURI"] },
"Stage": "${Stage}",
"ContainerPort": "${ContainerPort}"
}
RoleArn:
Fn::GetAtt: [ CloudformationExecutionRole, Arn ]
StackName: !Join ['-', [!Ref Stage, !Ref 'AWS::AccountId', 'FargateECSCluster']]
TemplatePath: source-output-artifacts::Cloudformation/Fargate-Cluster.yml
RunOrder: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment