Skip to content

Commit d7d9509

Browse files
committed
add missing tags
1 parent c62b899 commit d7d9509

File tree

9 files changed

+29
-0
lines changed

9 files changed

+29
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ each module for more information. All modules are enabled by default.
4646
| <a name="input_enable_iam_access_analyzer"></a> [enable\_iam\_access\_analyzer](#input\_enable\_iam\_access\_analyzer) | Enable the IAM Access Analyzer submodule. | `bool` | `true` | no |
4747
| <a name="input_enable_iam_account_password_policy"></a> [enable\_iam\_account\_password\_policy](#input\_enable\_iam\_account\_password\_policy) | Enable the IAM Account Password Policy submodule. | `bool` | `true` | no |
4848
| <a name="input_enable_s3_defaults"></a> [enable\_s3\_defaults](#input\_enable\_s3\_defaults) | Enable the S3 submodule. | `bool` | `true` | no |
49+
| <a name="input_tags"></a> [tags](#input\_tags) | A map of tags to add to all resources. | `map(string)` | `{}` | no |
4950

5051
## Outputs
5152

main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ module "s3" {
1212
module "cloudwatch" {
1313
count = var.enable_cloudwatch_defaults ? 1 : 0
1414
source = "./modules/cloudwatch"
15+
16+
tags = var.tags
1517
}
1618

1719
module "iam_account_password_policy" {
@@ -22,4 +24,6 @@ module "iam_account_password_policy" {
2224
module "iam_access_analyzer" {
2325
count = var.enable_iam_access_analyzer ? 1 : 0
2426
source = "./modules/iam_access_analyzer"
27+
28+
tags = var.tags
2529
}

modules/cloudwatch/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ terraform import 'aws\_cloudwatch\_log\_group.rds\_log\_group' 'RDSOSMetrics'
1616
| Name | Description | Type | Default | Required |
1717
|------|-------------|------|---------|:--------:|
1818
| <a name="input_cloudwatch_log_group_rdsosmetrics_retention_in_days"></a> [cloudwatch\_log\_group\_rdsosmetrics\_retention\_in\_days](#input\_cloudwatch\_log\_group\_rdsosmetrics\_retention\_in\_days) | The number of days log events are kept in CloudWatch Logs for the default RDSOSMetrics group. | `number` | `365` | no |
19+
| <a name="input_tags"></a> [tags](#input\_tags) | A map of tags to add to all resources. | `map(string)` | `{}` | no |
1920

2021
## Outputs
2122

modules/cloudwatch/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@
1414
resource "aws_cloudwatch_log_group" "rdsosmetrics" {
1515
name = "RDSOSMetrics"
1616
retention_in_days = var.cloudwatch_log_group_rdsosmetrics_retention_in_days
17+
18+
tags = var.tags
1719
}

modules/cloudwatch/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
variable "tags" {
2+
description = "A map of tags to add to all resources."
3+
type = map(string)
4+
default = {}
5+
}
6+
17
variable "cloudwatch_log_group_rdsosmetrics_retention_in_days" {
28
description = "The number of days log events are kept in CloudWatch Logs for the default RDSOSMetrics group."
39
default = 365

modules/iam_access_analyzer/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Creates an AWS Access Analyzer for the account or organization.
99
|------|-------------|------|---------|:--------:|
1010
| <a name="input_access_analyzer_name"></a> [access\_analyzer\_name](#input\_access\_analyzer\_name) | The name of the analyzer. | `string` | `"account-default"` | no |
1111
| <a name="input_access_analyzer_type"></a> [access\_analyzer\_type](#input\_access\_analyzer\_type) | The type of analyzer, ACCOUNT or ORGANIZATION. | `string` | `"ACCOUNT"` | no |
12+
| <a name="input_tags"></a> [tags](#input\_tags) | A map of tags to add to all resources. | `map(string)` | `{}` | no |
1213

1314
## Outputs
1415

modules/iam_access_analyzer/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@
66
resource "aws_accessanalyzer_analyzer" "main" {
77
analyzer_name = var.access_analyzer_name
88
type = var.access_analyzer_type
9+
10+
tags = var.tags
911
}

modules/iam_access_analyzer/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
variable "tags" {
2+
description = "A map of tags to add to all resources."
3+
type = map(string)
4+
default = {}
5+
}
6+
17
variable "access_analyzer_name" {
28
description = "The name of the analyzer."
39
default = "account-default"

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
variable "tags" {
2+
description = "A map of tags to add to all resources."
3+
type = map(string)
4+
default = {}
5+
}
6+
17
## S3 PUBLIC ACCESS
28
variable "enable_s3_defaults" {
39
description = "Enable the S3 submodule."

0 commit comments

Comments
 (0)