File tree 4 files changed +10
-17
lines changed
manifests/modules/fundamentals/storage/fsxn/.workshop/terraform
4 files changed +10
-17
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ resource "aws_iam_policy" "fsxn-csi-policy" {
27
27
" Resource" : " ${ data . aws_secretsmanager_secret . fsxn_password_secret . arn } "
28
28
}
29
29
]
30
- })
30
+ })
31
31
}
32
32
33
33
data "aws_secretsmanager_secret" "fsxn_password_secret" {
34
- name = " ${ var . addon_context . eks_cluster_id } -fsxn-secret"
34
+ name = " ${ var . addon_context . eks_cluster_id } -fsxn-secret"
35
35
depends_on = [ module . preprovision ]
36
36
}
37
37
@@ -82,8 +82,8 @@ resource "random_string" "suffix" {
82
82
}
83
83
84
84
locals {
85
- k8s_service_account_namespace = " trident"
86
- k8s_service_account_name = " trident-controller"
85
+ k8s_service_account_namespace = " trident"
86
+ k8s_service_account_name = " trident-controller"
87
87
}
88
88
89
89
@@ -93,5 +93,4 @@ module "preprovision" {
93
93
94
94
eks_cluster_id = var. eks_cluster_id
95
95
tags = var. tags
96
- random_string = random_string. suffix . result
97
96
}
Original file line number Diff line number Diff line change 1
1
output "environment_variables" {
2
2
description = " Environment variables to be added to the IDE shell"
3
3
value = {
4
- FSXN_SECRET_ARN = data.aws_secretsmanager_secret.fsxn_password_secret.arn
4
+ FSXN_SECRET_ARN = data.aws_secretsmanager_secret.fsxn_password_secret.arn
5
5
}
6
6
}
Original file line number Diff line number Diff line change @@ -26,20 +26,19 @@ resource "random_string" "fsx_password" {
26
26
min_numeric = 1
27
27
min_special = 1
28
28
min_upper = 1
29
- numeric = true
29
+ numeric = true
30
30
special = true
31
31
override_special = " !"
32
32
}
33
33
34
34
resource "aws_secretsmanager_secret" "fsxn_password_secret" {
35
- name = " ${ var . eks_cluster_id } -fsxn-secret"
36
- description = " FSxN CSI Driver Password"
35
+ name = " ${ var . eks_cluster_id } -fsxn-secret"
36
+ description = " FSxN CSI Driver Password"
37
37
recovery_window_in_days = 0
38
-
39
38
}
40
39
41
40
resource "aws_secretsmanager_secret_version" "fsxn_password_secret" {
42
- secret_id = aws_secretsmanager_secret. fsxn_password_secret . id
41
+ secret_id = aws_secretsmanager_secret. fsxn_password_secret . id
43
42
secret_string = jsonencode ({
44
43
username = " vsadmin"
45
44
password = " ${ random_string . fsx_password . result } "
Original file line number Diff line number Diff line change @@ -8,9 +8,4 @@ variable "eks_cluster_id" {
8
8
variable "tags" {
9
9
description = " Tags to apply to AWS resources"
10
10
type = any
11
- }
12
-
13
- variable "random_string" {
14
- description = " value for random_string"
15
- type = string
16
- }
11
+ }
You can’t perform that action at this time.
0 commit comments