Skip to content

Commit 44d8a25

Browse files
authored
feat: Add additional output security_group_arn (#249)
1 parent 0bd31aa commit 44d8a25

File tree

177 files changed

+486
-126
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+486
-126
lines changed

.pre-commit-config.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.64.0
3+
rev: v1.74.1
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_validate
7+
exclude: '^modules/_templates/[^/]+$'
78
- id: terraform_docs
89
args:
910
- '--args=--lockfile=false'
1011
- repo: https://github.com/pre-commit/pre-commit-hooks
11-
rev: v4.1.0
12+
rev: v4.3.0
1213
hooks:
1314
- id: check-merge-conflict
1415
- id: end-of-file-fixer

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,13 @@ No issue is creating limit on this module.
160160
| Name | Version |
161161
|------|---------|
162162
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
163-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
163+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.29 |
164164

165165
## Providers
166166

167167
| Name | Version |
168168
|------|---------|
169-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.0 |
169+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.29 |
170170

171171
## Modules
172172

@@ -258,6 +258,7 @@ No modules.
258258

259259
| Name | Description |
260260
|------|-------------|
261+
| <a name="output_security_group_arn"></a> [security\_group\_arn](#output\_security\_group\_arn) | The ARN of the security group |
261262
| <a name="output_security_group_description"></a> [security\_group\_description](#output\_security\_group\_description) | The description of the security group |
262263
| <a name="output_security_group_id"></a> [security\_group\_id](#output\_security\_group\_id) | The ID of the security group |
263264
| <a name="output_security_group_name"></a> [security\_group\_name](#output\_security\_group\_name) | The name of the security group |

examples/complete/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ Note that this example may create resources which cost money. Run `terraform des
2222
| Name | Version |
2323
|------|---------|
2424
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
25-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
25+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.29 |
2626

2727
## Providers
2828

2929
| Name | Version |
3030
|------|---------|
31-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.0 |
31+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.29 |
3232

3333
## Modules
3434

@@ -56,6 +56,7 @@ No inputs.
5656

5757
| Name | Description |
5858
|------|-------------|
59+
| <a name="output_security_group_arn"></a> [security\_group\_arn](#output\_security\_group\_arn) | The ARN of the security group |
5960
| <a name="output_security_group_description"></a> [security\_group\_description](#output\_security\_group\_description) | The description of the security group |
6061
| <a name="output_security_group_id"></a> [security\_group\_id](#output\_security\_group\_id) | The ID of the security group |
6162
| <a name="output_security_group_name"></a> [security\_group\_name](#output\_security\_group\_name) | The name of the security group |

examples/complete/outputs.tf

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
output "security_group_arn" {
2+
description = "The ARN of the security group"
3+
value = module.complete_sg.security_group_arn
4+
}
5+
16
output "security_group_id" {
27
description = "The ID of the security group"
38
value = module.complete_sg.security_group_id

examples/complete/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 3.0"
7+
version = ">= 3.29"
88
}
99
}
1010
}

examples/computed/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ Note that this example may create resources which cost money. Run `terraform des
2020
| Name | Version |
2121
|------|---------|
2222
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
23-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
23+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.29 |
2424

2525
## Providers
2626

2727
| Name | Version |
2828
|------|---------|
29-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.0 |
29+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.29 |
3030

3131
## Modules
3232

@@ -50,6 +50,7 @@ No inputs.
5050

5151
| Name | Description |
5252
|------|-------------|
53+
| <a name="output_security_group_arn"></a> [security\_group\_arn](#output\_security\_group\_arn) | The ARN of the security group |
5354
| <a name="output_security_group_description"></a> [security\_group\_description](#output\_security\_group\_description) | The description of the security group |
5455
| <a name="output_security_group_id"></a> [security\_group\_id](#output\_security\_group\_id) | The ID of the security group |
5556
| <a name="output_security_group_name"></a> [security\_group\_name](#output\_security\_group\_name) | The name of the security group |

examples/computed/outputs.tf

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
output "security_group_arn" {
2+
description = "The ARN of the security group"
3+
value = module.mysql_sg.security_group_arn
4+
}
5+
16
output "security_group_id" {
27
description = "The ID of the security group"
38
value = module.mysql_sg.security_group_id

examples/computed/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 3.0"
7+
version = ">= 3.29"
88
}
99
}
1010
}

examples/disabled/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ Note that this example may create resources which cost money. Run `terraform des
2222
| Name | Version |
2323
|------|---------|
2424
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
25-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
25+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.29 |
2626

2727
## Providers
2828

2929
| Name | Version |
3030
|------|---------|
31-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.0 |
31+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.29 |
3232

3333
## Modules
3434

@@ -52,5 +52,6 @@ No inputs.
5252

5353
| Name | Description |
5454
|------|-------------|
55+
| <a name="output_security_group_arn"></a> [security\_group\_arn](#output\_security\_group\_arn) | The ARN of the security group |
5556
| <a name="output_security_group_id"></a> [security\_group\_id](#output\_security\_group\_id) | The ID of the security group |
5657
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

examples/disabled/outputs.tf

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
output "security_group_arn" {
2+
description = "The ARN of the security group"
3+
value = module.complete_sg_disabled.security_group_arn
4+
}
5+
16
output "security_group_id" {
27
description = "The ID of the security group"
38
value = module.complete_sg_disabled.security_group_id

examples/disabled/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 3.0"
7+
version = ">= 3.29"
88
}
99
}
1010
}

examples/dynamic/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ Note that this example may create resources which cost money. Run `terraform des
2222
| Name | Version |
2323
|------|---------|
2424
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
25-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
25+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.29 |
2626

2727
## Providers
2828

2929
| Name | Version |
3030
|------|---------|
31-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.0 |
31+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.29 |
3232

3333
## Modules
3434

@@ -51,6 +51,7 @@ No inputs.
5151

5252
| Name | Description |
5353
|------|-------------|
54+
| <a name="output_security_group_arn"></a> [security\_group\_arn](#output\_security\_group\_arn) | The ARN of the security group |
5455
| <a name="output_security_group_description"></a> [security\_group\_description](#output\_security\_group\_description) | The description of the security group |
5556
| <a name="output_security_group_id"></a> [security\_group\_id](#output\_security\_group\_id) | The ID of the security group |
5657
| <a name="output_security_group_name"></a> [security\_group\_name](#output\_security\_group\_name) | The name of the security group |

examples/dynamic/outputs.tf

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
output "security_group_arn" {
2+
description = "The ARN of the security group"
3+
value = module.http_sg.security_group_arn
4+
}
5+
16
output "security_group_id" {
27
description = "The ID of the security group"
38
value = module.http_sg.security_group_id

examples/dynamic/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 3.0"
7+
version = ">= 3.29"
88
}
99
}
1010
}

examples/http/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ Note that this example may create resources which cost money. Run `terraform des
2222
| Name | Version |
2323
|------|---------|
2424
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
25-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
25+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.29 |
2626

2727
## Providers
2828

2929
| Name | Version |
3030
|------|---------|
31-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.0 |
31+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.29 |
3232

3333
## Modules
3434

@@ -55,6 +55,7 @@ No inputs.
5555

5656
| Name | Description |
5757
|------|-------------|
58+
| <a name="output_security_group_arn"></a> [security\_group\_arn](#output\_security\_group\_arn) | The ARN of the security group |
5859
| <a name="output_security_group_description"></a> [security\_group\_description](#output\_security\_group\_description) | The description of the security group |
5960
| <a name="output_security_group_id"></a> [security\_group\_id](#output\_security\_group\_id) | The ID of the security group |
6061
| <a name="output_security_group_name"></a> [security\_group\_name](#output\_security\_group\_name) | The name of the security group |

examples/http/outputs.tf

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
output "security_group_arn" {
2+
description = "The ARN of the security group"
3+
value = module.http_sg.security_group_arn
4+
}
5+
16
output "security_group_id" {
27
description = "The ID of the security group"
38
value = module.http_sg.security_group_id

examples/http/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 3.0"
7+
version = ">= 3.29"
88
}
99
}
1010
}

examples/rules-only/README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ Note that this example may create resources which cost money. Run `terraform des
2222
| Name | Version |
2323
|------|---------|
2424
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
25-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
25+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.29 |
2626

2727
## Providers
2828

2929
| Name | Version |
3030
|------|---------|
31-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.0 |
31+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.29 |
3232

3333
## Modules
3434

@@ -54,6 +54,8 @@ No inputs.
5454

5555
| Name | Description |
5656
|------|-------------|
57+
| <a name="output_service_one_security_group_arn"></a> [service\_one\_security\_group\_arn](#output\_service\_one\_security\_group\_arn) | The ARN of the security group for service one |
5758
| <a name="output_service_one_security_group_id"></a> [service\_one\_security\_group\_id](#output\_service\_one\_security\_group\_id) | The ID of the security group for service one |
59+
| <a name="output_service_tow_security_group_arn"></a> [service\_tow\_security\_group\_arn](#output\_service\_tow\_security\_group\_arn) | The ARN of the security group for service two |
5860
| <a name="output_service_two_security_group_id"></a> [service\_two\_security\_group\_id](#output\_service\_two\_security\_group\_id) | The ID of the security group for service two |
5961
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

examples/rules-only/outputs.tf

+10
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
1+
output "service_one_security_group_arn" {
2+
description = "The ARN of the security group for service one"
3+
value = aws_security_group.service_one.arn
4+
}
5+
16
output "service_one_security_group_id" {
27
description = "The ID of the security group for service one"
38
value = aws_security_group.service_one.id
49
}
510

11+
output "service_tow_security_group_arn" {
12+
description = "The ARN of the security group for service two"
13+
value = aws_security_group.service_two.arn
14+
}
15+
616
output "service_two_security_group_id" {
717
description = "The ID of the security group for service two"
818
value = aws_security_group.service_two.id

examples/rules-only/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 3.0"
7+
version = ">= 3.29"
88
}
99
}
1010
}

modules/_templates/outputs.tf

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
output "security_group_arn" {
2+
description = "The ARN of the security group"
3+
value = module.sg.security_group_arn
4+
}
5+
16
output "security_group_id" {
27
description = "The ID of the security group"
38
value = module.sg.security_group_id

modules/_templates/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 3.0"
7+
version = ">= 3.29"
88
}
99
}
1010
}

modules/activemq/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ All automatic values **activemq module** is using are available [here](https://g
1919
| Name | Version |
2020
|------|---------|
2121
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
22-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
22+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.29 |
2323

2424
## Providers
2525

@@ -111,6 +111,7 @@ No resources.
111111

112112
| Name | Description |
113113
|------|-------------|
114+
| <a name="output_security_group_arn"></a> [security\_group\_arn](#output\_security\_group\_arn) | The ARN of the security group |
114115
| <a name="output_security_group_description"></a> [security\_group\_description](#output\_security\_group\_description) | The description of the security group |
115116
| <a name="output_security_group_id"></a> [security\_group\_id](#output\_security\_group\_id) | The ID of the security group |
116117
| <a name="output_security_group_name"></a> [security\_group\_name](#output\_security\_group\_name) | The name of the security group |

modules/activemq/outputs.tf

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
output "security_group_arn" {
2+
description = "The ARN of the security group"
3+
value = module.sg.security_group_arn
4+
}
5+
16
output "security_group_id" {
27
description = "The ID of the security group"
38
value = module.sg.security_group_id

modules/activemq/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 3.0"
7+
version = ">= 3.29"
88
}
99
}
1010
}

modules/alertmanager/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ All automatic values **alertmanager module** is using are available [here](https
1919
| Name | Version |
2020
|------|---------|
2121
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
22-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
22+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.29 |
2323

2424
## Providers
2525

@@ -111,6 +111,7 @@ No resources.
111111

112112
| Name | Description |
113113
|------|-------------|
114+
| <a name="output_security_group_arn"></a> [security\_group\_arn](#output\_security\_group\_arn) | The ARN of the security group |
114115
| <a name="output_security_group_description"></a> [security\_group\_description](#output\_security\_group\_description) | The description of the security group |
115116
| <a name="output_security_group_id"></a> [security\_group\_id](#output\_security\_group\_id) | The ID of the security group |
116117
| <a name="output_security_group_name"></a> [security\_group\_name](#output\_security\_group\_name) | The name of the security group |

modules/alertmanager/outputs.tf

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
output "security_group_arn" {
2+
description = "The ARN of the security group"
3+
value = module.sg.security_group_arn
4+
}
5+
16
output "security_group_id" {
27
description = "The ID of the security group"
38
value = module.sg.security_group_id

modules/alertmanager/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 3.0"
7+
version = ">= 3.29"
88
}
99
}
1010
}

0 commit comments

Comments
 (0)