Browsed by
Author: lsalas

Terraform multirepo

Terraform multirepo

Create a VPC with a repo. export attributes for resources using output. output “vpc_id” { value = module.vpc.vpc_id } –> it exports the vpc_id for a vpc module. Create a new resource to be created over the VPC in a different repo structure. Read the remote backend: data “terraform_remote_state” “vpc” { backend = “s3” config = { bucket = “awsterraform-state” key = “env:/${terraform.workspace}/IaC/bastion-state.tfstateate.tfstate“ region = “us-east-1” encrypt = true } } Important here: when using workspace, the attribute key in…

Read More Read More

Terraform ECS Fargate

Terraform ECS Fargate

ECS with Fargate and Terraform Finleap Engineering, Reference: https://engineering.finleap.com/posts/2020-02-20-ecs-fargate-terraform/ “Everything can be code if you are brave enough” This was the mantra that I said to myself when I decided to take the leap into IaC. I previously gathered some experience within the AWS world on how to run a web application (both simple S3 hosting and with ECS), but it was always “clicked together” manually. So the next natural step in evolution would be to build the infrastructure with…

Read More Read More

Setup my Atlantis ECS Fargate

Setup my Atlantis ECS Fargate

What is Atlantis? Atlantis is an application for automating Terraform via pull requests. It is deployed as a standalone application into your infrastructure. No third-party has access to your credentials. Atlantis listens for GitHub, GitLab or Bitbucket webhooks about Terraform pull requests. It then runs terraform plan and comments with the output back on the pull request. When you want to apply, comment atlantis apply on the pull request and Atlantis will run terraform apply and comment back with the output. My memories installing Atlantis: Clone…

Read More Read More

Kubernetes important tools

Kubernetes important tools

AWS EKS blueprint: https://github.com/aws-ia/terraform-aws-eks-blueprints https://aws-ia.github.io/terraform-aws-eks-blueprints/v4.11.0/ AWS EKS ANYWHERE: https://aws.amazon.com/eks/eks-anywhere/ AWS workshop gitops kubernetes bridgecrew: Docu bridgecrew lab: https://bridgecrew.awsworkshop.io/cloudformation.html