You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update Org onboarding to honor include/exclude (#39)
* Update Org onboarding to honor include/exclude
Change summary:
----------------
- For Foundational onboarding, update the stackset deployment targets
to honor the various include/exclude ous/accounts configuration
input(s) provided by the user.
- Added a section in README.
* Handle account exclusions better
* Remove comment
* Move locals to separate tf
* Honor include/exclude for all modules org installs
* Fix local var to read set
* add version and root id field
* Update organizational.tf
* Refactoring to work around unsupported AWS UNION filter
- Modified the logic for include support:
Inclusions with UNION filter don't work due to an AWS bug.
Added temp change to then install resources on entire org.
- Modified the logic for handling exclusions better and cleaner
- Updated the test example snippets for all features (commercial installs)
* Remove unncessary comment
* Fix description comments
* Fix var name reference
* Keeping provider versions consistent
---------
Co-authored-by: Jose Pablo Camacho <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,16 @@ Notice that:
65
65
66
66
<br/>
67
67
68
+
## Organizational Install Configurations
69
+
70
+
There are four new parameters to configure organizational deployments on the cloud for Sysdig Secure for Cloud :-
71
+
1.`include_ouids` - List of AWS Organizational Unit IDs to deploy the Sysdig Secure for Cloud stack resources in.
72
+
2.`exclude_ouids` - List of AWS Organizational Unit IDs to exclude deploying the Sysdig Secure for Cloud stack resources in.
73
+
3.`include_accounts` - List of AWS Accounts to deploy the Sysdig Secure for Cloud stack resources in.
74
+
4.`exclude_accounts` - List of AWS Accounts to exclude deploying the Sysdig Secure for Cloud stack resources in.
75
+
76
+
Note: module variable `organizational_unit_ids` / `org_units` will be DEPRECATED soon going forward. You can use `include_ouids` instead to achieve the same deployment outcome.
77
+
68
78
## Best practices
69
79
70
80
For contributing to existing modules or adding new modules, below are some of the best practices recommended :-
Copy file name to clipboardExpand all lines: modules/agentless-scanning/README.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,11 @@ No modules.
70
70
| <aname="input_sysdig_secure_account_id"></a> [sysdig\_secure\_account\_id](#input\_sysdig\_secure\_account\_id)| ID of the Sysdig Cloud Account to enable Agentless Scanning for (incase of organization, ID of the Sysdig management account) |`string`| n/a | yes |
71
71
| <aname="input_tags"></a> [tags](#input\_tags)| sysdig secure-for-cloud tags. always include 'product' default tag for resource-group proper functioning |`map(string)`| <pre>{<br> "product": "sysdig-secure-for-cloud"<br>}</pre> | no |
72
72
| <aname="input_timeout"></a> [timeout](#input\_timeout)| Default timeout values for create, update, and delete operations |`string`|`"30m"`| no |
73
+
| <aname="input_include_ouids"></a> [include\_ouids](#input\_include\_ouids)| ouids to include for organization |`set(string)`|`[]`| no |
74
+
| <aname="input_exclude_ouids"></a> [exclude\_ouids](#input\_exclude\_ouids)| ouids to exclude for organization |`set(string)`|`[]`| no |
75
+
| <aname="input_include_accounts"></a> [include\_accounts](#input\_include\_accounts)| accounts to include for organization |`set(string)`|`[]`| no |
76
+
| <aname="input_exclude_accounts"></a> [exclude\_accounts](#input\_exclude\_accounts)| accounts to exclude for organization |`set(string)`|`[]`| no |
# As per https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#organization-structure, there can be only one root
Copy file name to clipboardExpand all lines: modules/agentless-scanning/variables.tf
+28-1Lines changed: 28 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,10 @@ variable "is_organizational" {
31
31
}
32
32
33
33
variable"org_units" {
34
-
description="(Optional) List of Organization Unit IDs in which to setup Agentless Scanning. By default, Agentless Scanning will be setup in all accounts within the Organization. This field is ignored if `is_organizational = false`"
34
+
description=<<-EOF
35
+
DEPRECATED: Defaults to `[]`, use `include_ouids` instead.
36
+
When set, list of Organization Unit IDs to setup Agentless Scanning. By default, Agentless Scanning will be setup in all accounts within the Organization."
0 commit comments