Giter Site home page Giter Site logo

xplat-terraform-modules's Introduction

xplat-terraform-modules

Repository of Terraform modules for AWS Serverless use cases.

For Terraform 0.12 support, please use branch tf12.

xplat-terraform-modules's People

Contributors

alexstajosrack avatar calebgroom avatar cbfx avatar gifflen avatar jmvrbanac avatar larsbutler avatar ryandub avatar szilveszter avatar y0y0dyn3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

xplat-terraform-modules's Issues

Potential service outage if no custom domain used in API Gateway

Just finished standing up a new service using the apigateway module, but ran into some strange behavior: after I changed something in the Swagger file, my API stopped working. After some investigation I found out that Terraform will delete the stage during the deployment process:

  1. Notices Swagger has changed, so the deployment resource has to be replaced
  2. Creates new deployment, pointing to the stage
  3. As the first step of getting rid of the old deployment resource, it deletes the stage

The reason why this does not happen to our existing services is thanks to mere luck: if there's an existing base path mapping pointing to the stage, the DeleteStage call fails, Terraform ignores that failure, and skips to the DeleteDeployment step.

Fortunately a patch is already available that fixes this behavior, hopefully it'll be merged upstream soon: hashicorp/terraform-provider-aws#3896

Until this gets fixed, the workaround is to set up a custom domain in the module, which is considered best practice anyway. I just wanted to raise awareness, and track the upstream issue.

Add a license

This is an open repo. We should add an explicit license to these artifacts.

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.