Skip to content

Instantly share code, notes, and snippets.

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 nivleshc/6b6540d604b1ed2ab4f0e1e7fdbdd759 to your computer and use it in GitHub Desktop.
Save nivleshc/6b6540d604b1ed2ab4f0e1e7fdbdd759 to your computer and use it in GitHub Desktop.
This gist contains the code for the testing AWS CodeBuild project, which has been added to the Resources section of template.yaml in the blog-create-and-test-evergreen-golden-amis repository.
# this is the AWS CodeBuild project for testing the golden image
EvergreenAMICodeBuildProjectForTesting:
Type: AWS::CodeBuild::Project
Properties:
Artifacts:
Type: NO_ARTIFACTS
BadgeEnabled: false
Description: AWS CodeBuild project to test the Evergreen AMI that has been built.
Environment:
ComputeType: BUILD_GENERAL1_SMALL
Image: aws/codebuild/amazonlinux2-x86_64-standard:4.0
PrivilegedMode: true
Type: LINUX_CONTAINER
LogsConfig:
CloudWatchLogs:
GroupName: !Join [ '_', [ !Ref CodeBuildCWLogGroupName, 'Testing' ] ]
Status: ENABLED
StreamName: !Ref CodeBuildCWLogStreamName
Name: !Join [ '_', [ !Ref CodeBuildProjectName, 'Testing' ] ]
ResourceAccessRole: !GetAtt AWSCodeBuildRole.Arn
ServiceRole: !GetAtt AWSCodeBuildRole.Arn
Source:
GitCloneDepth: 1
Location: !Join [ '', [ 'https://git-codecommit.', !Ref 'AWS::Region', '.amazonaws.com/v1/repos/' , !Ref CodeCommitRepoName ] ]
BuildSpec: buildspec_test.yml
Type: CODECOMMIT
TimeoutInMinutes: 60
Visibility: PRIVATE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment