aws-config
This component provisions AWS Config across all accounts in an AWS Organization. AWS Config is a service that enables you to assess, audit, and evaluate the configurations of your AWS resources. It continuously monitors and records configuration changes to your AWS resources and provides a detailed view of the relationships between those resources.
Component Features
This component is responsible for:
- Configuration Recording: Deploys Configuration Recorders in each account and region to track resource configurations
- Centralized Aggregation: Configures a designated account (typically
security) as the central aggregation point for all AWS Config data - Compliance Monitoring: Deploys conformance packs to monitor resources for compliance with best practices and industry standards (e.g., CMMC, CIS, HIPAA)
- Configuration Storage: Delivers configuration snapshots and history to a centralized S3 bucket (typically in the
auditaccount) - Organization-wide Conformance Packs: Deploys organization conformance packs from the management account that automatically apply to all member accounts
- SNS Topic Encryption: Creates encrypted SNS topics for AWS Config notifications (required for CMMC compliance)
New Features
This version includes several enhancements:
- Local Conformance Pack Support: Load conformance packs from local files in addition to remote URLs. This enables custom packs, air-gapped deployments, and version-controlled compliance rules.
- Organization Conformance Packs: Deploy conformance packs organization-wide from the management account using the
scope: organizationsetting. - SNS Topic Encryption: Built-in support for KMS encryption of AWS Config SNS topics (
sns_encryption_key_idvariable) for CMMC compliance. - Flexible Component Naming: The
global_collector_component_name_patternvariable allows customization of how the component looks up the global collector region's remote state. - GovCloud Support: Full support for AWS GovCloud regions and partitions.
Key AWS Config Capabilities
- Configuration History: Maintains a detailed history of changes to AWS resources, showing when changes were made, who made them, and what the changes were
- Configuration Snapshots: Takes periodic snapshots of resource configurations for point-in-time views
- Compliance Monitoring: Provides pre-built rules and checks for compliance with best practices and industry standards
- Relationship Mapping: Maps relationships between AWS resources to understand change impacts
- Notifications and Alerts: Sends notifications when configuration changes impact compliance or security posture
Architecture
The component deploys a multi-account, multi-region architecture:
┌─────────────────────────────────────────────────────────────────────────────┐
│ AWS Organization │
│ │
│ ┌────────────────────────────────────────────────────────────────────────┐ │
│ │ Management Account (Organization Conformance Packs) │ │
│ │ - Deploys organization-wide conformance packs │ │
│ │ - Packs automatically apply to all member accounts │ │
│ └────────────────────────────────────────────────────────────────────────┘ │
│ │
│ ┌────────────────────────────────────────────────────────────────────────┐ │
│ │ Security Account (Central Aggregator) │ │
│ │ - AWS Config Aggregator (collects from ALL accounts) │ │
│ │ - Centralized compliance dashboard │ │
│ └────────────────────────────────────────────────────────────────────────┘ │
│ ▲ ▲ ▲ │
│ │ │ │ Aggregate Authorizations │
│ │ │ │ │
│ ┌────────────────────────────────────────────────────────────────────────┐ │
│ │ Audit Account │ │
│ │ - S3 Bucket (aws-config-bucket) │ │
│ │ - Stores ALL Config data from all accounts ◄───────────────┐ │ │
│ └──────────────────────────────────────────────────────────────│──────────┘ │
│ │ │
│ ┌────────────────────────────────────────────────────────────┐ │ │
│ │ Each Member Account │ │ │
│ │ │ │ │
│ │ Global Collector Region (e.g., us-east-1): │ │ │
│ │ ✓ Configuration Recorder │ │ │
│ │ ✓ IAM Role (created once per account) │ │ │
│ │ ✓ Tracks global resources (IAM, Route53, etc.) │ │ │
│ │ ✓ Aggregate Authorization → Security Account │─┘ │
│ │ ✓ Delivery Channel → S3 Bucket (audit) ────────────────────────────────┘
│ │ │ │
│ │ Additional Regions (e.g., us-west-2): │ │
│ │ ✓ Configuration Recorder │ │
│ │ ✓ References IAM Role from global collector region │ │
│ │ ✓ Tracks regional resources (EC2, VPC, RDS, etc.) │ │
│ │ ✓ Delivery Channel → S3 Bucket (audit) ────────────────────────────────┘
│ └────────────────────────────────────────────────────────────┘ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
Architecture Benefits
- Centralized Compliance: Security team can view all resource configurations from one account
- Cost Efficiency: Single S3 bucket for all AWS Config data (in audit account)
- Security Best Practices: Aggregation in security account aligns with AWS Well-Architected Framework
- Scalability: Easy to add new accounts and regions without changing the aggregation setup
- GovCloud Compatible: Supports AWS GovCloud regions and partitions
AWS Config Limitations
Be aware of these AWS Config limitations:
- Maximum 1000 AWS Config rules per account can be evaluated
- Mitigate by removing duplicate rules across packs
- Remove rules that don't apply to any resources
- Consider scheduling pack deployment with Lambda for more than 1000 rules
- See the Audit Manager docs for converting conformance packs to custom Audit Manager assessments
- Maximum 50 conformance packs per account
Usage
Prerequisites
Before deploying this AWS Config component:
-
AWS Config Bucket: The
aws-config-bucketcomponent must be provisioned first in the audit account:atmos terraform apply aws-config-bucket -s core-ue1-audit -
Support IAM Role (CIS AWS Foundations 1.20): A designated support IAM role should be deployed to every account:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowSupport",
"Effect": "Allow",
"Action": ["support:*"],
"Resource": "*"
},
{
"Sid": "AllowTrustedAdvisor",
"Effect": "Allow",
"Action": "trustedadvisor:Describe*",
"Resource": "*"
}
]
} -
Service Access Principals (for organization-level conformance packs): Enable trusted access for AWS Config in your organization:
How to Verify:
aws organizations list-aws-service-access-for-organization | grep configEnable if Disabled:
aws organizations enable-aws-service-access --service-principal config.amazonaws.com
aws organizations enable-aws-service-access --service-principal config-multiaccountsetup.amazonaws.comOr if using our
accountcomponent, add these principals toaws_service_access_principals.
Usage
Stack Level: Regional
AWS Config is a regional service. The component must be deployed to each region where you want to track resources.
Scope Configuration
The default_scope variable controls how conformance packs are deployed:
| Scope | Description | Use Case |
|---|---|---|
account | Conformance packs deployed per-account | Member accounts |
organization | Conformance packs deployed organization-wide | Management account only |
Using Account Scope (Member Accounts)
For member accounts, use default_scope: account. The component will:
- Create a Configuration Recorder in each region
- Create an IAM role only in the global collector region
- Authorize the central aggregator account to collect data
- Deploy account-level conformance packs
Using Organization Scope (Management Account)
For the management account, use default_scope: organization. The component will:
- Deploy organization-wide conformance packs that apply to ALL member accounts
- Require the
config-multiaccountsetup.amazonaws.comservice access principal
Key Configuration Variables
| Variable | Description | Example |
|---|---|---|
global_resource_collector_region | Region that tracks global resources (IAM, Route53) | us-east-1 |
central_resource_collector_account | Account that aggregates all Config data | security |
create_iam_role | Set to true - component auto-detects global collector region | true |
config_bucket_* | References the S3 bucket in audit account | See example below |
sns_encryption_key_id | KMS key for SNS topic encryption (CMMC compliance) | alias/aws/sns |
Catalog Configuration
Default Configuration (stacks/catalog/aws-config/defaults.yaml)
components:
terraform:
aws-config/defaults:
metadata:
type: abstract
component: "aws-config"
vars:
enabled: true
default_scope: account
create_iam_role: true
az_abbreviation_type: fixed
account_map_component_name: "account-map"
account_map_tenant: core
root_account_stage: root
global_environment: gbl
global_resource_collector_region: "us-east-1"
central_resource_collector_account: security
config_bucket_component_name: "aws-config-bucket"
config_bucket_tenant: core
config_bucket_env: ue1
config_bucket_stage: audit
sns_encryption_key_id: "alias/aws/sns"
conformance_packs: []
Member Account Configuration (stacks/catalog/aws-config/member-account.yaml)
import:
- catalog/aws-config/defaults
components:
terraform:
aws-config:
metadata:
component: "aws-config"
inherits:
- "aws-config/defaults"
Organization Account Configuration (stacks/catalog/aws-config/organization.yaml)
import:
- catalog/aws-config/defaults
components:
terraform:
aws-config:
metadata:
component: "aws-config"
inherits:
- "aws-config/defaults"
vars:
default_scope: organization
conformance_packs:
- name: "Operational-Best-Practices-for-CIS-AWS-v1.4-Level2"
conformance_pack: "https://raw.githubusercontent.com/awslabs/aws-config-rules/master/aws-config-conformance-packs/Operational-Best-Practices-for-CIS-AWS-v1.4-Level2.yaml"
parameter_overrides: {}
Conformance Packs
Conformance packs define a collection of AWS Config rules for compliance monitoring. This component supports loading conformance packs from both remote URLs and local files.
Local File Support (New Feature)
The component now supports loading conformance packs from the local filesystem in addition to remote URLs. This enables:
- Custom conformance packs: Create organization-specific compliance rules
- Modified AWS packs: Customize AWS-provided packs for your requirements
- Air-gapped environments: Deploy in environments without internet access
- Version control: Track conformance pack changes alongside infrastructure code
The component automatically detects whether the conformance_pack value is a URL (starts with http:// or https://)
or a local file path. Local paths are resolved relative to the component's root directory.
Conformance Pack Examples
conformance_packs:
# Remote URL (AWS Labs managed packs)
- name: "CIS-AWS-v1.4-Level2"
conformance_pack: "https://raw.githubusercontent.com/awslabs/aws-config-rules/master/aws-config-conformance-packs/Operational-Best-Practices-for-CIS-AWS-v1.4-Level2.yaml"
parameter_overrides:
AccessKeysRotatedParamMaxAccessKeyAge: "45"
# Local file (relative to component directory)
- name: "Custom-CMMC-Pack"
conformance_pack: "conformance-packs/custom-cmmc-pack.yaml"
parameter_overrides: {}
# Another local file example
- name: "CMMC-Level2-Best-Practices"
conformance_pack: "conformance-packs/cmmc-l2-v2-AWS-Best-Practices.yaml"
parameter_overrides:
IamPasswordPolicyParamMaxPasswordAge: "60"
# Override scope for specific pack
- name: "Org-Wide-Security-Pack"
conformance_pack: "https://example.com/pack.yaml"
scope: "organization" # Override default_scope
parameter_overrides: {}
Creating Custom Conformance Packs
To create a custom conformance pack:
-
Create a
conformance-packs/directory in your component:components/terraform/aws-config/
├── conformance-packs/
│ ├── custom-security-rules.yaml
│ └── cmmc-l2-v2-customized.yaml
├── main.tf
├── variables.tf
└── ... -
Define rules in CloudFormation format:
# conformance-packs/custom-security-rules.yaml
Parameters:
MaxAccessKeyAge:
Default: '90'
Type: String
Resources:
AccessKeysRotated:
Type: AWS::Config::ConfigRule
Properties:
ConfigRuleName: custom-access-keys-rotated
InputParameters:
maxAccessKeyAge:
Ref: MaxAccessKeyAge
Source:
Owner: AWS
SourceIdentifier: ACCESS_KEYS_ROTATED -
Reference the local file in your configuration:
conformance_packs:
- name: "Custom-Security-Rules"
conformance_pack: "conformance-packs/custom-security-rules.yaml"
parameter_overrides:
MaxAccessKeyAge: "45"
SNS Topic Encryption
AWS Config creates an SNS topic for notifications. For CMMC compliance, this topic must be encrypted:
# Option 1: AWS Managed Key (Recommended)
sns_encryption_key_id: "alias/aws/sns"
# Option 2: Customer Managed KMS Key
sns_encryption_key_id: "arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012"
Deployment
Provisioning Order
Critical: Deploy Member Accounts BEFORE Organization Account
Organization conformance packs require all member accounts to have configuration recorders already set up. Always deploy member accounts first, then the organization/management account last.
Step 1: Deploy to Member Accounts (Global Collector Region First)
All member accounts can be deployed in parallel:
# Core tenant accounts
atmos terraform apply aws-config -s core-ue1-audit
atmos terraform apply aws-config -s core-ue1-security
atmos terraform apply aws-config -s core-ue1-network
atmos terraform apply aws-config -s core-ue1-identity
atmos terraform apply aws-config -s core-ue1-dns
atmos terraform apply aws-config -s core-ue1-automation
# Platform tenant accounts (if applicable)
atmos terraform apply aws-config -s plat-ue1-dev
atmos terraform apply aws-config -s plat-ue1-staging
atmos terraform apply aws-config -s plat-ue1-prod
Step 2: Deploy to Organization/Management Account (LAST)
atmos terraform apply aws-config -s core-ue1-root
Multi-Region Deployment
AWS Config is regional. For multi-region coverage, deploy to each region:
How Multi-Region Works
- Global Collector Region (e.g.,
us-east-1): Creates the IAM role, tracks global resources - Additional Regions (e.g.,
us-west-2): References IAM role via remote state, tracks regional resources only
Prerequisites for Additional Regions
Add the aws-config import to regional baseline files:
# stacks/orgs/acme/core/security/us-west-2/baseline.yaml
import:
- orgs/acme/core/security/_defaults
- mixins/region/us-west-2
- catalog/aws-config/member-account # Add this
Deploy Additional Regions
Follow the same order: member accounts first, then organization account.
# Step 1: Member accounts in us-west-2
atmos terraform apply aws-config -s core-uw2-audit
atmos terraform apply aws-config -s core-uw2-security
# ... all other member accounts
# Step 2: Organization account in us-west-2 (LAST)
atmos terraform apply aws-config -s core-uw2-root
Known Issues and False Positives
IAM Inline Policy Check - Service-Linked Roles
The IAM_NO_INLINE_POLICY_CHECK rule flags AWS Service-Linked Roles (SLRs) as NON_COMPLIANT. This is a known false
positive.
Why This Happens:
- AWS Service-Linked Roles are automatically created and managed by AWS services
- These roles must have inline policies by AWS design
- The rule cannot distinguish between user-created roles and AWS-managed SLRs
Common SLRs That Trigger This Finding:
| Service-Linked Role | Service |
|---|---|
AWSServiceRoleForAmazonGuardDuty | GuardDuty |
AWSServiceRoleForConfig | AWS Config |
AWSServiceRoleForSecurityHub | Security Hub |
AWSServiceRoleForAccessAnalyzer | IAM Access Analyzer |
AWSServiceRoleForAmazonMacie | Macie |
AWSServiceRoleForInspector2 | Inspector |
Recommended Action:
- Document these as accepted false positives
- Focus remediation on NON_COMPLIANT findings for user-created roles (not starting with
AWSServiceRole) - Validate findings with:
aws iam get-role --role-name <role> --query 'Role.Path'- Service-linked roles have path:
/aws-service-role/<service>/
- Service-linked roles have path:
For CMMC/Compliance Auditors:
- Service-linked roles are AWS-managed and out of customer control
- CMMC framework recognizes AWS-managed resources as acceptable exceptions
- Document the exception with proper justification
Verification Commands
# Verify SNS topic encryption
aws sns get-topic-attributes \
--topic-arn arn:aws:sns:us-east-1:123456789012:config-topic \
--query 'Attributes.KmsMasterKeyId'
# List service-linked roles
aws iam list-roles --query 'Roles[?starts_with(RoleName, `AWSServiceRole`)].RoleName'
# Check if role is service-linked
aws iam get-role --role-name AWSServiceRoleForAmazonGuardDuty --query 'Role.Path'
Variables
Required Variables
central_resource_collector_account(string) requiredThe name of the account that is the centralized aggregation account.
config_bucket_env(string) requiredThe environment of the AWS Config S3 Bucket
config_bucket_stage(string) requiredThe stage of the AWS Config S3 Bucket
global_resource_collector_region(string) requiredThe region that collects AWS Config data for global resources such as IAM
region(string) requiredAWS Region
Optional Variables
account_map_component_name(string) optionalThe name of the account-map component
Default value:
"account-map"account_map_tenant(string) optional(Optional) The tenant where the account_map component required by remote-state is deployed.
Default value:
""az_abbreviation_type(string) optionalAZ abbreviation type,
fixedorshortDefault value:
"fixed"config_bucket_component_name(string) optionalThe name of the config-bucket component
Default value:
"config-bucket"config_bucket_tenant(string) optional(Optional) The tenant of the AWS Config S3 Bucket
Default value:
""config_component_name(string) optionalThe name of the aws config component (i.e., this component)
Default value:
"aws-config"conformance_packsoptionalList of conformance packs. Each conformance pack is a map with the following keys: name, conformance_pack, parameter_overrides.
For example:
conformance_packs = [
{
name = "Operational-Best-Practices-for-CIS-AWS-v1.4-Level1"
conformance_pack = "https://raw.githubusercontent.com/awslabs/aws-config-rules/master/aws-config-conformance-packs/Operational-Best-Practices-for-CIS-AWS-v1.4-Level1.yaml"
parameter_overrides = {
"AccessKeysRotatedParamMaxAccessKeyAge" = "45"
}
},
{
name = "Operational-Best-Practices-for-CIS-AWS-v1.4-Level2"
conformance_pack = "https://raw.githubusercontent.com/awslabs/aws-config-rules/master/aws-config-conformance-packs/Operational-Best-Practices-for-CIS-AWS-v1.4-Level2.yaml"
parameter_overrides = {
"IamPasswordPolicyParamMaxPasswordAge" = "45"
}
}
]Complete list of AWS Conformance Packs managed by AWSLabs can be found here:
https://github.com/awslabs/aws-config-rules/tree/master/aws-config-conformance-packsType:
list(object({
name = string
conformance_pack = string
parameter_overrides = map(any)
scope = optional(string, null)
}))Default value:
[ ]create_iam_role(bool) optionalFlag to indicate whether an IAM Role should be created to grant the proper permissions for AWS Config
Default value:
falsedefault_scope(string) optionalThe default scope of the conformance pack. Valid values are
accountandorganization.Default value:
"account"delegated_accounts(set(string)) optionalThe account IDs of other accounts that will send their AWS Configuration or Security Hub data to this account
Default value:
nullglobal_collector_component_name_pattern(string) optionalA string formatting pattern used to construct or look up the name of the
global AWS Config collector region component.This pattern should align with the regional naming convention of the
aws-config component. For example, if the pattern is "%s-%s" and you pass
("aws-config", "use1"), the resulting component name will be "aws-config-use1".Adjust this pattern if your environment uses a different naming convention
for regional AWS Config components.Default value:
"%s-%s"global_environment(string) optionalGlobal environment name
Default value:
"gbl"iam_role_arn(string) optionalThe ARN for an IAM Role AWS Config uses to make read or write requests to the delivery channel and to describe the
AWS resources associated with the account. This is only used if create_iam_role is false.If you want to use an existing IAM Role, set the variable to the ARN of the existing role and set create_iam_role to
false.See the AWS Docs for further information:
http://docs.aws.amazon.com/config/latest/developerguide/iamrole-permissions.htmlDefault value:
nullmanaged_rulesoptionalA list of AWS Managed Rules that should be enabled on the account.
See the following for a list of possible rules to enable:
https://docs.aws.amazon.com/config/latest/developerguide/managed-rules-by-aws-config.htmlExample:
managed_rules = {<br/>
access-keys-rotated = {<br/>
identifier = "ACCESS_KEYS_ROTATED"<br/>
description = "Checks whether the active access keys are rotated within the number of days specified in maxAccessKeyAge. The rule is NON_COMPLIANT if the access keys have not been rotated for more than maxAccessKeyAge number of days."<br/>
input_parameters = {<br/>
maxAccessKeyAge : "90"<br/>
}<br/>
enabled = true<br/>
tags = {}<br/>
}<br/>
}<br/>
```<br/>
<br/>
<br/>
**Type:**
```hcl
map(object({
description = string
identifier = string
input_parameters = any
tags = map(string)
enabled = bool
}))Default value:
{ }privileged(bool) optionalTrue if the default provider already has access to the backend
Default value:
falseroot_account_stage(string) optionalThe stage name for the Organization root (master) account
Default value:
"root"sns_encryption_key_id(string) optionalThe ID of an AWS-managed customer master key (CMK) for Amazon SNS or a custom CMK.
Use "alias/aws/sns" for AWS managed key (recommended for compliance).
Use a custom KMS key ARN or alias for organization-specific encryption requirements.IMPORTANT: This is required for CMMC compliance (cmmc-2-v2-sns-encrypted-kms rule).
The SNS topic created by AWS Config must be encrypted with KMS.Default value:
"alias/aws/sns"
Context Variables
The following variables are defined in the context.tf file of this module and part of the terraform-null-label pattern.
context.tf file of this module and part of the terraform-null-label pattern.additional_tag_map(map(string)) optionalAdditional key-value pairs to add to each map in
tags_as_list_of_maps. Not added totagsorid.
This is for some rare cases where resources want additional configuration of tags
and therefore take a list of maps with tag key, value, and additional configuration.Required: No
Default value:
{ }attributes(list(string)) optionalID element. Additional attributes (e.g.
workersorcluster) to add toid,
in the order they appear in the list. New attributes are appended to the
end of the list. The elements of the list are joined by thedelimiter
and treated as a single ID element.Required: No
Default value:
[ ]context(any) optionalSingle object for setting entire context at once.
See description of individual variables for details.
Leave string and numeric variables asnullto use default value.
Individual variable settings (non-null) override settings in context object,
except for attributes, tags, and additional_tag_map, which are merged.Required: No
Default value:
{
"additional_tag_map": {},
"attributes": [],
"delimiter": null,
"descriptor_formats": {},
"enabled": true,
"environment": null,
"id_length_limit": null,
"label_key_case": null,
"label_order": [],
"label_value_case": null,
"labels_as_tags": [
"unset"
],
"name": null,
"namespace": null,
"regex_replace_chars": null,
"stage": null,
"tags": {},
"tenant": null
}delimiter(string) optionalDelimiter to be used between ID elements.
Defaults to-(hyphen). Set to""to use no delimiter at all.Required: No
Default value:
nulldescriptor_formats(any) optionalDescribe additional descriptors to be output in the
descriptorsoutput map.
Map of maps. Keys are names of descriptors. Values are maps of the form
\{<br/> format = string<br/> labels = list(string)<br/> \}
(Type isanyso the map values can later be enhanced to provide additional options.)
formatis a Terraform format string to be passed to theformat()function.
labelsis a list of labels, in order, to pass toformat()function.
Label values will be normalized before being passed toformat()so they will be
identical to how they appear inid.
Default is{}(descriptorsoutput will be empty).Required: No
Default value:
{ }enabled(bool) optionalSet to false to prevent the module from creating any resources
Required: NoDefault value:
nullenvironment(string) optionalID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT'
Required: NoDefault value:
nullid_length_limit(number) optionalLimit
idto this many characters (minimum 6).
Set to0for unlimited length.
Set tonullfor keep the existing setting, which defaults to0.
Does not affectid_full.Required: No
Default value:
nulllabel_key_case(string) optionalControls the letter case of the
tagskeys (label names) for tags generated by this module.
Does not affect keys of tags passed in via thetagsinput.
Possible values:lower,title,upper.
Default value:title.Required: No
Default value:
nulllabel_order(list(string)) optionalThe order in which the labels (ID elements) appear in the
id.
Defaults to ["namespace", "environment", "stage", "name", "attributes"].
You can omit any of the 6 labels ("tenant" is the 6th), but at least one must be present.Required: No
Default value:
nulllabel_value_case(string) optionalControls the letter case of ID elements (labels) as included in
id,
set as tag values, and output by this module individually.
Does not affect values of tags passed in via thetagsinput.
Possible values:lower,title,upperandnone(no transformation).
Set this totitleand setdelimiterto""to yield Pascal Case IDs.
Default value:lower.Required: No
Default value:
nulllabels_as_tags(set(string)) optionalSet of labels (ID elements) to include as tags in the
tagsoutput.
Default is to include all labels.
Tags with empty values will not be included in thetagsoutput.
Set to[]to suppress all generated tags.
Notes:
The value of thenametag, if included, will be theid, not thename.
Unlike othernull-labelinputs, the initial setting oflabels_as_tagscannot be
changed in later chained modules. Attempts to change it will be silently ignored.Required: No
Default value:
[
"default"
]name(string) optionalID element. Usually the component or solution name, e.g. 'app' or 'jenkins'.
This is the only ID element not also included as atag.
The "name" tag is set to the fullidstring. There is no tag with the value of thenameinput.Required: No
Default value:
nullnamespace(string) optionalID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique
Required: NoDefault value:
nullregex_replace_chars(string) optionalTerraform regular expression (regex) string.
Characters matching the regex will be removed from the ID elements.
If not set,"/[^a-zA-Z0-9-]/"is used to remove all characters other than hyphens, letters and digits.Required: No
Default value:
nullstage(string) optionalID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release'
Required: NoDefault value:
nulltags(map(string)) optionalAdditional tags (e.g.
{'BusinessUnit': 'XYZ'}).
Neither the tag keys nor the tag values will be modified by this module.Required: No
Default value:
{ }tenant(string) optionalID element (Rarely used, not included by default). A customer identifier, indicating who this instance of a resource is for
Required: NoDefault value:
null
Outputs
aws_config_configuration_recorder_idThe ID of the AWS Config Recorder
aws_config_iam_roleThe ARN of the IAM Role used for AWS Config
storage_bucket_arnStorage Config bucket ARN
storage_bucket_idStorage Config bucket ID
Dependencies
Requirements
terraform, version:>= 1.0.0aws, version:>= 4.0, < 6.0.0awsutils, version:>= 0.16.0, < 6.0.0
Providers
aws, version:>= 4.0, < 6.0.0
Modules
| Name | Version | Source | Description |
|---|---|---|---|
account_map | 1.8.0 | cloudposse/stack-config/yaml//modules/remote-state | n/a |
aws_config | 1.5.3 | cloudposse/config/aws | n/a |
aws_config_label | 0.25.0 | cloudposse/label/null | n/a |
config_bucket | 1.8.0 | cloudposse/stack-config/yaml//modules/remote-state | n/a |
conformance_pack | 1.5.3 | cloudposse/config/aws//modules/conformance-pack | n/a |
global_collector_region | 1.8.0 | cloudposse/stack-config/yaml//modules/remote-state | n/a |
iam_roles | latest | ../account-map/modules/iam-roles | n/a |
org_conformance_pack | latest | ./modules/org-conformance-pack | n/a |
this | 0.25.0 | cloudposse/label/null | n/a |
utils | 1.4.0 | cloudposse/utils/aws | n/a |
Resources
The following resources are used by this module:
Data Sources
The following data sources are used by this module:
aws_caller_identity.this(data source)aws_partition.this(data source)aws_region.this(data source)