Common expressions
https://www.ef.com/wwen/english-resources/english-idioms/
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…
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…
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…
Circle CI workflow(cache, artifact, workspace)
https://circleci.com/docs/jobs-steps/
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
kubernetes-promox
https://medium.com/@ssnetanel/build-a-kubernetes-cluster-using-k3s-on-proxmox-via-ansible-and-terraform-c97c7974d4a5
Amplify real and complete example
https://amplify-sns.workshop.aws/en/70_multi_env/20_branch_autodetection.html
sqs to s3
https://github.com/ellimilial/sqs-s3-logger/tree/master/sqs_s3_logger