Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PaulDuvall/5cafe4e80aa8bdc598be581a87c5b875 to your computer and use it in GitHub Desktop.
Save PaulDuvall/5cafe4e80aa8bdc598be581a87c5b875 to your computer and use it in GitHub Desktop.
CodePipeline definition for Serverless application
Pipeline:
Type: AWS::CodePipeline::Pipeline
Properties:
RoleArn: !GetAtt CodePipelineRole.Arn
Stages:
- Name: Source
...
ActionTypeId:
Category: Source
Owner: ThirdParty
Version: '1'
Provider: GitHub
...
RunOrder: 1
- Name: Build
...
Name: PackageSAM
ActionTypeId:
Category: Build
Owner: AWS
Version: '1'
Provider: CodeBuild
...
Configuration:
ProjectName:
Ref: CodeBuildGetFunction
RunOrder: 1
- Name: Deploy
...
- InputArtifacts:
- Name: Lambda-Get-Artifact
Name: GenerateChangeSet
ActionTypeId:
Category: Deploy
Owner: AWS
Version: '1'
Provider: CloudFormation
...
ActionMode: CHANGE_SET_REPLACE
ChangeSetName: pipeline-changeset
...
TemplatePath: Lambda-Get-Artifact::template-export-get.json
RunOrder: 1
- ActionTypeId:
Category: Deploy
Owner: AWS
Provider: CloudFormation
Version: "1"
Configuration:
ActionMode: CHANGE_SET_EXECUTE
ChangeSetName: pipeline-changeset
StackName: !Sub ${AWS::StackName}-${AWS::Region}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment