Skip to content

Repository files navigation

Creates EKS cluster with teams

teams are defined in tfvars/*.tfvars files "teams" section

Longest jobs (>1min):

  • eks 12 min
  • alb 3 min

Things to improve:

  • combine kubeconfigs into one for teams
  • get rid of hardcoded values (helm_release versions)

Variables needed for local run

export AWS_DEFAULT_REGION=eu-central-1
export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=
export GITLAB_ACCESS_TOKEN=

Basic Usage

terraform init
terraform plan
terraform apply -auto-approve
terraform destroy

Advanced Usage

terraform state list #get all resources
terraform state rm module... #remove manually deleted resource form state file
terraform destroy --auto-approve --target module... #destroy target resource if it exists with all dependencies

Manage Gitlab TF State versions via curl

curl --header "Private-Token: $GITLAB_ACCESS_TOKEN" "STATE_URL"
curl --header "Private-Token: $GITLAB_ACCESS_TOKEN" --request DELETE "STATE_URL/versions/43"

For more information on how to use it, please refer to the official docs.

About

Creates EKS Cluster in AWS with Teams with restricted access to NS

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages