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/896b9a10220eef20036b3b5018db8fe2 to your computer and use it in GitHub Desktop.
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.
-
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