Skip to content

Commit

Permalink
Merge pull request #15 from caiocsgomes/fix-add-root-user-config-map
Browse files Browse the repository at this point in the history
adding profile and region to aws profile
  • Loading branch information
caiocsgomes authored May 5, 2024
2 parents 9291451 + eb58c3e commit 7e5f150
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/terraform-apply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:
version: 2 # default
verbose: false # default
arch: amd64 # allowed values: amd64, arm64
- name: verify aws profile
run: |
aws sts get-caller-identity
aws configure list
- name: install terraform
uses: hashicorp/setup-terraform@v2
- name: checkout repository
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/terraform-plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ jobs:
version: 2 # default
verbose: false # default
arch: amd64 # allowed values: amd64, arm64
- name: verify aws profile
run: |
aws sts get-caller-identity
aws configure list
- name: install terraform
uses: hashicorp/setup-terraform@v2
- name: checkout repository
Expand Down
2 changes: 1 addition & 1 deletion terraform/environments/prod/eks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ data "aws_caller_identity" "current" {}
data "aws_availability_zones" "available" {}

data "aws_eks_cluster_auth" "default" {
name = module.eks.cluster_name
name = module.eks.cluster_id
}

provider "kubernetes" {
Expand Down
3 changes: 3 additions & 0 deletions terraform/environments/prod/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ variable "project_name" {
variable "region" {
default = "us-east-1"
}
variable "profile" {
default = "default"
}
variable "availability_zones" {
type = list(string)
}
Expand Down

0 comments on commit 7e5f150

Please sign in to comment.