config

cloudposse/config/aws

Terraform Module HCL AWS

This module configures AWS Config, a service that enables you to assess, audit, and evaluate the configurations of your AWS resources.

Install
module "config" {
source = "cloudposse/config/aws"
version = "1.5.3"
}
⭐ Source on GitHub 📦 Registry page
README

This module enables AWS Config and optionally sets up an SNS topic to receive notifications of its findings. > [!TIP] > #### 👽 Use Atmos with Terraform > Cloud Posse uses atmos to easily orchestrate multiple environments using Terraform. > Works with Github Actions, Atlantis, or Spacelift. > > > Watch demo of using Atmos with Terraform > > Example of running atmos to manage infrastructure from our Quick Start tutorial. > Usage For a complete example, see examples/complete. For automated tests of the complete example using bats and Terratest (which tests and deploys the example on AWS), see test. ``hcl module "example" { source = "cloudposse/config/aws" # Cloud Posse recommends pinning every module to a specific version # version = "x.x.x" create_sns_topic = true create_iam_role = true mana

Inputs (40)
NameTypeDescriptionDefault
global_resource_collector_regionstringThe region that collects AWS Config data for global resources such as IAM required
s3_bucket_idstringThe id (name) of the S3 bucket used to store the configuration history required
s3_bucket_arnstringThe ARN of the S3 bucket used to store the configuration history required
tagsmap(string)Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). Neither the tag keys nor the t{}
create_sns_topicboolFlag to indicate whether an SNS topic should be created for notifications If youfalse
enabledboolSet to false to prevent the module from creating any resourcesnull
create_organization_aggregator_iam_roleboolFlag to indicate whether an IAM Role should be created to grant the proper permifalse
label_orderlist(string)The order in which the labels (ID elements) appear in the `id`. Defaults to ["nanull
regex_replace_charsstringTerraform regular expression (regex) string. Characters matching the regex will null
findings_notification_arnstringThe ARN for an SNS topic to send findings notifications to. This is only used ifnull
iam_role_organization_aggregator_arnstringThe ARN for an IAM Role that AWS Config uses for the organization aggregator thanull
allowed_aws_services_for_sns_publishedlist(string)AWS services that will have permission to publish to SNS topic. Used when no ext[]
labels_as_tagsset(string)Set of labels (ID elements) to include as tags in the `tags` output. Default is [ "default" ]
label_key_casestringControls the letter case of the `tags` keys (label names) for tags generated by null
create_iam_roleboolFlag to indicate whether an IAM Role should be created to grant the proper permifalse
iam_role_arnstringThe ARN for an IAM Role AWS Config uses to make read or write requests to the denull
child_resource_collector_accountsset(string)The account IDs of other accounts that will send their AWS Configuration to thisnull
force_destroyboolA boolean that indicates all objects should be deleted from the bucket so that tfalse
recording_modeobject({ recording_frequenThe mode for AWS Config to record configuration changes. recording_frequency: null
disabled_aggregation_regionslist(string)A list of regions where config aggregation is disabled[ "ap-northeast-3" ]
allowed_iam_arns_for_sns_publishlist(string)IAM role/user ARNs that will have permission to publish to SNS topic. Used when []
label_value_casestringControls the letter case of ID elements (labels) as included in `id`, set as tagnull
sqs_queue_kms_master_key_idstringThe ID of an AWS-managed customer master key (CMK) for Amazon SQS Queue or a cus""
Outputs (7)
sns_topic — SNS topic
sns_topic_subscriptions — SNS topic subscriptions
aws_config_configuration_recorder_id — The ID of the AWS Config Recorder
storage_bucket_id — Bucket Name (aka ID)
storage_bucket_arn — Bucket ARN
iam_role — IAM Role used to make read or write requests to the delivery channel and to describe the AWS resourc
iam_role_organization_aggregator — IAM Role used to make read or write requests to the delivery channel and to describe the AWS resourc
Resources (7)
aws_config_aggregate_authorizationaws_config_config_ruleaws_config_configuration_aggregatoraws_config_configuration_recorderaws_config_configuration_recorder_statusaws_config_delivery_channelaws_iam_role_policy_attachment
Details
FrameworkTerraform Module
LanguageHCL
Version1.5.3
Cloud AWS
★ Stars48
Forks64
Total downloads5.3M
Inputs40
Outputs7
Resources7
Examples3
Submodules2
LicenseApache-2.0
Namespacecloudposse
Updated