From 3828f10ec624497ec853ceb2cdead36a7d0b6ec5 Mon Sep 17 00:00:00 2001 From: Srini Nangunuri Date: Fri, 3 May 2024 17:12:58 -0400 Subject: [PATCH] updated README again --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index c1a6e82..454f6c3 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ -# How to setup and run terragrunt scripts for EKS related modules in a LAB account +## How to setup and run terragrunt scripts for EKS related modules in a LAB account -## Lab Account request and setup: +### Lab Account request and setup: - Open a REMEDY ticket for creating an account in LAB environment, preferably with t3-admin role. - LAB account url:https://pssvlab.tco.census.gov/PSS/ - Make a note that the LAB account password is different from laptop password - Once you have successful log proceed to next steps below -## Access LAB jumphost (bromine): +### Access LAB jumphost (bromine): Refer this page for additional help on sso credentials: https://github.e.it.census.gov/terraform/support/tree/master/docs/how-to/aws-sso 1. Goto LAB workspace:https://clients.amazonworkspaces.com/ @@ -21,21 +21,21 @@ 9. Copy the link from step 6 and paste it on the portal and authenticate 10. Go back to bromine and doubleclick at an empty space, you should get successful login lab env -## Environment Setup: +### Environment Setup: - Set your profile as a default profile by exporting AWS_PROFILE variable $ export AWS_PROFILE="224384469011-lab-dev-gov.inf-admin-t3" $ aws sts get-caller-identity - Run any aws commands to make sure you are getting responses from the account your profile is set to: $ aws s3 ls -## Terraform/Terragrunt binaries and versions: +### Terraform/Terragrunt binaries and versions: The following binaries used: - Terraform version: v1.7.5 - Terragrunt version: v0.55.21 These versions can be found on bromine.cto.census.gov host at: /app/terraform/bin/terr* folder -## Run the Terragrunt script: +### Run the Terragrunt script: - Cd to specifc folder (example: cd eks) and Run terragrunt plan $ terragrunt plan - Verify the plan output and make sure there are no errors @@ -43,12 +43,12 @@ $ terragrunt apply - Verify apply completes successfully and verify the resources on AWS Console. -## Accessing the cluster: +### Accessing the cluster: $ aws eks --region us-gov-east-1 update-kubeconfig --name platform-eng-eks-test $ kubectl config use-context arn:aws-us-gov:eks:us-gov-east-1:224384469011:cluster/platform-eng-eks-test $ kubectl config get-contexts -## Run few kubectl commands to verify you are accessing the cluster +### Run few kubectl commands to verify you are accessing the cluster $ kubectl cluster-info $ kubectl get pods -A $ kubectl get ns