Skip to content

Commit

Permalink
add referencing tgw sg support for tgw attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloskyratzakos committed Oct 1, 2024
1 parent 58bf0ea commit d4e6cdb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions aws/transit-gateway-attachment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.6.3 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.41.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.69.0 |

## Providers

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

## Modules

Expand Down
7 changes: 4 additions & 3 deletions aws/transit-gateway-attachment/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
resource "aws_ec2_transit_gateway_vpc_attachment" "this" {
subnet_ids = var.subnet_ids
transit_gateway_id = var.transit_gateway_id
vpc_id = var.vpc_id
subnet_ids = var.subnet_ids
transit_gateway_id = var.transit_gateway_id
vpc_id = var.vpc_id
security_group_referencing_support = var.security_group_referencing_support

tags = {
Name = var.name
Expand Down
6 changes: 6 additions & 0 deletions aws/transit-gateway-attachment/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ variable "name" {
description = "The name tag of the tgw attachment"
type = string
}

variable "security_group_referencing_support" {
description = "Security Group Referencing allows to specify other SGs as references, or matching criterion in inbound security rules to allow instance-to-instance traffic"
type = string
default = "disable"
}
2 changes: 1 addition & 1 deletion aws/transit-gateway-attachment/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 5.41.0"
version = ">= 5.69.0"
}
}
}

0 comments on commit d4e6cdb

Please sign in to comment.