mirror of
https://github.com/terraform-aws-modules/terraform-aws-eks.git
synced 2025-09-09 19:32:58 +08:00
Destroying cluster causes some issues with removing policies (#196)
* Destroying cluster causes some issues with removing policies use the force detach https://www.terraform.io/docs/providers/aws/r/iam_role.html#force_detach_policies * Destroying cluster causes some issues with removing policies * formatting * Destroying cluster causes some issues with removing policies * CHANGELOG
This commit is contained in:
+3
-2
@@ -50,8 +50,9 @@ resource "aws_security_group_rule" "cluster_https_worker_ingress" {
|
||||
}
|
||||
|
||||
resource "aws_iam_role" "cluster" {
|
||||
name_prefix = "${var.cluster_name}"
|
||||
assume_role_policy = "${data.aws_iam_policy_document.cluster_assume_role_policy.json}"
|
||||
name_prefix = "${var.cluster_name}"
|
||||
assume_role_policy = "${data.aws_iam_policy_document.cluster_assume_role_policy.json}"
|
||||
force_detach_policies = true
|
||||
}
|
||||
|
||||
resource "aws_iam_role_policy_attachment" "cluster_AmazonEKSClusterPolicy" {
|
||||
|
||||
Reference in New Issue
Block a user