automated terminal push

This commit is contained in:
lenape
2025-08-03 16:43:29 +00:00
parent a05b729062
commit 4633bd7c36
3 changed files with 17 additions and 17 deletions

View File

@@ -68,7 +68,7 @@ resource "aws_subnet" "private" {
resource "aws_eip" "nat" {
count = var.enable_private_subnets && var.enable_nat_gateway ? (var.single_nat_gateway ? 1 : 2) : 0
domain = "vpc"
domain = "vpc"
depends_on = [aws_internet_gateway.main]
tags = {
@@ -118,7 +118,7 @@ resource "aws_route_table" "private" {
dynamic "route" {
for_each = var.enable_nat_gateway ? [1] : []
content {
cidr_block = "0.0.0.0/0"
cidr_block = "0.0.0.0/0"
# If single NAT gateway, all route tables use index 0, otherwise use the route table's index
nat_gateway_id = aws_nat_gateway.main[var.single_nat_gateway ? 0 : count.index].id
}
@@ -314,9 +314,9 @@ resource "aws_s3_bucket_public_access_block" "terraform_state" {
# DynamoDB Table for Terraform State Locking
resource "aws_dynamodb_table" "terraform_locks" {
name = "${var.project_name}-terraform-locks"
billing_mode = "PAY_PER_REQUEST"
hash_key = "LockID"
name = "${var.project_name}-terraform-locks"
billing_mode = "PAY_PER_REQUEST"
hash_key = "LockID"
attribute {
name = "LockID"