From 0c6025cf48496fcbbd6a068e801f49a7f2f02473 Mon Sep 17 00:00:00 2001 From: Choi Yunho Date: Tue, 29 Jul 2025 22:56:18 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[Refactor]=20delegation=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../organizations/backend.tf | 9 --------- .../inspector-delegation/organizations/main.tf | 17 ----------------- .../organizations/variables.tf | 5 ----- 3 files changed, 31 deletions(-) delete mode 100644 management-team-account/inspector-delegation/organizations/backend.tf delete mode 100644 management-team-account/inspector-delegation/organizations/main.tf delete mode 100644 management-team-account/inspector-delegation/organizations/variables.tf diff --git a/management-team-account/inspector-delegation/organizations/backend.tf b/management-team-account/inspector-delegation/organizations/backend.tf deleted file mode 100644 index 62f53b08..00000000 --- a/management-team-account/inspector-delegation/organizations/backend.tf +++ /dev/null @@ -1,9 +0,0 @@ -terraform { - backend "s3" { - bucket = "cloudfence-management-state" - key = "inspector-delegation/organizations.tfstate" - region = "ap-northeast-2" - encrypt = true - dynamodb_table = "s3-management-lock" - } -} \ No newline at end of file diff --git a/management-team-account/inspector-delegation/organizations/main.tf b/management-team-account/inspector-delegation/organizations/main.tf deleted file mode 100644 index 6ff7604e..00000000 --- a/management-team-account/inspector-delegation/organizations/main.tf +++ /dev/null @@ -1,17 +0,0 @@ -terraform { - required_providers { - aws = { - source = "hashicorp/aws" - version = "~> 5.0" - } - } - -} - -provider "aws" { - region = "ap-northeast-2" -} - -resource "aws_inspector2_delegated_admin_account" "this" { - account_id = var.operation_account_id -} \ No newline at end of file diff --git a/management-team-account/inspector-delegation/organizations/variables.tf b/management-team-account/inspector-delegation/organizations/variables.tf deleted file mode 100644 index d3383873..00000000 --- a/management-team-account/inspector-delegation/organizations/variables.tf +++ /dev/null @@ -1,5 +0,0 @@ -variable "operation_account_id" { - description = "operation account" - type = string - sensitive = true -} From e90ee440e9354520ad26bddcf7029b7600aa7ea7 Mon Sep 17 00:00:00 2001 From: Choi Yunho Date: Tue, 29 Jul 2025 23:00:56 +0900 Subject: [PATCH 2/2] actions test --- operation-team-account/runtime-verification/iam/main.tf | 1 - 1 file changed, 1 deletion(-) diff --git a/operation-team-account/runtime-verification/iam/main.tf b/operation-team-account/runtime-verification/iam/main.tf index d6431474..77d2a2f6 100644 --- a/operation-team-account/runtime-verification/iam/main.tf +++ b/operation-team-account/runtime-verification/iam/main.tf @@ -5,7 +5,6 @@ terraform { version = "~> 5.0" } } - } provider "aws" {