Name: aws-codepipeline-synthetic-tests
Owner: AWS Samples
Description: Use this sample to create required resources for running synthetic tests periodically and disable transitions on failures in AWS CodePipeline.
Created: 2016-11-24 07:05:16.0
Updated: 2017-12-29 21:18:52.0
Pushed: 2017-01-05 22:15:06.0
Homepage: null
Size: 13
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
The resources in this repository will help you setup required AWS resources for building synthetic tests and use it to disable transitions in AWS CodePipeline.
aws-codepipeline-synthetic-tests
.Run following steps in the local workspace where GitHub repository was cloned:
If you chose a different AWS CodeCommit repository name, replace ParameterValue
in setup-synthetic-tests-resources-stack-parameters.json
file with the name you chose.
Update synthetic-tests-demo-resources-parameters.json
file to replace parameter values:
CodeDeploySampleAppS3BucketName
: Amazon S3 bucket name from step 4 in Prerequisites sectionCodeDeploySampleAppS3ObjectKey
: The object key from step 4 in Prerequisites sectionKeyPairName
: Amazon EC2 key pair nameYourIP
: IP address to connect to SSH from. Check http://checkip.amazonaws.com/ to find yours.Create a new CloudFormation stack using AWS CloudFormation template setup-synthetic-tests-resources-stack.yml
and parameter file setup-synthetic-tests-resources-stack-parameters.json
. See this article for the details on how to pass parameters file using CLI.
cloudformation create-stack --stack-name SetupSyntheticTestsDemoResourcesStack --template-body file://<The path to local workspace>/aws-codepipeline-synthetic-tests/setup-synthetic-tests-resources-stack.yml --capabilities CAPABILITY_IAM --parameters file://<The path to local workspace>/aws-codepipeline-synthetic-tests/setup-synthetic-tests-resources-stack-parameters.json
Step 3 will create an AWS CodePipeline named SetupSyntheticTestsDemoResources-Pipeline
. This pipeline will use AWS CloudFormation integration with AWS CodePipeline to publish AWS Lambda functions to Amazon S3 and create a new stack using template synthetic-tests-demo-resources.yml
that contains actual AWS resources used in demo including a new AWS CodePipeline named SyntheticTestsDemoPipeline
.
Above step will set up following things:
SyntheticTestsDemoPipeline
with an AWS CodeDeploy Deploy stage.SyntheticTestsDemoPipeline
.When no longer required, please remember to delete the stacks using AWS CloudFormation console or CLI to avoid getting charged.
This plugin is open sourced and licensed under Apache 2.0. See the LICENSE file for more information.