All Projects → giuseppeborgese → run-terraform-inside-aws-codebuild

giuseppeborgese / run-terraform-inside-aws-codebuild

Licence: other
How to run terraform inside aws codebuild

Programming Languages

HCL
1544 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to run-terraform-inside-aws-codebuild

kube-install
一鍵安裝部署高可用的多kubernetes集羣(二進位離線方式),支持定時安裝、添加與銷毀node、銷毀與修復master、一鍵卸載集羣等。One click offline installation of highly available multiple kubernetes cluster, supports schedule installation, addition of nodes, rebuild of kubernetes master, and uninstallation of clusters.
Stars: ✭ 336 (+1144.44%)
Mutual labels:  devops-tools
efs2
A dead-simple configuration management tool powered by stupid shell scripts.
Stars: ✭ 82 (+203.7%)
Mutual labels:  devops-tools
kubereplay
Seamless integration of goReplay and Kubernetes
Stars: ✭ 30 (+11.11%)
Mutual labels:  devops-tools
Ansible-VMware-vRealize-Automation
Ansible playbook to deploy VM on vRA
Stars: ✭ 23 (-14.81%)
Mutual labels:  devops-tools
polkadot-deployer
Tool for deploying polkadot networks
Stars: ✭ 99 (+266.67%)
Mutual labels:  devops-tools
f5-super-netops-container
F5 Super NetOps container images that enable Automation and Orchestration with a DevOps methodology
Stars: ✭ 24 (-11.11%)
Mutual labels:  devops-tools
libvirt-ocp4-provisioner
Automate your OCP4 installation
Stars: ✭ 82 (+203.7%)
Mutual labels:  devops-tools
cheat-sheet-pdf
📜 A Cheat-Sheet Collection from the WWW
Stars: ✭ 728 (+2596.3%)
Mutual labels:  devops-tools
envkey-node
EnvKey's official Node.js client library
Stars: ✭ 46 (+70.37%)
Mutual labels:  devops-tools
terracreds
A Terraform Automation and Collaboration Software credentials helper
Stars: ✭ 47 (+74.07%)
Mutual labels:  devops-tools
gl-vsts-tasks-yarn
Yarn Package Manager Visual Studio Team Services Build and Release Management extensions
Stars: ✭ 50 (+85.19%)
Mutual labels:  devops-tools
envkey-python
EnvKey's python library. Protect API keys and credentials. Keep configuration in sync.
Stars: ✭ 24 (-11.11%)
Mutual labels:  devops-tools
devops-toolkit
Easily setup your DevOps development environment
Stars: ✭ 44 (+62.96%)
Mutual labels:  devops-tools
aws-fis-templates-cdk
Collection of AWS Fault Injection Simulator (FIS) experiment templates deploy-able via the AWS CDK
Stars: ✭ 43 (+59.26%)
Mutual labels:  devops-tools
devops-bootcamp
Liatrio's DevOps Bootcamp
Stars: ✭ 21 (-22.22%)
Mutual labels:  devops-tools
Microsoft.Xrm.DevOps.Data
This library provides an easy way to generate filtered data compatible with the Configuration Data Migration Tool. These zip files can be used to push specific records between Dynamics 365 environments using the Dynamics 365 Package Deployer.
Stars: ✭ 20 (-25.93%)
Mutual labels:  devops-tools
Innofactor.Crm.CI
DevOps tools for Microsoft Dynamics 365
Stars: ✭ 23 (-14.81%)
Mutual labels:  devops-tools
greenbot
AWS cost optimization tool
Stars: ✭ 28 (+3.7%)
Mutual labels:  devops-tools
bump-everywhere
🚀 Automate versioning, changelog creation, README updates and GitHub releases using GitHub Actions,npm, docker or bash.
Stars: ✭ 24 (-11.11%)
Mutual labels:  devops-tools
shellfirm
Intercept any risky patterns (default or defined by you) and prompt you a small challenge for double verification
Stars: ✭ 159 (+488.89%)
Mutual labels:  devops-tools

Why Run Terraform inside AWS Codebuild

  1. Every person in the company can create infrastructure using Terraform, without any configuration in their own laptop.
  2. You can provide a web interface to use Terraform and anyone in the company can create infrastructures
  3. All terraform output logs are saved in Cloudwatch
  4. You can run by schedule
  5. You can run with an hook every time the code changes
  6. You don’t need any infrastructure to run, no EC2 virtual machines no fix cost. You pay only for minutes you use
  7. You can build a small orchestrator running for example a python script before and after the terraform run

Steps for this example

Choose a region, everything will be created in that region

1 - run the cloudformation file

This will create 3 objects:

  1. A codebuild role with administrator access
  2. An S3 bucket where the tfstate file will be saved
  3. A codebuild project that will run the code

2 - run the codebuild to create your terraform environment

To do this this is necessary click on the “Start the build" (blue button) inside codebuild.

This will trigger the creation of the security group in your environment.

Take a look to the CloudWatch logs and verify that everything is green in codebuild

The video for the steps 1 and 2 is this

Run Terraform inside AWS Codebuild part 1/2 creation

3 - destroy the security group running a terraform destroy

  1. click on "Start the build" (Blue button)
  2. Change the destroy variable to True
  3. click on "Start the build" (Blue button)

4 - clean the environment

  1. empty the bucket
  2. delete the cloudformation template

The video for the steps 3 and 4 is this

Run Terraform inside AWS Codebuild part 2/2 destroy and cleanup

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].