Skip to content

Instantly share code, notes, and snippets.

@PaulDuvall
Last active February 16, 2020 19:24
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/f525757abafad42d5cfbef67d85811fa to your computer and use it in GitHub Desktop.
Save PaulDuvall/f525757abafad42d5cfbef67d85811fa to your computer and use it in GitHub Desktop.
- Name: BuildLambda
Actions:
- InputArtifacts:
- Name: MyApp
Name: BuildLambdaFunctions
ActionTypeId:
Category: Build
Owner: AWS
Version: '1'
Provider: CodeBuild
OutputArtifacts:
- Name: lambdatrigger-BuildArtifact
Configuration:
ProjectName:
Ref: CodeBuildLambdaTrigger
RunOrder: 1
- Name: DeployLambda
Actions:
- InputArtifacts:
- Name: lambdatrigger-BuildArtifact
Name: DeployLambdaFunction
ActionTypeId:
Category: Deploy
Owner: AWS
Version: '1'
Provider: CloudFormation
OutputArtifacts: []
Configuration:
ActionMode: CHANGE_SET_REPLACE
ChangeSetName: pipeline-changeset
RoleArn:
Fn::GetAtt:
- CloudFormationTrustRole
- Arn
Capabilities: CAPABILITY_IAM,CAPABILITY_AUTO_EXPAND
StackName:
Fn::Join:
- ''
- - ""
- Ref: AWS::StackName
- "-"
- Ref: AWS::Region
- "-lambda"
TemplatePath: lambdatrigger-BuildArtifact::template-export.json
RunOrder: 1
- ActionTypeId:
Category: Deploy
Owner: AWS
Provider: CloudFormation
Version: "1"
Configuration:
ActionMode: CHANGE_SET_EXECUTE
ChangeSetName: pipeline-changeset
Capabilities: CAPABILITY_IAM,CAPABILITY_AUTO_EXPAND
StackName:
Fn::Join:
- ''
- - ""
- Ref: AWS::StackName
- "-"
- Ref: AWS::Region
- "-lambda"
InputArtifacts: []
Name: ExecuteLambdaFunction
OutputArtifacts: []
RunOrder: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment