Skip to content

Commit

Permalink
#39 corrected reference
Browse files Browse the repository at this point in the history
  • Loading branch information
kunduso committed May 3, 2024
1 parent bec74ec commit 27c2798
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion infra/security_group.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ resource "aws_security_group" "endpoint_sg" {
description = "allow inbound traffic"
vpc_id = aws_vpc.this.id
tags = {
"Name" = "app-5-endpoint-sg"
"Name" = "${var.name}-endpoint_sg"
}
}
#https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group_rule
Expand Down
6 changes: 3 additions & 3 deletions infra/vpc_endpoint.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ resource "aws_vpc_endpoint" "ecr" {
service_name = "com.amazonaws.${var.region}.ecr.dkr"
vpc_endpoint_type = "Interface"
subnet_ids = [for subnet in aws_subnet.private : subnet.id]
security_group_ids = [aws_security_group.endpoint-sg.id]
security_group_ids = [aws_security_group.endpoint_sg.id]
private_dns_enabled = true
tags = {
"Name" = "${var.name}-ecr"
Expand All @@ -17,7 +17,7 @@ resource "aws_vpc_endpoint" "ecr_api" {
service_name = "com.amazonaws.${var.region}.ecr.api"
vpc_endpoint_type = "Interface"
subnet_ids = [for subnet in aws_subnet.private : subnet.id]
security_group_ids = [aws_security_group.endpoint-sg.id]
security_group_ids = [aws_security_group.endpoint_sg.id]
private_dns_enabled = true
tags = {
"Name" = "${var.name}-ecr-api"
Expand All @@ -29,7 +29,7 @@ resource "aws_vpc_endpoint" "cloudwatch" {
service_name = "com.amazonaws.${var.region}.logs"
vpc_endpoint_type = "Interface"
subnet_ids = [for subnet in aws_subnet.private : subnet.id]
security_group_ids = [aws_security_group.endpoint-sg.id]
security_group_ids = [aws_security_group.endpoint_sg.id]
private_dns_enabled = true
tags = {
"Name" = "${var.name}-logs"
Expand Down

0 comments on commit 27c2798

Please sign in to comment.