Skip to content

Instantly share code, notes, and snippets.

@andreidiaconu90
Created September 11, 2020 05:57
Show Gist options
  • Save andreidiaconu90/d01525525d6f7f748029dfb3a3a56991 to your computer and use it in GitHub Desktop.
Save andreidiaconu90/d01525525d6f7f748029dfb3a3a56991 to your computer and use it in GitHub Desktop.
codepipeline-codebuild
DeployToStaging:
Type: AWS::CodeBuild::Project
Properties:
Name: "Deploy-to-staging" #this is the name that we'll later use to reference this project inside the CodePipeline definition
ServiceRole: !GetAtt
- ResourcesCodePipelineServiceRole #codepipeline will pass this role to the CodeBuild projects so that they have the rights to create/update/delete resources
- Arn
Artifacts:
Type: CODEPIPELINE
Environment:
Type: LINUX_CONTAINER
ComputeType: BUILD_GENERAL1_SMALL
Image: aws/codebuild/standard:4.0
EnvironmentVariables:
- Name: environment
Value: staging
Source:
Type: CODEPIPELINE
BuildSpec: "buildspec.yml"
TimeoutInMinutes: 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment