Created
September 11, 2022 05:12
-
-
Save nivleshc/896b9a10220eef20036b3b5018db8fe2 to your computer and use it in GitHub Desktop.
This gist contains the code for the test stage of the AWS CodePipeline pipeline, which is in 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
- | |
Name: Test | |
Actions: | |
- | |
Name: Test | |
ActionTypeId: | |
Category: Test | |
Owner: AWS | |
Provider: CodeBuild | |
Version: 1 | |
Configuration: | |
BatchEnabled: False | |
CombineArtifacts: False | |
ProjectName: !Join [ '_', [ !Ref CodeBuildProjectName, 'Testing' ] ] | |
EnvironmentVariables: | |
!Join | |
- '' | |
- - '[{"name": "GOLDEN_AMI_ID", ' | |
- '"value": "' | |
- '#{BuildVariables.GOLDEN_AMI_ID}", ' | |
- '"type": "PLAINTEXT"}, ' | |
- '{"name": "SUBNET_ID", ' | |
- '"value": "' | |
- !Ref TestSubnetId | |
- '", "type": "PLAINTEXT"}, ' | |
- '{"name": "SECURITY_GROUP_ID", ' | |
- '"value": "' | |
- !Ref TestSecurityGroupId | |
- '", "type": "PLAINTEXT"}, ' | |
- '{"name": "TEST_EC2_INSTANCE_PROFILE", ' | |
- '"value": "' | |
- !Ref TestEC2InstanceProfile | |
- '", "type": "PLAINTEXT"}, ' | |
- '{"name": "TEST_REPORT_S3_BUCKET", ' | |
- '"value": "' | |
- !Ref CodePipelineArtifactStoreS3Bucket | |
- '", "type": "PLAINTEXT"}, ' | |
- '{"name": "SNS_TOPIC_ARN", ' | |
- '"value": "' | |
- !Ref EvergreenAMISNSTopic | |
- '", "type": "PLAINTEXT"}, ' | |
- '{"name": "TEST_CFN_STACK_NAME", ' | |
- '"value": "Golden-Ami-Test-Stack", ' | |
- '"type": "PLAINTEXT"}]' | |
InputArtifacts: | |
- Name: !Join [ '-', [ !Ref 'AWS::StackName', 'SourceArtifact' ] ] | |
OutputArtifacts: | |
- Name: !Join [ '-', [ !Ref 'AWS::StackName', 'TestArtifact' ] ] | |
Namespace: TestVariables | |
RunOrder: 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment