Giter Site home page Giter Site logo

unfor19 / terraform-multienv Goto Github PK

View Code? Open in Web Editor NEW
141.0 8.0 28.0 112 KB

A template for maintaining a multiple environments infrastructure with Terraform. This template includes a CI/CD process, that applies the infrastructure in an AWS account.

License: MIT License

HCL 29.49% Shell 67.17% Smarty 3.34%
terraform template drone ci infrastructure githubactions github-actions circleci travisci devops

terraform-multienv's Issues

Migrate the main example from drone.io to GitHub Actions

Current flow for newcomers

  1. AWS - create IAM users
  2. GitHub - use template, find and replace values
  3. drone.io - create a user, activate repository, and create secrets

A better flow

  1. AWS - create IAM users
  2. GitHub - use template, find and replace values, and create secrets

The service drone.io is amazing. This migration is only for making it easier for newcomers to use this template.

Refactor Bash scripts

Current scripts are not organized with functions, making them less readable, and less modular.

Add more modules and resources

The current example only presents a VPC module. Proving that this template is useful will be easier when it contains more resources and modules, and a larger variables.tf file

Add notification step when deploying to stg and prd

  1. On push (merge) to stg and prd, execute terraform apply (already exists)
  2. Add a notification step at the end of the pipeline - try to make it abstract, so it can be used with multiple services. For starters - Slack channel

Add PR approval mechanism

  1. User pushes code to dev - terraform apply on dev (already exists)
  2. User creates a PR from dev to stg - terraform apply on stg`
  3. GitHub Bot Comments a readable format of the plan in the PR
  4. User approves PR merge - terraform apply on stg (already exists)

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.