Skip to content

Commit

Permalink
feat: Add additional output security_group_arn (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhoppe committed Aug 16, 2022
1 parent 0bd31aa commit 44d8a25
Show file tree
Hide file tree
Showing 177 changed files with 486 additions and 126 deletions.
5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.64.0
rev: v1.74.1
hooks:
- id: terraform_fmt
- id: terraform_validate
exclude: '^modules/_templates/[^/]+$'
- id: terraform_docs
args:
- '--args=--lockfile=false'
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
rev: v4.3.0
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,13 @@ No issue is creating limit on this module.
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.29 |

## Providers

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

## Modules

Expand Down Expand Up @@ -258,6 +258,7 @@ No modules.

| Name | Description |
|------|-------------|
| <a name="output_security_group_arn"></a> [security\_group\_arn](#output\_security\_group\_arn) | The ARN of the security group |
| <a name="output_security_group_description"></a> [security\_group\_description](#output\_security\_group\_description) | The description of the security group |
| <a name="output_security_group_id"></a> [security\_group\_id](#output\_security\_group\_id) | The ID of the security group |
| <a name="output_security_group_name"></a> [security\_group\_name](#output\_security\_group\_name) | The name of the security group |
Expand Down
5 changes: 3 additions & 2 deletions examples/complete/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.29 |

## Providers

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

## Modules

Expand Down Expand Up @@ -56,6 +56,7 @@ No inputs.

| Name | Description |
|------|-------------|
| <a name="output_security_group_arn"></a> [security\_group\_arn](#output\_security\_group\_arn) | The ARN of the security group |
| <a name="output_security_group_description"></a> [security\_group\_description](#output\_security\_group\_description) | The description of the security group |
| <a name="output_security_group_id"></a> [security\_group\_id](#output\_security\_group\_id) | The ID of the security group |
| <a name="output_security_group_name"></a> [security\_group\_name](#output\_security\_group\_name) | The name of the security group |
Expand Down
5 changes: 5 additions & 0 deletions examples/complete/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
output "security_group_arn" {
description = "The ARN of the security group"
value = module.complete_sg.security_group_arn
}

output "security_group_id" {
description = "The ID of the security group"
value = module.complete_sg.security_group_id
Expand Down
2 changes: 1 addition & 1 deletion examples/complete/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.0"
version = ">= 3.29"
}
}
}
5 changes: 3 additions & 2 deletions examples/computed/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.29 |

## Providers

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

## Modules

Expand All @@ -50,6 +50,7 @@ No inputs.

| Name | Description |
|------|-------------|
| <a name="output_security_group_arn"></a> [security\_group\_arn](#output\_security\_group\_arn) | The ARN of the security group |
| <a name="output_security_group_description"></a> [security\_group\_description](#output\_security\_group\_description) | The description of the security group |
| <a name="output_security_group_id"></a> [security\_group\_id](#output\_security\_group\_id) | The ID of the security group |
| <a name="output_security_group_name"></a> [security\_group\_name](#output\_security\_group\_name) | The name of the security group |
Expand Down
5 changes: 5 additions & 0 deletions examples/computed/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
output "security_group_arn" {
description = "The ARN of the security group"
value = module.mysql_sg.security_group_arn
}

output "security_group_id" {
description = "The ID of the security group"
value = module.mysql_sg.security_group_id
Expand Down
2 changes: 1 addition & 1 deletion examples/computed/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.0"
version = ">= 3.29"
}
}
}
5 changes: 3 additions & 2 deletions examples/disabled/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.29 |

## Providers

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

## Modules

Expand All @@ -52,5 +52,6 @@ No inputs.

| Name | Description |
|------|-------------|
| <a name="output_security_group_arn"></a> [security\_group\_arn](#output\_security\_group\_arn) | The ARN of the security group |
| <a name="output_security_group_id"></a> [security\_group\_id](#output\_security\_group\_id) | The ID of the security group |
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
5 changes: 5 additions & 0 deletions examples/disabled/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
output "security_group_arn" {
description = "The ARN of the security group"
value = module.complete_sg_disabled.security_group_arn
}

output "security_group_id" {
description = "The ID of the security group"
value = module.complete_sg_disabled.security_group_id
Expand Down
2 changes: 1 addition & 1 deletion examples/disabled/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.0"
version = ">= 3.29"
}
}
}
5 changes: 3 additions & 2 deletions examples/dynamic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.29 |

## Providers

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

## Modules

Expand All @@ -51,6 +51,7 @@ No inputs.

| Name | Description |
|------|-------------|
| <a name="output_security_group_arn"></a> [security\_group\_arn](#output\_security\_group\_arn) | The ARN of the security group |
| <a name="output_security_group_description"></a> [security\_group\_description](#output\_security\_group\_description) | The description of the security group |
| <a name="output_security_group_id"></a> [security\_group\_id](#output\_security\_group\_id) | The ID of the security group |
| <a name="output_security_group_name"></a> [security\_group\_name](#output\_security\_group\_name) | The name of the security group |
Expand Down
5 changes: 5 additions & 0 deletions examples/dynamic/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
output "security_group_arn" {
description = "The ARN of the security group"
value = module.http_sg.security_group_arn
}

output "security_group_id" {
description = "The ID of the security group"
value = module.http_sg.security_group_id
Expand Down
2 changes: 1 addition & 1 deletion examples/dynamic/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.0"
version = ">= 3.29"
}
}
}
5 changes: 3 additions & 2 deletions examples/http/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.29 |

## Providers

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

## Modules

Expand All @@ -55,6 +55,7 @@ No inputs.

| Name | Description |
|------|-------------|
| <a name="output_security_group_arn"></a> [security\_group\_arn](#output\_security\_group\_arn) | The ARN of the security group |
| <a name="output_security_group_description"></a> [security\_group\_description](#output\_security\_group\_description) | The description of the security group |
| <a name="output_security_group_id"></a> [security\_group\_id](#output\_security\_group\_id) | The ID of the security group |
| <a name="output_security_group_name"></a> [security\_group\_name](#output\_security\_group\_name) | The name of the security group |
Expand Down
5 changes: 5 additions & 0 deletions examples/http/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
output "security_group_arn" {
description = "The ARN of the security group"
value = module.http_sg.security_group_arn
}

output "security_group_id" {
description = "The ID of the security group"
value = module.http_sg.security_group_id
Expand Down
2 changes: 1 addition & 1 deletion examples/http/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.0"
version = ">= 3.29"
}
}
}
6 changes: 4 additions & 2 deletions examples/rules-only/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.29 |

## Providers

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

## Modules

Expand All @@ -54,6 +54,8 @@ No inputs.

| Name | Description |
|------|-------------|
| <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 |
| <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 |
| <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 |
| <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 |
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
10 changes: 10 additions & 0 deletions examples/rules-only/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
output "service_one_security_group_arn" {
description = "The ARN of the security group for service one"
value = aws_security_group.service_one.arn
}

output "service_one_security_group_id" {
description = "The ID of the security group for service one"
value = aws_security_group.service_one.id
}

output "service_tow_security_group_arn" {
description = "The ARN of the security group for service two"
value = aws_security_group.service_two.arn
}

output "service_two_security_group_id" {
description = "The ID of the security group for service two"
value = aws_security_group.service_two.id
Expand Down
2 changes: 1 addition & 1 deletion examples/rules-only/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.0"
version = ">= 3.29"
}
}
}
5 changes: 5 additions & 0 deletions modules/_templates/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
output "security_group_arn" {
description = "The ARN of the security group"
value = module.sg.security_group_arn
}

output "security_group_id" {
description = "The ID of the security group"
value = module.sg.security_group_id
Expand Down
2 changes: 1 addition & 1 deletion modules/_templates/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.0"
version = ">= 3.29"
}
}
}
3 changes: 2 additions & 1 deletion modules/activemq/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ All automatic values **activemq module** is using are available [here](https://g
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.29 |

## Providers

Expand Down Expand Up @@ -111,6 +111,7 @@ No resources.

| Name | Description |
|------|-------------|
| <a name="output_security_group_arn"></a> [security\_group\_arn](#output\_security\_group\_arn) | The ARN of the security group |
| <a name="output_security_group_description"></a> [security\_group\_description](#output\_security\_group\_description) | The description of the security group |
| <a name="output_security_group_id"></a> [security\_group\_id](#output\_security\_group\_id) | The ID of the security group |
| <a name="output_security_group_name"></a> [security\_group\_name](#output\_security\_group\_name) | The name of the security group |
Expand Down
5 changes: 5 additions & 0 deletions modules/activemq/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
output "security_group_arn" {
description = "The ARN of the security group"
value = module.sg.security_group_arn
}

output "security_group_id" {
description = "The ID of the security group"
value = module.sg.security_group_id
Expand Down
2 changes: 1 addition & 1 deletion modules/activemq/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.0"
version = ">= 3.29"
}
}
}
3 changes: 2 additions & 1 deletion modules/alertmanager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ All automatic values **alertmanager module** is using are available [here](https
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.29 |

## Providers

Expand Down Expand Up @@ -111,6 +111,7 @@ No resources.

| Name | Description |
|------|-------------|
| <a name="output_security_group_arn"></a> [security\_group\_arn](#output\_security\_group\_arn) | The ARN of the security group |
| <a name="output_security_group_description"></a> [security\_group\_description](#output\_security\_group\_description) | The description of the security group |
| <a name="output_security_group_id"></a> [security\_group\_id](#output\_security\_group\_id) | The ID of the security group |
| <a name="output_security_group_name"></a> [security\_group\_name](#output\_security\_group\_name) | The name of the security group |
Expand Down
5 changes: 5 additions & 0 deletions modules/alertmanager/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
output "security_group_arn" {
description = "The ARN of the security group"
value = module.sg.security_group_arn
}

output "security_group_id" {
description = "The ID of the security group"
value = module.sg.security_group_id
Expand Down
2 changes: 1 addition & 1 deletion modules/alertmanager/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.0"
version = ">= 3.29"
}
}
}

0 comments on commit 44d8a25

Please sign in to comment.