Skip to content

Commit

Permalink
Deployments sync 2023 08 11 (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbernstein authored Aug 12, 2023
1 parent 36d7581 commit a3f1a7a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions shared/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,26 @@ resource "aws_internet_gateway" "duracloud" {
}
}

# https://github.com/terraform-aws-modules/terraform-aws-vpc/tree/master/modules/vpc-endpoints
module "endpoints" {
source = "terraform-aws-modules/vpc/aws//modules/vpc-endpoints"
version = "3.19.0"

vpc_id = aws_vpc.duracloud.id

endpoints = {
s3 = {
service = "s3"
service_type = "Gateway"
route_table_ids = toset([aws_route_table.duracloud_nat.id, aws_route_table.duracloud.id])
},
}

tags = {
Name = "${var.stack_name}-s3-endpoint"
}
}

resource "aws_eip" "duracloud_nat" {
vpc = true

Expand Down

0 comments on commit a3f1a7a

Please sign in to comment.