diff --git a/modules/onboarding/main.tf b/modules/onboarding/main.tf index 72ededf..c5abb2e 100644 --- a/modules/onboarding/main.tf +++ b/modules/onboarding/main.tf @@ -54,13 +54,12 @@ EOF } data "aws_caller_identity" "current" {} -data "aws_iam_account_alias" "current" {} resource "sysdig_secure_cloud_auth_account" "cloud_auth_account" { enabled = true provider_id = data.aws_caller_identity.current.account_id provider_type = "PROVIDER_AWS" - provider_alias = data.aws_iam_account_alias.current.account_alias + provider_alias = var.account_alias component { type = "COMPONENT_TRUSTED_ROLE" diff --git a/modules/onboarding/variables.tf b/modules/onboarding/variables.tf index 5256745..e6e0461 100644 --- a/modules/onboarding/variables.tf +++ b/modules/onboarding/variables.tf @@ -40,3 +40,10 @@ variable "failure_tolerance_percentage" { description = "The percentage of accounts, per Region, for which stack operations can fail before AWS CloudFormation stops the operation in that Region" default = 90 } + +variable "account_alias" { + type = string + description = "Account Alias" + default = "" +} +