This topic describes how to connect your AWS, Azure, GCP and OCI environments to Sysdig Secure. Click a tab below to select the platform you want to set up. You can connect Single Accounts or entire Organization Accounts using Terraform or CloudFormation.
Sign in to the AWS Console. For an Organization, ensure you sign in to your organization’s management account.
Expand the dropdown in the top right corner of the AWS Console and copy your Account ID.You can also get your AWS AccountID by using this command via AWS CLI or the AWS Console terminal:
aws sts get-caller-identity \ --query Account \ --output text
Optional Organization Unit IDs. By default, your entire AWS Organization will be onboarded. If you want to restrict onboarding to a subset of your Organization, you can gather specific OUIDs now and enter them in the following steps.
Click Integrations at the bottom of the main left-hand navigation menu, and choose AWS Cloud Accounts.
3
Choose account type
Choose whether to connect an AWS Organization or a Single Account.
4
Enter IDs and region
For Organization accounts, in Step 2, enter your AWS management Account ID and select your Primary Region. For Single Accounts, enter only your AWS Account ID.
5
Enter OUIDs
In Step 3, you can onboard a subset of your Organization Accounts by entering the OUIDs in a comma-separated list. Leave the field blank to onboard your entire Organization.
6
Generate Terraform file
In Step 4, click the Next button to generate a main.tf file to use with Terraform. Copy its contents and paste them into a new file, or download the file to an empty folder on your workstation, such as /home/user/sysdig_onboarding.
7
Execute Terraform
On your workstation, navigate using the CLI to the folder containing your main.tf file and execute the following commands:
$ cd /home/user/sysdig_onboarding # Your main.tf file location$ terraform init && terraform apply
8
Complete Onboarding
When Terraform completes, click the Complete Onboarding button in the Sysdig Secure dashboard. Your newly added account will appear in the Cloud Accounts page.
In a separate browser window, log in to your AWS Account. For Organization installs, be sure to log in to your Organization’s Management Account.
For Organization accounts, in Step 2, enter your AWS management account ID and your OUID(s). For a Single Account, enter only your AWS Account ID.
In Step 3, click the Launch Stack button. This will shift you to an AWS console browser window. Follow any prompts in AWS to deploy the required resources, and be sure to check the Acknowledgements in the AWS Capabilities section.
When CloudFormation completes, click the Complete Onboarding button in the Sysdig dashboard. Your newly added account will appear in the Cloud Accounts page.
Installer: The primary security principal, either a User or a Service Principal. This security principal will be used to perform the onboarding. Sysdig does not have access to this security principal.
Sysdig: A Service Principal (robot user) created during onboarding with specific, less permissive roles. Sysdig will be given access to this security principal.
SP_ID: Your Installer security principal ID. To retrieve this, open the Azure CLI and use the command az ad sp list --display-name "terraform-runner" --query "[0].appId" --output tsv.
ROOT_MANAGEMENT_GROUP_ID: Your Root Management Group ID. To retrieve this, open the Azure CLI and use the command az account management-group list --query "[].{name:name, id:id}" --output tsv.
Under the Azure services heading, select Subscriptions. If you don’t see Subscriptions here, use the search box to find it.
Find the subscription in the list, and note the Subscription ID shown in the second column. If no subscriptions appear, or you don’t see the right one, you may need to switch directories to show the subscriptions from a different Microsoft Entra tenant.
To easily copy the Subscription ID, select the subscription name to display more details. Select the Copy to clipboard icon shown next to the Subscription ID in the Essentials section. You can paste this value into a text document or other location.
Within 5 minutes, after you apply Terraform, your accounts will appear on the Sysdig Cloud Accounts page. You can add more features after this initial connection by following instructions to Add New Features.You can verify your CSPM configuration by checking the connection status.
In Sysdig Secure, select Integrations > Cloud Accounts > Azure.
The Status column shows the overall connection status:
Connected
Error
Unknown
Select the desired account to review the individual services in the detail drawer.
The health status for CSPM configuration is given below:
CSPM Status
Description
Healthy ✅
The account has been successfully connected, and all the resources have been scanned.
Error ❌
Authentication errors. For example: Invalid account ID Invalid client secret Invalid access credentials Access token errors Deny policy created by the user is preventing Sysdig from collecting resources The scan takes too long and eventually times out. Unknown error