Skip to content

Commit a4d569b

Browse files
authored
feat: Added TGW mutlicast support (#73)
1 parent fafae12 commit a4d569b

File tree

5 files changed

+13
-2
lines changed

5 files changed

+13
-2
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.64.0
3+
rev: v1.71.0
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_validate
@@ -23,7 +23,7 @@ repos:
2323
- '--args=--only=terraform_standard_module_structure'
2424
- '--args=--only=terraform_workspace_remote'
2525
- repo: https://github.com/pre-commit/pre-commit-hooks
26-
rev: v4.1.0
26+
rev: v4.2.0
2727
hooks:
2828
- id: check-merge-conflict
2929
- id: end-of-file-fixer

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ No modules.
109109
| <a name="input_enable_default_route_table_association"></a> [enable\_default\_route\_table\_association](#input\_enable\_default\_route\_table\_association) | Whether resource attachments are automatically associated with the default association route table | `bool` | `true` | no |
110110
| <a name="input_enable_default_route_table_propagation"></a> [enable\_default\_route\_table\_propagation](#input\_enable\_default\_route\_table\_propagation) | Whether resource attachments automatically propagate routes to the default propagation route table | `bool` | `true` | no |
111111
| <a name="input_enable_dns_support"></a> [enable\_dns\_support](#input\_enable\_dns\_support) | Should be true to enable DNS support in the TGW | `bool` | `true` | no |
112+
| <a name="input_enable_mutlicast_support"></a> [enable\_mutlicast\_support](#input\_enable\_mutlicast\_support) | Whether multicast support is enabled | `bool` | `false` | no |
112113
| <a name="input_enable_vpn_ecmp_support"></a> [enable\_vpn\_ecmp\_support](#input\_enable\_vpn\_ecmp\_support) | Whether VPN Equal Cost Multipath Protocol support is enabled | `bool` | `true` | no |
113114
| <a name="input_name"></a> [name](#input\_name) | Name to be used on all the resources as identifier | `string` | `""` | no |
114115
| <a name="input_ram_allow_external_principals"></a> [ram\_allow\_external\_principals](#input\_ram\_allow\_external\_principals) | Indicates whether principals outside your organization can be associated with a resource share. | `bool` | `false` | no |

examples/complete/main.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ module "tgw" {
2929
# When "true" there is no need for RAM resources if using multiple AWS accounts
3030
enable_auto_accept_shared_attachments = true
3131

32+
# When "true", allows service discovery through IGMP
33+
enable_mutlicast_support = false
34+
3235
vpc_attachments = {
3336
vpc1 = {
3437
vpc_id = module.vpc1.vpc_id

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ resource "aws_ec2_transit_gateway" "this" {
3232
default_route_table_association = var.enable_default_route_table_association ? "enable" : "disable"
3333
default_route_table_propagation = var.enable_default_route_table_propagation ? "enable" : "disable"
3434
auto_accept_shared_attachments = var.enable_auto_accept_shared_attachments ? "enable" : "disable"
35+
multicast_support = var.enable_mutlicast_support ? "enable" : "disable"
3536
vpn_ecmp_support = var.enable_vpn_ecmp_support ? "enable" : "disable"
3637
dns_support = var.enable_dns_support ? "enable" : "disable"
3738
transit_gateway_cidr_blocks = var.transit_gateway_cidr_blocks

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ variable "enable_vpn_ecmp_support" {
5656
default = true
5757
}
5858

59+
variable "enable_mutlicast_support" {
60+
description = "Whether multicast support is enabled"
61+
type = bool
62+
default = false
63+
}
64+
5965
variable "enable_dns_support" {
6066
description = "Should be true to enable DNS support in the TGW"
6167
type = bool

0 commit comments

Comments
 (0)