This repository was archived by the owner on Sep 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +22
-12
lines changed
Expand file tree Collapse file tree 3 files changed +22
-12
lines changed Original file line number Diff line number Diff line change 1+ .terraform.lock.hcl
2+ .terraform /
Original file line number Diff line number Diff line change 33 k8s_service_account_name = " aws-efs-csi-driver"
44}
55
6+ data "aws_caller_identity" "current" {}
7+
68data "aws_iam_policy_document" "batcave_efscsidriver" {
79 statement {
810 actions = [
@@ -18,17 +20,10 @@ data "aws_iam_policy_document" "batcave_efscsidriver" {
1820 " elasticfilesystem:CreateAccessPoint" ,
1921 " elasticfilesystem:DeleteAccessPoint"
2022 ]
21- resources = [" *" ]
22- condition {
23- test = " ForAnyValue:StringEquals"
24- variable = " aws:ResourceTag/efs.csi.aws.com/cluster"
25- values = [" true" ]
26- }
27- condition {
28- test = " ForAnyValue:StringEquals"
29- variable = " aws:RequestTag/cluster-name"
30- values = [" ${ var . cluster_name } " ]
31- }
23+ resources = [
24+ " arn:aws:elasticfilesystem:*:${ data . aws_caller_identity . current . account_id } :file-system/${ aws_efs_file_system . efs . id } " ,
25+ " arn:aws:elasticfilesystem:*:${ data . aws_caller_identity . current . account_id } :access-point/*"
26+ ]
3227 }
3328
3429}
Original file line number Diff line number Diff line change @@ -24,13 +24,26 @@ variable "helm_namespace" {
2424variable "imagerepo" {
2525 default = " 602401143452.dkr.ecr.us-west-2.amazonaws.com/eks/aws-efs-csi-driver"
2626}
27+
2728variable "efsid" {
2829 default = " "
29-
3030}
3131
3232variable "helm_name" {
3333 default = " aws-efs-csi-driver"
3434}
3535
3636variable "cluster_oidc_issuer_url" {}
37+
38+ variable "kms_key_id" {
39+ default = " "
40+ }
41+
42+ variable "vpc_id" {
43+ default = " "
44+ }
45+
46+ variable "private_subnet_ids" {
47+ type = list (any )
48+ default = []
49+ }
You can’t perform that action at this time.
0 commit comments