File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 11
11
12
12
13
13
14
- ## If this is a bug, how to reproduce? Please include a code sample if relevvant .
14
+ ## If this is a bug, how to reproduce? Please include a code sample if relevant .
15
15
16
16
17
17
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
11
11
12
12
- ` suspended_processes ` to ` worker_groups ` input (by @bkmeneguello )
13
13
- ` target_group_arns ` to ` worker_groups ` input (by @zihaoyu )
14
+ - ` force_detach_policies ` to ` aws_iam_role ` ` cluster ` and ` workers ` (by @marky-mark )
14
15
- ` cluster_create_security_group ` and ` worker_create_security_group ` . This allows using computed cluster and worker security groups. (by @rmakram-ims )
15
16
16
17
### Changed
Original file line number Diff line number Diff line change @@ -50,8 +50,9 @@ resource "aws_security_group_rule" "cluster_https_worker_ingress" {
50
50
}
51
51
52
52
resource "aws_iam_role" "cluster" {
53
- name_prefix = " ${ var . cluster_name } "
54
- assume_role_policy = " ${ data . aws_iam_policy_document . cluster_assume_role_policy . json } "
53
+ name_prefix = " ${ var . cluster_name } "
54
+ assume_role_policy = " ${ data . aws_iam_policy_document . cluster_assume_role_policy . json } "
55
+ force_detach_policies = true
55
56
}
56
57
57
58
resource "aws_iam_role_policy_attachment" "cluster_AmazonEKSClusterPolicy" {
Original file line number Diff line number Diff line change @@ -105,8 +105,9 @@ resource "aws_security_group_rule" "workers_ingress_cluster_https" {
105
105
}
106
106
107
107
resource "aws_iam_role" "workers" {
108
- name_prefix = " ${ aws_eks_cluster . this . name } "
109
- assume_role_policy = " ${ data . aws_iam_policy_document . workers_assume_role_policy . json } "
108
+ name_prefix = " ${ aws_eks_cluster . this . name } "
109
+ assume_role_policy = " ${ data . aws_iam_policy_document . workers_assume_role_policy . json } "
110
+ force_detach_policies = true
110
111
}
111
112
112
113
resource "aws_iam_instance_profile" "workers" {
You can’t perform that action at this time.
0 commit comments