Skip to content

Commit 8cca4ab

Browse files
fix(modular): make account alias optional in onboarding module (#19)
1 parent 14e5159 commit 8cca4ab

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

modules/onboarding/main.tf

+1-2
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,12 @@ EOF
5454
}
5555

5656
data "aws_caller_identity" "current" {}
57-
data "aws_iam_account_alias" "current" {}
5857

5958
resource "sysdig_secure_cloud_auth_account" "cloud_auth_account" {
6059
enabled = true
6160
provider_id = data.aws_caller_identity.current.account_id
6261
provider_type = "PROVIDER_AWS"
63-
provider_alias = data.aws_iam_account_alias.current.account_alias
62+
provider_alias = var.account_alias
6463

6564
component {
6665
type = "COMPONENT_TRUSTED_ROLE"

modules/onboarding/variables.tf

+7
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,10 @@ variable "failure_tolerance_percentage" {
4040
description = "The percentage of accounts, per Region, for which stack operations can fail before AWS CloudFormation stops the operation in that Region"
4141
default = 90
4242
}
43+
44+
variable "account_alias" {
45+
type = string
46+
description = "Account Alias"
47+
default = ""
48+
}
49+

0 commit comments

Comments
 (0)