Skip to content

Commit

Permalink
updated README again
Browse files Browse the repository at this point in the history
  • Loading branch information
nangu001 committed May 3, 2024
1 parent 48f264c commit 3828f10
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -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/
Expand All @@ -21,34 +21,34 @@
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 <to verify you are getting the credential from 224384469011>
- 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
- Run terragrunt apply
$ 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
Expand Down

0 comments on commit 3828f10

Please sign in to comment.