Skip to content

Commit fde0732

Browse files
authored
feat: add S3 table VPC endpoint configuration (#24)
* feat: add .gitignore to exclude sensitive and environment-specific files * feat: update .gitignore to exclude all Terraform files * feat: add S3 table VPC endpoint configuration in aws.tf
1 parent 74e7d2f commit fde0732

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

.gitignore

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Terraform files
2+
**/.terraform/*
3+
.terraform.lock.hcl
4+
*.tfstate
5+
*.tfstate.*
6+
7+
# Crash log files
8+
crash.log
9+
10+
# Exclude all .tfvars files, which are likely to contain sensitive data, such as
11+
# passwords, private keys, and other secrets. These should not be part of version
12+
# control as they are data points which are potentially sensitive and subject
13+
# to change depending on the environment.
14+
*.tfvars
15+
16+
# Ignore override files as they are usually used to override resources locally and so
17+
# are not checked in
18+
override.tf
19+
override.tf.json
20+
*_override.tf
21+
*_override.tf.json
22+
23+
# Ignore CLI configuration files
24+
.terraformrc
25+
terraform.rc
26+
.terraform/*
27+
28+
# Ignore editor config files
29+
.editorconfig
30+
31+
# Ignore pre-commit config
32+
.pre-commit-config.yaml
33+
34+
# Ignore release config
35+
.releaserc.json
36+
37+
# Ignore GitHub workflows
38+
.github/
39+
40+
# Ignore OS-specific files
41+
.DS_Store
42+
Thumbs.db
43+
44+
# Ignore IDE-specific files
45+
.vscode/
46+
.idea/

aws.tf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,24 @@ resource "aws_vpc_endpoint" "s3_endpoint" {
119119
}
120120
}
121121

122+
resource "aws_vpc_endpoint" "s3table_endpoint" {
123+
count = var.create_new_vpc ? 1 : 0
124+
125+
vpc_id = module.automq_byoc_vpc[0].vpc_id
126+
service_name = "com.amazonaws.${var.cloud_provider_region}.s3tables"
127+
vpc_endpoint_type = "Interface"
128+
security_group_ids = [aws_security_group.vpc_endpoint_sg[0].id]
129+
subnet_ids = module.automq_byoc_vpc[0].private_subnets
130+
131+
private_dns_enabled = true
132+
133+
tags = {
134+
Name = "automq-byoc-ec2-endpoint-${var.automq_byoc_env_id}"
135+
automqVendor = "automq"
136+
automqEnvironmentID = var.automq_byoc_env_id
137+
}
138+
}
139+
122140
locals {
123141
automq_byoc_vpc_id = var.create_new_vpc ? module.automq_byoc_vpc[0].vpc_id : var.automq_byoc_vpc_id
124142
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)