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 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 }