Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.28 KB

File metadata and controls

39 lines (30 loc) · 1.28 KB

AWS - Infra as code

This repository contains infrastructure code used to manage my AWS account.

Pre-requisites

Infra setup using terraform

  1. Create new AWS account
  2. Create new IAM user with admin privileges and add the access key ID and secret access key to ~/.aws/credentials
  3. Ensure there are no AWS_ACCESS_KEY or AWS_SECRET_KEY env variables defined in your local env
  4. Provision dev environment
  5. Review configuration variables in main.tf, especially, aws_credenital_profile variable
  6. Provision infrastructure
    cd terraform/environments/dev
    terraform init
    terraform apply

Local client setup

  1. Configure the path of the kubeconfig_dev-eks-cluster in the KUBECONFIG env variable for your local environment to be able to communicate with the EKS cluster using kubectl
  2. Verify local kubectl setup using the command below
    $ kb get nodes

ToDos

  • Monitoring and alerting
    • auto-scaling notifications