Created
September 11, 2022 05:09
-
-
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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