Skip to content

Commit

Permalink
Merge pull request #17 from smerle33/default-vpc/vpc
Browse files Browse the repository at this point in the history
hotfix(vpc) use the vpc_id instead of default vpc_id
  • Loading branch information
smerle33 authored Oct 9, 2024
2 parents e827b01 + 4422644 commit 2f24de6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions network.tf
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
resource "aws_security_group" "restricted_ssh" {
name = "restricted-ssh"
description = "Allow inbound SSH only from trusted sources (admins or VPN)"
vpc_id = module.vpc.default_vpc_id
vpc_id = module.vpc.vpc_id

tags = local.common_tags
}

resource "aws_security_group" "unrestricted_http" {
name = "unrestricted-http"
description = "Allow HTTP(S) from everywhere (public services)"
vpc_id = module.vpc.default_vpc_id
vpc_id = module.vpc.vpc_id

tags = local.common_tags
}
Expand Down
2 changes: 1 addition & 1 deletion vpc.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "aws_internet_gateway" "gw" {
vpc_id = module.vpc.default_vpc_id
vpc_id = module.vpc.vpc_id
}

resource "aws_eip" "nat" {
Expand Down

0 comments on commit 2f24de6

Please sign in to comment.