From a7ae8d453fef7ab3697a56bccf30d8ce83a67322 Mon Sep 17 00:00:00 2001 From: Choi Yunho Date: Tue, 29 Jul 2025 17:11:08 +0900 Subject: [PATCH 1/2] =?UTF-8?q?inspector=20=EC=8A=A4=EC=BA=94=20=EB=8C=80?= =?UTF-8?q?=EC=83=81=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CI.yml | 2 +- .github/workflows/cd.yml | 3 +-- operation-team-account/runtime-verification/inspector/main.tf | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 10ec87b..5524441 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -92,7 +92,7 @@ jobs: INFRACOST_TERRAFORM_CLI_WRAPPER: false TF_VAR_slack_webhook_url: ${{ secrets.TF_VAR_slack_webhook_url }} TF_VAR_operation_account_id: ${{ secrets.TF_VAR_operation_account_id }} - TF_VAR_prod_account_id: ${{ secrets.TF_VAR_prod_account_id }} + TF_VAR_management_account_id: ${{ secrets.TF_VAR_management_account_id }} steps: - name: Checkout Code diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index d79262b..74211c5 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -110,5 +110,4 @@ jobs: TF_VAR_slack_webhook_url: ${{ secrets.TF_VAR_slack_webhook_url }} TF_VAR_allowed_source_ips: ${{ secrets.TF_VAR_allowed_source_ips }} TF_VAR_operation_account_id: ${{ secrets.TF_VAR_operation_account_id }} - TF_VAR_prod_account_id: ${{ secrets.TF_VAR_prod_account_id }} - + TF_VAR_management_account_id: ${{ secrets.TF_VAR_management_account_id }} diff --git a/operation-team-account/runtime-verification/inspector/main.tf b/operation-team-account/runtime-verification/inspector/main.tf index c63f46b..896b795 100644 --- a/operation-team-account/runtime-verification/inspector/main.tf +++ b/operation-team-account/runtime-verification/inspector/main.tf @@ -20,6 +20,6 @@ resource "aws_inspector2_enabler" "this" { resource_types = ["EC2"] } -resource "aws_inspector2_delegated_admin_account" "prod_account" { - account_id = var.prod_account_id +resource "aws_inspector2_delegated_admin_account" "management_account" { + account_id = var.management_account_id } \ No newline at end of file From cfd69bfa79ff4564aea3a704f40ba9cb5c752ec6 Mon Sep 17 00:00:00 2001 From: Choi Yunho Date: Tue, 29 Jul 2025 17:14:05 +0900 Subject: [PATCH 2/2] =?UTF-8?q?variables=20=EB=88=84=EB=9D=BD=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../runtime-verification/inspector/variables.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/operation-team-account/runtime-verification/inspector/variables.tf b/operation-team-account/runtime-verification/inspector/variables.tf index 1915267..78c7cd9 100644 --- a/operation-team-account/runtime-verification/inspector/variables.tf +++ b/operation-team-account/runtime-verification/inspector/variables.tf @@ -1,5 +1,5 @@ -variable "prod_account_id" { - description = "prod account" +variable "management_account_id" { + description = "management account" type = string sensitive = true }