From 1013d3ec31457498328a253db883b35d033e2d11 Mon Sep 17 00:00:00 2001 From: Lucas Telles Date: Mon, 2 Dec 2024 18:12:58 -0300 Subject: [PATCH] Add moved block to iam policy --- main.tf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/main.tf b/main.tf index a68e9d0c..5456b065 100644 --- a/main.tf +++ b/main.tf @@ -330,6 +330,21 @@ module "iam" { s3_replication_api_model_destination_bucket_name = var.api_model_destination_bucket } +moved { + from = module.cluster.aws_iam_role_policy_attachment.ebs_cluster_policy + to = module.iam.module.create_eks_node_role[0].aws_iam_role_policy_attachment.attachments[0] +} + +moved { + from = module.cluster.aws_iam_role_policy_attachment.additional_cluster_policy + to = module.iam.module.create_eks_node_role[0].aws_iam_role_policy_attachment.attachments[1] +} + +moved { + from = module.cluster.aws_iam_role_policy_attachment.additional["IAMReadOnlyAccess"] + to = module.iam.module.create_eks_node_role[0].aws_iam_role_policy_attachment.additional_policies[0] +} + module "cluster" { source = "app.terraform.io/indico/indico-aws-eks-cluster/mod" version = "9.0.31"