Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save PaulDuvall/8009c9f93c5e53c90ef7aa7591626038 to your computer and use it in GitHub Desktop.
Save PaulDuvall/8009c9f93c5e53c90ef7aa7591626038 to your computer and use it in GitHub Desktop.
CodeBuildCommands:
Type: AWS::CodeBuild::Project
DependsOn: CodeBuildRole
Properties:
Name:
Ref: AWS::StackName
Description: Build application
ServiceRole:
Fn::GetAtt:
- CodeBuildRole
- Arn
Artifacts:
Type: NO_ARTIFACTS
Environment:
Type: LINUX_CONTAINER
ComputeType: BUILD_GENERAL1_SMALL
Image: "aws/codebuild/amazonlinux2-x86_64-standard:1.0"
EnvironmentVariables:
- Name: S3_BUCKET
Type: PLAINTEXT
Value:
Fn::Sub: ${SiteBucket}
- Name: SAM_STACK_NAME
Type: PLAINTEXT
Value:
Fn::Sub: ${AWS::StackName}-${AWS::Region}
Source:
BuildSpec: buildspec.yml
Location: !Sub https://github.com/${GitHubUser}/${GitHubRepo}/
Type: GITHUB
TimeoutInMinutes: 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment