Skip to content

Commit 6296df7

Browse files
Ignore changes to automatic onboarding toggle (#64)
- also updated test example snippet
1 parent 4567ffd commit 6296df7

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

modules/onboarding/organizational.tf

+4
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,8 @@ resource "sysdig_secure_organization" "aws_organization" {
8787
included_cloud_accounts = local.check_old_ouid_param ? [] : var.include_accounts
8888
excluded_cloud_accounts = local.check_old_ouid_param ? [] : var.exclude_accounts
8989
automatic_onboarding = var.enable_automatic_onboarding
90+
91+
lifecycle {
92+
ignore_changes = [automatic_onboarding]
93+
}
9094
}

test/examples/organization/onboarding_with_cspm.tf

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ module "onboarding" {
2727
include_ouids = ["ou-1", "ou-2"]
2828
exclude_accounts = ["123456789101", "123456789101", "123456789101", "123456789101"]
2929
include_accounts = ["123456789101", "123456789101"]
30+
31+
# optionally pass automatic onboarding for orgs (defaults to false)
32+
enable_automatic_onboarding = false
3033
}
3134

3235
module "config-posture" {

0 commit comments

Comments
 (0)