Skip to content

Commit

Permalink
Add new parameter after aws provider update v5.69 (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
snovikov authored Sep 27, 2024
1 parent 45edb51 commit 7b6efe7
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 12 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ this fact.
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.69 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_aws.hub"></a> [aws.hub](#provider\_aws.hub) | >= 5 |
| <a name="provider_aws.satellite"></a> [aws.satellite](#provider\_aws.satellite) | >= 5 |
| <a name="provider_aws.hub"></a> [aws.hub](#provider\_aws.hub) | >= 5.69 |
| <a name="provider_aws.satellite"></a> [aws.satellite](#provider\_aws.satellite) | >= 5.69 |

## Modules

Expand Down Expand Up @@ -137,6 +137,7 @@ No modules.
| <a name="input_route_private_subnets_via_tgw"></a> [route\_private\_subnets\_via\_tgw](#input\_route\_private\_subnets\_via\_tgw) | Use TGW attachment as a default route (0.0.0.0/0) for private subnets. Value `satellite_destination_cidr_block`s will be ignored. | `bool` | `false` | no |
| <a name="input_satellite_create"></a> [satellite\_create](#input\_satellite\_create) | Boolean flag for toggling the handling of satellite resources | `bool` | `false` | no |
| <a name="input_satellite_destination_cidr_blocks"></a> [satellite\_destination\_cidr\_blocks](#input\_satellite\_destination\_cidr\_blocks) | List of CIDRs to be routed for the satellite | `list(string)` | `[]` | no |
| <a name="input_security_group_referencing_support"></a> [security\_group\_referencing\_support](#input\_security\_group\_referencing\_support) | Whether Security Group Referencing Support is enabled. | `string` | `"disable"` | no |
| <a name="input_transit_gateway_default_route_table_association"></a> [transit\_gateway\_default\_route\_table\_association](#input\_transit\_gateway\_default\_route\_table\_association) | Set this to false when the hub account also becomes a satellite. Check the official docs for more info. | `bool` | `true` | no |
| <a name="input_transit_gateway_default_route_table_propagation"></a> [transit\_gateway\_default\_route\_table\_propagation](#input\_transit\_gateway\_default\_route\_table\_propagation) | Set this to false when the hub account also becomes a satellite. Check the official docs for more info. | `bool` | `true` | no |
| <a name="input_transit_gateway_hub_name"></a> [transit\_gateway\_hub\_name](#input\_transit\_gateway\_hub\_name) | Name of the Transit Gateway to attach to | `string` | `""` | no |
Expand Down
3 changes: 2 additions & 1 deletion examples/satellite-all/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.69 |

## Providers

Expand Down Expand Up @@ -38,6 +38,7 @@ No resources.
| <a name="input_route_private_subnets_via_tgw"></a> [route\_private\_subnets\_via\_tgw](#input\_route\_private\_subnets\_via\_tgw) | Use TGW attachment as a default route (0.0.0.0/0) for private subnets. Value `satellite_destination_cidr_block`s will be ignored. | `bool` | `false` | no |
| <a name="input_satellite_create"></a> [satellite\_create](#input\_satellite\_create) | Boolean flag for toggling the handling of satellite resources | `bool` | `false` | no |
| <a name="input_satellite_destination_cidr_blocks"></a> [satellite\_destination\_cidr\_blocks](#input\_satellite\_destination\_cidr\_blocks) | List of CIDRs to be routed for the satellite | `list(string)` | `[]` | no |
| <a name="input_security_group_referencing_support"></a> [security\_group\_referencing\_support](#input\_security\_group\_referencing\_support) | Whether Security Group Referencing Support is enabled. | `string` | `"disable"` | no |
| <a name="input_transit_gateway_hub_name"></a> [transit\_gateway\_hub\_name](#input\_transit\_gateway\_hub\_name) | Name of the Transit Gateway to attach to | `string` | `""` | no |
| <a name="input_transit_gateway_id"></a> [transit\_gateway\_id](#input\_transit\_gateway\_id) | Identifier of the Transit Gateway | `string` | `""` | no |
| <a name="input_vpc_name_to_attach"></a> [vpc\_name\_to\_attach](#input\_vpc\_name\_to\_attach) | Name of the satellite VPC to be attached to the TGW | `string` | `""` | no |
Expand Down
2 changes: 2 additions & 0 deletions examples/satellite-all/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,7 @@ module "tgw-satellite" {

private_subnet_filters = var.private_subnet_filters

security_group_referencing_support = var.security_group_referencing_support

depends_on = [module.tgw]
}
2 changes: 2 additions & 0 deletions examples/satellite-all/variables.auto.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ private_subnet_filters = [
values = ["eu-central-1a", "eu-central-1b"]
}
]

security_group_referencing_support = "enable"
6 changes: 6 additions & 0 deletions examples/satellite-all/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,9 @@ variable "route_entire_satellite_vpc" {
type = bool
default = false
}

variable "security_group_referencing_support" {
description = "Whether Security Group Referencing Support is enabled."
type = string
default = "disable"
}
2 changes: 1 addition & 1 deletion examples/satellite-all/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 5"
version = ">= 5.69"
}
}
required_version = ">= 1.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/satellite-default-route-all/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.69 |

## Providers

Expand Down
2 changes: 1 addition & 1 deletion examples/satellite-default-route-all/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 5"
version = ">= 5.69"
}
}
required_version = ">= 1.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/satellite-default-route/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.69 |

## Providers

Expand Down
2 changes: 1 addition & 1 deletion examples/satellite-default-route/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 5"
version = ">= 5.69"
}
}
required_version = ">= 1.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/satellite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.69 |

## Providers

Expand Down
2 changes: 1 addition & 1 deletion examples/satellite/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 5"
version = ">= 5.69"
}
}
required_version = ">= 1.0"
Expand Down
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ resource "aws_ec2_transit_gateway_vpc_attachment" "this" {
transit_gateway_default_route_table_association = var.transit_gateway_default_route_table_association
transit_gateway_default_route_table_propagation = var.transit_gateway_default_route_table_propagation

security_group_referencing_support = var.security_group_referencing_support

# When we create the TGW and the association through RAM in one run, we need
# this to escape the race condition.
depends_on = [var.ram_resource_association_id]
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,9 @@ variable "transit_gateway_default_route_table_propagation" {
type = bool
default = true
}

variable "security_group_referencing_support" {
description = "Whether Security Group Referencing Support is enabled."
type = string
default = "disable"
}
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 5"
version = ">= 5.69"
configuration_aliases = [
aws.hub,
aws.satellite
Expand Down

0 comments on commit 7b6efe7

Please sign in to comment.