From cd3677544a905099f5b5a9ce4529e8d75f029d19 Mon Sep 17 00:00:00 2001 From: Andreas Sommer Date: Tue, 17 Dec 2024 14:12:24 +0100 Subject: [PATCH] Format Terraform files (#134) --- capa-controller-role/giantswarm-capa-role.tf | 6 +- capa-controller-role/import.tf | 76 ++++++++++---------- 2 files changed, 41 insertions(+), 41 deletions(-) diff --git a/capa-controller-role/giantswarm-capa-role.tf b/capa-controller-role/giantswarm-capa-role.tf index dca0b51..68356f1 100644 --- a/capa-controller-role/giantswarm-capa-role.tf +++ b/capa-controller-role/giantswarm-capa-role.tf @@ -13,13 +13,13 @@ provider "aws" { data "aws_caller_identity" "current" {} resource "aws_iam_role" "giantswarm-capa-controller-role" { - name = "giantswarm-${var.installation_name}-capa-controller" + name = "giantswarm-${var.installation_name}-capa-controller" assume_role_policy = templatefile("${path.module}/trusted-entities.json", { INSTALLATION_NAME = var.installation_name AWS_ACCOUNT_ID = data.aws_caller_identity.current.account_id MANAGEMENT_CLUSTER_OIDC_PROVIDER_DOMAIN = var.management_cluster_oidc_provider_domain - AWS_PARTITION = var.aws_partition - GS_USER_ACCOUNT = var.gs_user_account + AWS_PARTITION = var.aws_partition + GS_USER_ACCOUNT = var.gs_user_account }) tags = local.tags } diff --git a/capa-controller-role/import.tf b/capa-controller-role/import.tf index b033a6f..5255a71 100644 --- a/capa-controller-role/import.tf +++ b/capa-controller-role/import.tf @@ -4,114 +4,114 @@ locals { import { for_each = local.existing_install_for_each - to = aws_iam_role.giantswarm-capa-controller-role - id = "giantswarm-${var.installation_name}-capa-controller" + to = aws_iam_role.giantswarm-capa-controller-role + id = "giantswarm-${var.installation_name}-capa-controller" } import { for_each = local.existing_install_for_each - to = aws_iam_policy.giantswarm-capa-controller-policy - id = "arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-capa-controller-policy" + to = aws_iam_policy.giantswarm-capa-controller-policy + id = "arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-capa-controller-policy" } import { for_each = local.existing_install_for_each - to = aws_iam_role_policy_attachment.giantswarm-capa-controller-policy-attachment - id = "giantswarm-${var.installation_name}-capa-controller/arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-capa-controller-policy" + to = aws_iam_role_policy_attachment.giantswarm-capa-controller-policy-attachment + id = "giantswarm-${var.installation_name}-capa-controller/arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-capa-controller-policy" } import { for_each = local.existing_install_for_each - to = aws_iam_policy.giantswarm-dns-controller-policy - id = "arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-dns-controller-policy" + to = aws_iam_policy.giantswarm-dns-controller-policy + id = "arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-dns-controller-policy" } import { for_each = local.existing_install_for_each - to = aws_iam_role_policy_attachment.giantswarm-dns-controller-policy-attachment - id = "giantswarm-${var.installation_name}-capa-controller/arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-dns-controller-policy" + to = aws_iam_role_policy_attachment.giantswarm-dns-controller-policy-attachment + id = "giantswarm-${var.installation_name}-capa-controller/arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-dns-controller-policy" } import { for_each = local.existing_install_for_each - to = aws_iam_policy.giantswarm-eks-controller-policy - id = "arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-eks-controller-policy" + to = aws_iam_policy.giantswarm-eks-controller-policy + id = "arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-eks-controller-policy" } import { for_each = local.existing_install_for_each - to = aws_iam_role_policy_attachment.giantswarm-eks-controller-policy-attachment - id = "giantswarm-${var.installation_name}-capa-controller/arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-eks-controller-policy" + to = aws_iam_role_policy_attachment.giantswarm-eks-controller-policy-attachment + id = "giantswarm-${var.installation_name}-capa-controller/arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-eks-controller-policy" } import { for_each = local.existing_install_for_each - to = aws_iam_policy.giantswarm-iam-controller-policy - id = "arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-iam-controller-policy" + to = aws_iam_policy.giantswarm-iam-controller-policy + id = "arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-iam-controller-policy" } import { for_each = local.existing_install_for_each - to = aws_iam_role_policy_attachment.giantswarm-iam-controller-policy-attachment - id = "giantswarm-${var.installation_name}-capa-controller/arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-iam-controller-policy" + to = aws_iam_role_policy_attachment.giantswarm-iam-controller-policy-attachment + id = "giantswarm-${var.installation_name}-capa-controller/arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-iam-controller-policy" } import { for_each = local.existing_install_for_each - to = aws_iam_policy.giantswarm-irsa-controller-policy - id = "arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-irsa-controller-policy" + to = aws_iam_policy.giantswarm-irsa-controller-policy + id = "arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-irsa-controller-policy" } import { for_each = local.existing_install_for_each - to = aws_iam_role_policy_attachment.giantswarm-irsa-controller-policy-attachment - id = "giantswarm-${var.installation_name}-capa-controller/arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-irsa-controller-policy" + to = aws_iam_role_policy_attachment.giantswarm-irsa-controller-policy-attachment + id = "giantswarm-${var.installation_name}-capa-controller/arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-irsa-controller-policy" } import { for_each = local.existing_install_for_each - to = aws_iam_policy.giantswarm-network-topology-controller-policy - id = "arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-network-topology-controller-policy" + to = aws_iam_policy.giantswarm-network-topology-controller-policy + id = "arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-network-topology-controller-policy" } import { for_each = local.existing_install_for_each - to = aws_iam_role_policy_attachment.giantswarm-network-topology-controller-policy-attachment - id = "giantswarm-${var.installation_name}-capa-controller/arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-network-topology-controller-policy" + to = aws_iam_role_policy_attachment.giantswarm-network-topology-controller-policy-attachment + id = "giantswarm-${var.installation_name}-capa-controller/arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-network-topology-controller-policy" } import { for_each = local.existing_install_for_each - to = aws_iam_policy.giantswarm-resolver-rules-operator-policy - id = "arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-resolver-rules-operator-policy" + to = aws_iam_policy.giantswarm-resolver-rules-operator-policy + id = "arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-resolver-rules-operator-policy" } import { for_each = local.existing_install_for_each - to = aws_iam_role_policy_attachment.giantswarm-resolver-rules-operator-policy-attachment - id = "giantswarm-${var.installation_name}-capa-controller/arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-resolver-rules-operator-policy" + to = aws_iam_role_policy_attachment.giantswarm-resolver-rules-operator-policy-attachment + id = "giantswarm-${var.installation_name}-capa-controller/arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-resolver-rules-operator-policy" } import { for_each = local.existing_install_for_each - to = aws_iam_policy.giantswarm-mc-bootstrap-policy - id = "arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-mc-bootstrap-policy" + to = aws_iam_policy.giantswarm-mc-bootstrap-policy + id = "arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-mc-bootstrap-policy" } import { for_each = local.existing_install_for_each - to = aws_iam_role_policy_attachment.giantswarm-mc-bootstrap-policy-attachment - id = "giantswarm-${var.installation_name}-capa-controller/arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-mc-bootstrap-policy" + to = aws_iam_role_policy_attachment.giantswarm-mc-bootstrap-policy-attachment + id = "giantswarm-${var.installation_name}-capa-controller/arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-mc-bootstrap-policy" } import { for_each = local.existing_install_for_each - to = aws_iam_policy.giantswarm-crossplane-policy - id = "arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-crossplane-policy" + to = aws_iam_policy.giantswarm-crossplane-policy + id = "arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-crossplane-policy" } import { for_each = local.existing_install_for_each - to = aws_iam_role_policy_attachment.giantswarm-crossplane-policy-attachment - id = "giantswarm-${var.installation_name}-capa-controller/arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-crossplane-policy" + to = aws_iam_role_policy_attachment.giantswarm-crossplane-policy-attachment + id = "giantswarm-${var.installation_name}-capa-controller/arn:${var.aws_partition}:iam::${data.aws_caller_identity.current.account_id}:policy/giantswarm-${var.installation_name}-crossplane-policy" }