-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: load variables from script and cleanup vars (#94)
* feat: add values.sh - rename vars * feat: load vars from delete.sh
- Loading branch information
Showing
8 changed files
with
55 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
# ======================================================= | ||
# Description: | ||
# This script is used to load the values. | ||
# ======================================================= | ||
|
||
export CLUSTER_NAME= | ||
export DEPLOYMENT_NAME= | ||
export WORKER_NODE_TYPE= | ||
export MASTER_NODE_TYPE= | ||
export MIN_WORKER_NODES= | ||
export MAX_WORKER_NODES= | ||
export TEAM= | ||
export PROJECT= | ||
export AWS_REGION= | ||
export KOPS_STATE_STORE=s3:// | ||
export ZONE_A= | ||
export ZONE_B= | ||
export PUBKEY= | ||
export AWS_ACCESS_KEY_ID=$(aws configure get aws_access_key_id) | ||
export AWS_SECRET_ACCESS_KEY=$(aws configure get aws_secret_access_key) | ||
|
||
# Node types -> https://aws.amazon.com/es/ec2/instance-types/ | ||
# c5.2xlarge # 8CPU/16RAM | ||
# c5.4xlarge # 16CPU/32RAM | ||
# c5.9xlarge # 36CPU/72RAM | ||
# c5a.24xlarge # 96CPU/192RAM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# tf-testground | ||
# Terraform TestGround | ||
|
||
We are deploying the resources in the region `eu-west-1` because is the one that has more resources available. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
terraform { | ||
backend "s3" { | ||
bucket = "testground-terraform-state" | ||
key = "devops-2-tg" | ||
key = "testground.k8s.local" | ||
region = "eu-west-1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.terraform | ||
.terraform.lock.hcl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
terraform { | ||
backend "s3" { | ||
bucket = "testground-terraform-state" | ||
key = "jose.k8s.local-tf-state-devops-tg" | ||
key = "testground.k8s.local" | ||
region = "eu-west-1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters