Skip to content

Commit ae672c1

Browse files
authored
feat: Shorten outputs (removing this_) (#216)
1 parent 93f89aa commit ae672c1

File tree

20 files changed

+245
-246
lines changed

20 files changed

+245
-246
lines changed

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -192,23 +192,23 @@ No modules.
192192

193193
| Name | Description |
194194
|------|-------------|
195-
| <a name="output_this_enhanced_monitoring_iam_role_arn"></a> [this\_enhanced\_monitoring\_iam\_role\_arn](#output\_this\_enhanced\_monitoring\_iam\_role\_arn) | The Amazon Resource Name (ARN) specifying the enhanced monitoring role |
196-
| <a name="output_this_enhanced_monitoring_iam_role_name"></a> [this\_enhanced\_monitoring\_iam\_role\_name](#output\_this\_enhanced\_monitoring\_iam\_role\_name) | The name of the enhanced monitoring role |
197-
| <a name="output_this_enhanced_monitoring_iam_role_unique_id"></a> [this\_enhanced\_monitoring\_iam\_role\_unique\_id](#output\_this\_enhanced\_monitoring\_iam\_role\_unique\_id) | Stable and unique string identifying the enhanced monitoring role |
198-
| <a name="output_this_rds_cluster_arn"></a> [this\_rds\_cluster\_arn](#output\_this\_rds\_cluster\_arn) | The ID of the cluster |
199-
| <a name="output_this_rds_cluster_database_name"></a> [this\_rds\_cluster\_database\_name](#output\_this\_rds\_cluster\_database\_name) | Name for an automatically created database on cluster creation |
200-
| <a name="output_this_rds_cluster_endpoint"></a> [this\_rds\_cluster\_endpoint](#output\_this\_rds\_cluster\_endpoint) | The cluster endpoint |
201-
| <a name="output_this_rds_cluster_engine_version"></a> [this\_rds\_cluster\_engine\_version](#output\_this\_rds\_cluster\_engine\_version) | The cluster engine version |
202-
| <a name="output_this_rds_cluster_hosted_zone_id"></a> [this\_rds\_cluster\_hosted\_zone\_id](#output\_this\_rds\_cluster\_hosted\_zone\_id) | Route53 hosted zone id of the created cluster |
203-
| <a name="output_this_rds_cluster_id"></a> [this\_rds\_cluster\_id](#output\_this\_rds\_cluster\_id) | The ID of the cluster |
204-
| <a name="output_this_rds_cluster_instance_endpoints"></a> [this\_rds\_cluster\_instance\_endpoints](#output\_this\_rds\_cluster\_instance\_endpoints) | A list of all cluster instance endpoints |
205-
| <a name="output_this_rds_cluster_instance_ids"></a> [this\_rds\_cluster\_instance\_ids](#output\_this\_rds\_cluster\_instance\_ids) | A list of all cluster instance ids |
206-
| <a name="output_this_rds_cluster_master_password"></a> [this\_rds\_cluster\_master\_password](#output\_this\_rds\_cluster\_master\_password) | The master password |
207-
| <a name="output_this_rds_cluster_master_username"></a> [this\_rds\_cluster\_master\_username](#output\_this\_rds\_cluster\_master\_username) | The master username |
208-
| <a name="output_this_rds_cluster_port"></a> [this\_rds\_cluster\_port](#output\_this\_rds\_cluster\_port) | The port |
209-
| <a name="output_this_rds_cluster_reader_endpoint"></a> [this\_rds\_cluster\_reader\_endpoint](#output\_this\_rds\_cluster\_reader\_endpoint) | The cluster reader endpoint |
210-
| <a name="output_this_rds_cluster_resource_id"></a> [this\_rds\_cluster\_resource\_id](#output\_this\_rds\_cluster\_resource\_id) | The Resource ID of the cluster |
211-
| <a name="output_this_security_group_id"></a> [this\_security\_group\_id](#output\_this\_security\_group\_id) | The security group ID of the cluster |
195+
| <a name="output_enhanced_monitoring_iam_role_arn"></a> [enhanced\_monitoring\_iam\_role\_arn](#output\_enhanced\_monitoring\_iam\_role\_arn) | The Amazon Resource Name (ARN) specifying the enhanced monitoring role |
196+
| <a name="output_enhanced_monitoring_iam_role_name"></a> [enhanced\_monitoring\_iam\_role\_name](#output\_enhanced\_monitoring\_iam\_role\_name) | The name of the enhanced monitoring role |
197+
| <a name="output_enhanced_monitoring_iam_role_unique_id"></a> [enhanced\_monitoring\_iam\_role\_unique\_id](#output\_enhanced\_monitoring\_iam\_role\_unique\_id) | Stable and unique string identifying the enhanced monitoring role |
198+
| <a name="output_rds_cluster_arn"></a> [rds\_cluster\_arn](#output\_rds\_cluster\_arn) | The ID of the cluster |
199+
| <a name="output_rds_cluster_database_name"></a> [rds\_cluster\_database\_name](#output\_rds\_cluster\_database\_name) | Name for an automatically created database on cluster creation |
200+
| <a name="output_rds_cluster_endpoint"></a> [rds\_cluster\_endpoint](#output\_rds\_cluster\_endpoint) | The cluster endpoint |
201+
| <a name="output_rds_cluster_engine_version"></a> [rds\_cluster\_engine\_version](#output\_rds\_cluster\_engine\_version) | The cluster engine version |
202+
| <a name="output_rds_cluster_hosted_zone_id"></a> [rds\_cluster\_hosted\_zone\_id](#output\_rds\_cluster\_hosted\_zone\_id) | Route53 hosted zone id of the created cluster |
203+
| <a name="output_rds_cluster_id"></a> [rds\_cluster\_id](#output\_rds\_cluster\_id) | The ID of the cluster |
204+
| <a name="output_rds_cluster_instance_endpoints"></a> [rds\_cluster\_instance\_endpoints](#output\_rds\_cluster\_instance\_endpoints) | A list of all cluster instance endpoints |
205+
| <a name="output_rds_cluster_instance_ids"></a> [rds\_cluster\_instance\_ids](#output\_rds\_cluster\_instance\_ids) | A list of all cluster instance ids |
206+
| <a name="output_rds_cluster_master_password"></a> [rds\_cluster\_master\_password](#output\_rds\_cluster\_master\_password) | The master password |
207+
| <a name="output_rds_cluster_master_username"></a> [rds\_cluster\_master\_username](#output\_rds\_cluster\_master\_username) | The master username |
208+
| <a name="output_rds_cluster_port"></a> [rds\_cluster\_port](#output\_rds\_cluster\_port) | The port |
209+
| <a name="output_rds_cluster_reader_endpoint"></a> [rds\_cluster\_reader\_endpoint](#output\_rds\_cluster\_reader\_endpoint) | The cluster reader endpoint |
210+
| <a name="output_rds_cluster_resource_id"></a> [rds\_cluster\_resource\_id](#output\_rds\_cluster\_resource\_id) | The Resource ID of the cluster |
211+
| <a name="output_security_group_id"></a> [security\_group\_id](#output\_security\_group\_id) | The security group ID of the cluster |
212212
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
213213

214214
## Authors

examples/autoscaling/README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Note that this example may create resources which cost money. Run `terraform des
3434
|------|--------|---------|
3535
| <a name="module_aurora"></a> [aurora](#module\_aurora) | ../../ | |
3636
| <a name="module_disabled_aurora"></a> [disabled\_aurora](#module\_disabled\_aurora) | ../../ | |
37-
| <a name="module_vpc"></a> [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 2 |
37+
| <a name="module_vpc"></a> [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 3.0 |
3838

3939
## Resources
4040

@@ -51,18 +51,18 @@ No inputs.
5151

5252
| Name | Description |
5353
|------|-------------|
54-
| <a name="output_this_enhanced_monitoring_iam_role_arn"></a> [this\_enhanced\_monitoring\_iam\_role\_arn](#output\_this\_enhanced\_monitoring\_iam\_role\_arn) | The Amazon Resource Name (ARN) specifying the enhanced monitoring role |
55-
| <a name="output_this_enhanced_monitoring_iam_role_name"></a> [this\_enhanced\_monitoring\_iam\_role\_name](#output\_this\_enhanced\_monitoring\_iam\_role\_name) | The name of the enhanced monitoring role |
56-
| <a name="output_this_enhanced_monitoring_iam_role_unique_id"></a> [this\_enhanced\_monitoring\_iam\_role\_unique\_id](#output\_this\_enhanced\_monitoring\_iam\_role\_unique\_id) | Stable and unique string identifying the enhanced monitoring role |
57-
| <a name="output_this_rds_cluster_database_name"></a> [this\_rds\_cluster\_database\_name](#output\_this\_rds\_cluster\_database\_name) | Name for an automatically created database on cluster creation |
58-
| <a name="output_this_rds_cluster_endpoint"></a> [this\_rds\_cluster\_endpoint](#output\_this\_rds\_cluster\_endpoint) | The cluster endpoint |
59-
| <a name="output_this_rds_cluster_id"></a> [this\_rds\_cluster\_id](#output\_this\_rds\_cluster\_id) | The ID of the cluster |
60-
| <a name="output_this_rds_cluster_instance_endpoints"></a> [this\_rds\_cluster\_instance\_endpoints](#output\_this\_rds\_cluster\_instance\_endpoints) | A list of all cluster instance endpoints |
61-
| <a name="output_this_rds_cluster_instance_ids"></a> [this\_rds\_cluster\_instance\_ids](#output\_this\_rds\_cluster\_instance\_ids) | A list of all cluster instance ids |
62-
| <a name="output_this_rds_cluster_master_password"></a> [this\_rds\_cluster\_master\_password](#output\_this\_rds\_cluster\_master\_password) | The master password |
63-
| <a name="output_this_rds_cluster_master_username"></a> [this\_rds\_cluster\_master\_username](#output\_this\_rds\_cluster\_master\_username) | The master username |
64-
| <a name="output_this_rds_cluster_port"></a> [this\_rds\_cluster\_port](#output\_this\_rds\_cluster\_port) | The port |
65-
| <a name="output_this_rds_cluster_reader_endpoint"></a> [this\_rds\_cluster\_reader\_endpoint](#output\_this\_rds\_cluster\_reader\_endpoint) | The cluster reader endpoint |
66-
| <a name="output_this_rds_cluster_resource_id"></a> [this\_rds\_cluster\_resource\_id](#output\_this\_rds\_cluster\_resource\_id) | The Resource ID of the cluster |
67-
| <a name="output_this_security_group_id"></a> [this\_security\_group\_id](#output\_this\_security\_group\_id) | The security group ID of the cluster |
54+
| <a name="output_enhanced_monitoring_iam_role_arn"></a> [enhanced\_monitoring\_iam\_role\_arn](#output\_enhanced\_monitoring\_iam\_role\_arn) | The Amazon Resource Name (ARN) specifying the enhanced monitoring role |
55+
| <a name="output_enhanced_monitoring_iam_role_name"></a> [enhanced\_monitoring\_iam\_role\_name](#output\_enhanced\_monitoring\_iam\_role\_name) | The name of the enhanced monitoring role |
56+
| <a name="output_enhanced_monitoring_iam_role_unique_id"></a> [enhanced\_monitoring\_iam\_role\_unique\_id](#output\_enhanced\_monitoring\_iam\_role\_unique\_id) | Stable and unique string identifying the enhanced monitoring role |
57+
| <a name="output_rds_cluster_database_name"></a> [rds\_cluster\_database\_name](#output\_rds\_cluster\_database\_name) | Name for an automatically created database on cluster creation |
58+
| <a name="output_rds_cluster_endpoint"></a> [rds\_cluster\_endpoint](#output\_rds\_cluster\_endpoint) | The cluster endpoint |
59+
| <a name="output_rds_cluster_id"></a> [rds\_cluster\_id](#output\_rds\_cluster\_id) | The ID of the cluster |
60+
| <a name="output_rds_cluster_instance_endpoints"></a> [rds\_cluster\_instance\_endpoints](#output\_rds\_cluster\_instance\_endpoints) | A list of all cluster instance endpoints |
61+
| <a name="output_rds_cluster_instance_ids"></a> [rds\_cluster\_instance\_ids](#output\_rds\_cluster\_instance\_ids) | A list of all cluster instance ids |
62+
| <a name="output_rds_cluster_master_password"></a> [rds\_cluster\_master\_password](#output\_rds\_cluster\_master\_password) | The master password |
63+
| <a name="output_rds_cluster_master_username"></a> [rds\_cluster\_master\_username](#output\_rds\_cluster\_master\_username) | The master username |
64+
| <a name="output_rds_cluster_port"></a> [rds\_cluster\_port](#output\_rds\_cluster\_port) | The port |
65+
| <a name="output_rds_cluster_reader_endpoint"></a> [rds\_cluster\_reader\_endpoint](#output\_rds\_cluster\_reader\_endpoint) | The cluster reader endpoint |
66+
| <a name="output_rds_cluster_resource_id"></a> [rds\_cluster\_resource\_id](#output\_rds\_cluster\_resource\_id) | The Resource ID of the cluster |
67+
| <a name="output_security_group_id"></a> [security\_group\_id](#output\_security\_group\_id) | The security group ID of the cluster |
6868
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

examples/autoscaling/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ locals {
1717

1818
module "vpc" {
1919
source = "terraform-aws-modules/vpc/aws"
20-
version = "~> 2"
20+
version = "~> 3.0"
2121

2222
name = local.name
2323
cidr = "10.99.0.0/18"

examples/autoscaling/outputs.tf

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,75 @@
11
# aws_rds_cluster
2-
output "this_rds_cluster_id" {
2+
output "rds_cluster_id" {
33
description = "The ID of the cluster"
4-
value = module.aurora.this_rds_cluster_id
4+
value = module.aurora.rds_cluster_id
55
}
66

7-
output "this_rds_cluster_resource_id" {
7+
output "rds_cluster_resource_id" {
88
description = "The Resource ID of the cluster"
9-
value = module.aurora.this_rds_cluster_resource_id
9+
value = module.aurora.rds_cluster_resource_id
1010
}
1111

12-
output "this_rds_cluster_endpoint" {
12+
output "rds_cluster_endpoint" {
1313
description = "The cluster endpoint"
14-
value = module.aurora.this_rds_cluster_endpoint
14+
value = module.aurora.rds_cluster_endpoint
1515
}
1616

17-
output "this_rds_cluster_reader_endpoint" {
17+
output "rds_cluster_reader_endpoint" {
1818
description = "The cluster reader endpoint"
19-
value = module.aurora.this_rds_cluster_reader_endpoint
19+
value = module.aurora.rds_cluster_reader_endpoint
2020
}
2121

22-
output "this_rds_cluster_database_name" {
22+
output "rds_cluster_database_name" {
2323
description = "Name for an automatically created database on cluster creation"
24-
value = module.aurora.this_rds_cluster_database_name
24+
value = module.aurora.rds_cluster_database_name
2525
}
2626

27-
output "this_rds_cluster_master_password" {
27+
output "rds_cluster_master_password" {
2828
description = "The master password"
29-
value = module.aurora.this_rds_cluster_master_password
29+
value = module.aurora.rds_cluster_master_password
3030
sensitive = true
3131
}
3232

33-
output "this_rds_cluster_port" {
33+
output "rds_cluster_port" {
3434
description = "The port"
35-
value = module.aurora.this_rds_cluster_port
35+
value = module.aurora.rds_cluster_port
3636
}
3737

38-
output "this_rds_cluster_master_username" {
38+
output "rds_cluster_master_username" {
3939
description = "The master username"
40-
value = module.aurora.this_rds_cluster_master_username
40+
value = module.aurora.rds_cluster_master_username
4141
sensitive = true
4242
}
4343

4444
# aws_rds_cluster_instance
45-
output "this_rds_cluster_instance_endpoints" {
45+
output "rds_cluster_instance_endpoints" {
4646
description = "A list of all cluster instance endpoints"
47-
value = module.aurora.this_rds_cluster_instance_endpoints
47+
value = module.aurora.rds_cluster_instance_endpoints
4848
}
4949

50-
output "this_rds_cluster_instance_ids" {
50+
output "rds_cluster_instance_ids" {
5151
description = "A list of all cluster instance ids"
52-
value = module.aurora.this_rds_cluster_instance_ids
52+
value = module.aurora.rds_cluster_instance_ids
5353
}
5454

5555
# aws_security_group
56-
output "this_security_group_id" {
56+
output "security_group_id" {
5757
description = "The security group ID of the cluster"
58-
value = module.aurora.this_security_group_id
58+
value = module.aurora.security_group_id
5959
}
6060

6161
# Enhanced monitoring role
62-
output "this_enhanced_monitoring_iam_role_name" {
62+
output "enhanced_monitoring_iam_role_name" {
6363
description = "The name of the enhanced monitoring role"
64-
value = module.aurora.this_enhanced_monitoring_iam_role_name
64+
value = module.aurora.enhanced_monitoring_iam_role_name
6565
}
6666

67-
output "this_enhanced_monitoring_iam_role_arn" {
67+
output "enhanced_monitoring_iam_role_arn" {
6868
description = "The Amazon Resource Name (ARN) specifying the enhanced monitoring role"
69-
value = module.aurora.this_enhanced_monitoring_iam_role_arn
69+
value = module.aurora.enhanced_monitoring_iam_role_arn
7070
}
7171

72-
output "this_enhanced_monitoring_iam_role_unique_id" {
72+
output "enhanced_monitoring_iam_role_unique_id" {
7373
description = "Stable and unique string identifying the enhanced monitoring role"
74-
value = module.aurora.this_enhanced_monitoring_iam_role_unique_id
74+
value = module.aurora.enhanced_monitoring_iam_role_unique_id
7575
}

examples/custom_instance_settings/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Note that this example may create resources which cost money. Run `terraform des
3333
| Name | Source | Version |
3434
|------|--------|---------|
3535
| <a name="module_aurora"></a> [aurora](#module\_aurora) | ../../ | |
36-
| <a name="module_vpc"></a> [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 2 |
36+
| <a name="module_vpc"></a> [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 3.0 |
3737

3838
## Resources
3939

@@ -50,14 +50,14 @@ No inputs.
5050

5151
| Name | Description |
5252
|------|-------------|
53-
| <a name="output_this_rds_cluster_database_name"></a> [this\_rds\_cluster\_database\_name](#output\_this\_rds\_cluster\_database\_name) | Name for an automatically created database on cluster creation |
54-
| <a name="output_this_rds_cluster_endpoint"></a> [this\_rds\_cluster\_endpoint](#output\_this\_rds\_cluster\_endpoint) | The cluster endpoint |
55-
| <a name="output_this_rds_cluster_id"></a> [this\_rds\_cluster\_id](#output\_this\_rds\_cluster\_id) | The ID of the cluster |
56-
| <a name="output_this_rds_cluster_instance_endpoints"></a> [this\_rds\_cluster\_instance\_endpoints](#output\_this\_rds\_cluster\_instance\_endpoints) | A list of all cluster instance endpoints |
57-
| <a name="output_this_rds_cluster_master_password"></a> [this\_rds\_cluster\_master\_password](#output\_this\_rds\_cluster\_master\_password) | The master password |
58-
| <a name="output_this_rds_cluster_master_username"></a> [this\_rds\_cluster\_master\_username](#output\_this\_rds\_cluster\_master\_username) | The master username |
59-
| <a name="output_this_rds_cluster_port"></a> [this\_rds\_cluster\_port](#output\_this\_rds\_cluster\_port) | The port |
60-
| <a name="output_this_rds_cluster_reader_endpoint"></a> [this\_rds\_cluster\_reader\_endpoint](#output\_this\_rds\_cluster\_reader\_endpoint) | The cluster reader endpoint |
61-
| <a name="output_this_rds_cluster_resource_id"></a> [this\_rds\_cluster\_resource\_id](#output\_this\_rds\_cluster\_resource\_id) | The Resource ID of the cluster |
62-
| <a name="output_this_security_group_id"></a> [this\_security\_group\_id](#output\_this\_security\_group\_id) | The security group ID of the cluster |
53+
| <a name="output_rds_cluster_database_name"></a> [rds\_cluster\_database\_name](#output\_rds\_cluster\_database\_name) | Name for an automatically created database on cluster creation |
54+
| <a name="output_rds_cluster_endpoint"></a> [rds\_cluster\_endpoint](#output\_rds\_cluster\_endpoint) | The cluster endpoint |
55+
| <a name="output_rds_cluster_id"></a> [rds\_cluster\_id](#output\_rds\_cluster\_id) | The ID of the cluster |
56+
| <a name="output_rds_cluster_instance_endpoints"></a> [rds\_cluster\_instance\_endpoints](#output\_rds\_cluster\_instance\_endpoints) | A list of all cluster instance endpoints |
57+
| <a name="output_rds_cluster_master_password"></a> [rds\_cluster\_master\_password](#output\_rds\_cluster\_master\_password) | The master password |
58+
| <a name="output_rds_cluster_master_username"></a> [rds\_cluster\_master\_username](#output\_rds\_cluster\_master\_username) | The master username |
59+
| <a name="output_rds_cluster_port"></a> [rds\_cluster\_port](#output\_rds\_cluster\_port) | The port |
60+
| <a name="output_rds_cluster_reader_endpoint"></a> [rds\_cluster\_reader\_endpoint](#output\_rds\_cluster\_reader\_endpoint) | The cluster reader endpoint |
61+
| <a name="output_rds_cluster_resource_id"></a> [rds\_cluster\_resource\_id](#output\_rds\_cluster\_resource\_id) | The Resource ID of the cluster |
62+
| <a name="output_security_group_id"></a> [security\_group\_id](#output\_security\_group\_id) | The security group ID of the cluster |
6363
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

examples/custom_instance_settings/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ locals {
1717

1818
module "vpc" {
1919
source = "terraform-aws-modules/vpc/aws"
20-
version = "~> 2"
20+
version = "~> 3.0"
2121

2222
name = local.name
2323
cidr = "10.99.0.0/18"

0 commit comments

Comments
 (0)