GithubHelp home page GithubHelp logo

jrbeverly / terraform-aws-codepipeline-terraform-runner Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 12 KB

Terraform runner in CodePipeline

License: MIT License

HCL 91.18% Dockerfile 8.29% Shell 0.54%
terraform aws-codepipeline

terraform-aws-codepipeline-terraform-runner's Introduction

Terraform AWS CodePipline Terraform Executor

Terraform executor leveraging the CodePipeline functionality in AWS, for a fully serverless model of executing terraform in AWS.

Getting Started

The primary environment is configured in env/, with a single main file. This provisions the CodePipeline, CodeBuild components, as well as some stub S3 buckets that represent both incoming sources, artifacts. The artifacts bucket is treated as a stand-in for the Terraform state environment variable, but the pipeline itself does not attempt to configure the backend for S3.

Notes

This likely is only really suited to simple pipelines, as it seems clunky to work with. Although the AWS built-in option can be beneficial, this doesn't really make Terraform an appealing option, and instead makes more sense to leverage something like CloudFormation. Cases where this might need more strict access controls, or the ability to have appropriate guardrails seems like it wouldn't work out long term.

Notes:

  • Simple triggers work off the arrival of notifications in Cloudwatch for S3 publishes
  • Can have a single file act as the sort of "GitOps" authoritative state for the infrastructure
  • Multi-component terraform deploys (e.g. terragrunt) are possilbe, but feel like they wouldn't fit well with the system
  • Terraform for configuring the build pipeline doesn't feel ideal, as opposed to a more "configuration" based management option like GitHub Actions / Gitlab CI
  • S3 Storage (& dynamodb locking table) should be provisioned externally from the primary provision terraform

Not really sure about this one, as I feel CloudFormation is a better option for that "AWS built-in" approach, or using an external service responsible for the terraform executor.

terraform-aws-codepipeline-terraform-runner's People

Contributors

jrbeverly avatar

Watchers

 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.