Skip to content

Commit dbb151a

Browse files
authored
feat: add Glue and S3 table VPC endpoint resources to configuration (#26)
1 parent 265d924 commit dbb151a

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,9 @@ output "automq_byoc_instance_id" {
219219
| [aws_security_group.vpc_endpoint_sg](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group) | resource |
220220
| [aws_volume_attachment.data_volume_attachment](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/volume_attachment) | resource |
221221
| [aws_vpc_endpoint.ec2_endpoint](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_endpoint) | resource |
222+
| [aws_vpc_endpoint.glue_endpoint](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_endpoint) | resource |
222223
| [aws_vpc_endpoint.s3_endpoint](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_endpoint) | resource |
224+
| [aws_vpc_endpoint.s3table_endpoint](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_endpoint) | resource |
223225
| [aws_ami.console_ami](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ami) | data source |
224226
| [aws_availability_zones.available_azs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/availability_zones) | data source |
225227
| [aws_subnet.public_subnet_info](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/subnet) | data source |

aws.tf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,24 @@ resource "aws_vpc_endpoint" "s3table_endpoint" {
137137
}
138138
}
139139

140+
resource "aws_vpc_endpoint" "glue_endpoint" {
141+
count = var.create_new_vpc ? 1 : 0
142+
143+
vpc_id = module.automq_byoc_vpc[0].vpc_id
144+
service_name = "com.amazonaws.${var.cloud_provider_region}.glue"
145+
vpc_endpoint_type = "Interface"
146+
security_group_ids = [aws_security_group.vpc_endpoint_sg[0].id]
147+
subnet_ids = module.automq_byoc_vpc[0].private_subnets
148+
149+
private_dns_enabled = true
150+
151+
tags = {
152+
Name = "automq-byoc-ec2-endpoint-${var.automq_byoc_env_id}"
153+
automqVendor = "automq"
154+
automqEnvironmentID = var.automq_byoc_env_id
155+
}
156+
}
157+
140158
locals {
141159
automq_byoc_vpc_id = var.create_new_vpc ? module.automq_byoc_vpc[0].vpc_id : var.automq_byoc_vpc_id
142160
automq_byoc_env_console_public_subnet_id = var.create_new_vpc ? element(module.automq_byoc_vpc[0].public_subnets, 0) : var.automq_byoc_env_console_public_subnet_id

0 commit comments

Comments
 (0)