cloud_aws_account
This data source provides information about AWS accounts in Falcon.
API Scopes
Section titled “API Scopes”The following API scopes are required:
- Cloud security AWS registration: READ
- Cloud security AWS registration: WRITE
Example Usage
Section titled “Example Usage”terraform { required_providers { crowdstrike = { source = "registry.terraform.io/crowdstrike/crowdstrike" } }}
provider "crowdstrike" { cloud = "us-2"}
# return all registered AWS accountsdata "crowdstrike_cloud_aws_account" "all" {}
# return a specific AWS accountsdata "crowdstrike_cloud_aws_account" "specific" { account_id = "123456789012"}
# return all accounts associated with an AWS Organizaitondata "crowdstrike_cloud_aws_account" "org" { organization_id = "o-123456789012"}Schema
Section titled “Schema”Optional
Section titled “Optional”account_id(String) Filter the results to a specific AWS Account ID. When both account_id and organization_id are specified, only accounts matching both are returnedorganization_id(String) Filter the results to accounts within a specific AWS Organization. When both account_id and organization_id are specified, only accounts matching both are returned
Read-Only
Section titled “Read-Only”accounts(Attributes List) The list of AWS accounts (see below for nested schema)
Nested Schema for accounts
Section titled “Nested Schema for accounts”Optional:
resource_name_prefix(String) The prefix to be added to all resource namesresource_name_suffix(String) The suffix to be added to all resource names
Read-Only:
account_id(String) The AWS Account IDaccount_type(String) The AWS account type. Value is ‘commercial’ for Commercial cloud accounts. For GovCloud environments, value can be either ‘commercial’ or ‘gov’ depending on the account typeagentless_scanning_role_name(String) The name of the IAM role to be used by CrowdStrike Agentless Scanning (DSPM/Vulnerability scanning). If both are configured, the DSPM role takes precedence.asset_inventory_enabled(Boolean) Whether asset inventory is enabledcloudtrail_bucket_name(String) The name of the CloudTrail S3 bucket used for real-time visibilitycloudtrail_region(String) The AWS region of the CloudTrail bucketdspm_enabled(Boolean) Whether Data Security Posture Management is enableddspm_role_arn(String) The ARN of the IAM role to be used by CrowdStrike DSPMdspm_role_name(String) The name of the IAM role to be used by CrowdStrike DSPMeventbus_arn(String) The ARN of the Amazon EventBridge used by CrowdStrike to forward messageseventbus_name(String) The name of the Amazon EventBridge used by CrowdStrike to forward messagesexternal_id(String) The external ID used to assume the AWS IAM roleiam_role_arn(String) The ARN of the AWS IAM role used to access this AWS accountiam_role_name(String) The name of the AWS IAM role used to access this AWS accountidp_enabled(Boolean) Whether Identity Protection is enabledintermediate_role_arn(String) The ARN of the intermediate role used to assume the AWS IAM roleis_organization_management_account(Boolean) Indicates whether this is the management account (formerly known as the root account) of an AWS Organizationorganization_id(String) The AWS Organization IDrealtime_visibility_enabled(Boolean) Whether real-time visibility is enabledsensor_management_enabled(Boolean) Whether 1-click sensor deployment is enabledtarget_ous(List of String) The list of AWS Organizational Units (OUs) targeted for this accountvulnerability_scanning_enabled(Boolean) Whether Vulnerability Scanning is enabledvulnerability_scanning_role_arn(String) The ARN of the IAM role to be used by CrowdStrike Vulnerability Scanningvulnerability_scanning_role_name(String) The name of the IAM role to be used by CrowdStrike Vulnerability Scanning