Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions terragrunt/accounts/docs-rs-staging/vpc/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions terragrunt/modules/bastion/instance.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Associate an elastic IP to the instance.

resource "aws_eip" "bastion" {
vpc = true
domain = "vpc"
tags = {
Name = "bastion"
}
Expand Down Expand Up @@ -63,9 +63,8 @@ resource "aws_instance" "bastion" {
delete_on_termination = true
}

network_interface {
primary_network_interface {
network_interface_id = aws_network_interface.bastion.id
device_index = 0
}

tags = {
Expand Down
2 changes: 1 addition & 1 deletion terragrunt/modules/vpc/_terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.32"
version = "~> 6.27"
}
}
}
6 changes: 3 additions & 3 deletions terragrunt/modules/vpc/gateways.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ resource "aws_egress_only_internet_gateway" "eigw" {

resource "aws_vpc_endpoint" "s3" {
vpc_id = aws_vpc.vpc.id
service_name = "com.amazonaws.${data.aws_region.current.name}.s3"
service_name = "com.amazonaws.${data.aws_region.current.id}.s3"
vpc_endpoint_type = "Gateway"

tags = {
Expand All @@ -28,7 +28,7 @@ resource "aws_vpc_endpoint" "s3" {

resource "aws_vpc_endpoint" "dynamodb" {
vpc_id = aws_vpc.vpc.id
service_name = "com.amazonaws.${data.aws_region.current.name}.dynamodb"
service_name = "com.amazonaws.${data.aws_region.current.id}.dynamodb"
vpc_endpoint_type = "Gateway"

tags = {
Expand All @@ -43,7 +43,7 @@ resource "aws_vpc_endpoint" "dynamodb" {
resource "aws_eip" "nat" {
for_each = toset(values(var.private_subnets)) # Name of the AZs

vpc = true
domain = "vpc"
tags = {
Name = "${var.name}--nat-${each.value}"
}
Expand Down