Skip to content

Commit

Permalink
fix: Add kubectl provider block to csi-secrets-driver example (aw…
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantbiggs authored and allamand committed Jan 10, 2023
1 parent d1002ec commit 96f10ec
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
8 changes: 8 additions & 0 deletions examples/secrets-management/csi-secrets-driver/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ provider "helm" {
}
}

provider "kubectl" {
apply_retry_count = 10
host = module.eks_blueprints.eks_cluster_endpoint
cluster_ca_certificate = base64decode(module.eks_blueprints.eks_cluster_certificate_authority_data)
load_config_file = false
token = data.aws_eks_cluster_auth.this.token
}

data "aws_eks_cluster_auth" "this" {
name = module.eks_blueprints.eks_cluster_id
}
Expand Down
9 changes: 6 additions & 3 deletions examples/secrets-management/csi-secrets-driver/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ terraform {
}
}

backend "local" {
path = "local_tf_state/terraform-main.tfstate"
}
# ## Used for end-to-end testing on project; update to suit your needs
# backend "s3" {
# bucket = "terraform-ssp-github-actions-state"
# region = "us-west-2"
# key = "e2e/csi-secrets-driver/terraform.tfstate"
# }
}

0 comments on commit 96f10ec

Please sign in to comment.