Skip to content

Instantly share code, notes, and snippets.

@PaulDuvall
Created July 20, 2017 14:15
Show Gist options
  • Save PaulDuvall/8bf8af19eed89bf3b9a71fd3b4644041 to your computer and use it in GitHub Desktop.
Save PaulDuvall/8bf8af19eed89bf3b9a71fd3b4644041 to your computer and use it in GitHub Desktop.
CodeBuild Project definition in CloudFormation highlighting BuildSpec Source property
CodeBuildWebsite:
Type: AWS::CodeBuild::Project
DependsOn: CodeBuildRole
Properties:
Name:
Ref: AWS::StackName
Description: Build application
ServiceRole:
Fn::GetAtt:
- CodeBuildRole
- Arn
Artifacts:
Type: no_artifacts
Environment:
EnvironmentVariables:
- Name: S3_BUCKET
Value:
Ref: ArtifactBucket
Type: LINUX_CONTAINER
ComputeType: BUILD_GENERAL1_SMALL
Image: aws/codebuild/eb-nodejs-4.4.6-amazonlinux-64:2.1.3
Source:
BuildSpec: buildspec-test.yml
Location:
Fn::Join:
- ''
- - https://git-codecommit.
- Ref: AWS::Region
- ".amazonaws.com/v1/repos/"
- Ref: AWS::StackName
Type: CODECOMMIT
TimeoutInMinutes: 10
Tags:
- Key: Owner
Value: MyCodeBuildProject
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment