Code Monkey home page Code Monkey logo

amazon-api-gateway-canary-deployment's Introduction

Amazon API Gateway Canary Release Deployment

This stack creates an end to end implementation example to show how to do canary release deployment in Amazon API Gateway.

Services Used

Requirements for deployment

Deploying

In the terminal, use the SAM CLI guided deployment the first time you deploy. Go to pre-stack folder

sam deploy -g

Choose options

You can choose the default for all options

## The name of the CloudFormation stack
Stack Name [sam-app]:

## The region you want to deploy in
AWS Region [us-east-1]:

## The name of the application (lowercase no spaces). This must be globally unique
Parameter AppName [canary-deployment]:

## Enables public client and local client for testing. (Less secure)
Parameter UseLocalClient [false]:

## Shows you resources changes to be deployed and requires a 'Y' to initiate deploy
Confirm changes before deploy [y/N]: 

## SAM needs permission to be able to create roles to connect to the resources in your template
Allow SAM CLI IAM role creation [Y/n]:

## Save your choice for later deployments
Save arguments to samconfig.toml [Y/n]:

SAM will then deploy the AWS CloudFormation stack to your AWS account and provide required outputs for the included client. This will create DynamoDB table , Rest API and an IAM role to access the DynamoDB table.

After the first deploy you need to deploy the canary stack. Go to canary-stack folder and repeat the deployment using "sam deploy" same as above. Choose the default for all options

Cleanup

  1. Open the CloudFormation console
  2. Locate a stack named sam-app
  3. Select the radio option next to it
  4. Select Delete
  5. Select Delete stack to confirm

*Note: If you opted to have access logs (on by default), you may have to delete the S3 bucket manually.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

amazon-api-gateway-canary-deployment's People

Contributors

amazon-auto avatar dhirajk1108 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.