Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.