Skip to content

Commit

Permalink
Merge pull request #22 from kunduso/add-scaffolding
Browse files Browse the repository at this point in the history
Minor changes
  • Loading branch information
kunduso committed Apr 22, 2024
2 parents a77e305 + 6a32891 commit e906d4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![License: Unlicense](https://img.shields.io/badge/license-Unlicense-white.svg)](https://choosealicense.com/licenses/unlicense/)[![GitHub pull-requests closed](https://img.shields.io/github/issues-pr-closed/kunduso/add-aws-ecr-ecs-fargate)](https://github.com/kunduso/add-aws-ecr-ecs-fargate/pulls?q=is%3Apr+is%3Aclosed)[![GitHub pull-requests](https://img.shields.io/github/issues-pr/kunduso/add-aws-ecr-ecs-fargate)](https://GitHub.com/kunduso/add-aws-ecr-ecs-fargate/pull/)
[![GitHub issues-closed](https://img.shields.io/github/issues-closed/kunduso/add-aws-ecr-ecs-fargate)](https://github.com/kunduso/add-aws-ecr-ecs-fargate/issues?q=is%3Aissue+is%3Aclosed)[![GitHub issues](https://img.shields.io/github/issues/kunduso/add-aws-ecr-ecs-fargate)](https://GitHub.com/kunduso/add-aws-ecr-ecs-fargate/issues/)
[![License: Unlicense](https://img.shields.io/badge/license-Unlicense-white.svg)](https://choosealicense.com/licenses/unlicense/) [![GitHub pull-requests closed](https://img.shields.io/github/issues-pr-closed/kunduso/add-aws-ecr-ecs-fargate)](https://github.com/kunduso/add-aws-ecr-ecs-fargate/pulls?q=is%3Apr+is%3Aclosed) [![GitHub pull-requests](https://img.shields.io/github/issues-pr/kunduso/add-aws-ecr-ecs-fargate)](https://GitHub.com/kunduso/add-aws-ecr-ecs-fargate/pull/)
[![GitHub issues-closed](https://img.shields.io/github/issues-closed/kunduso/add-aws-ecr-ecs-fargate)](https://github.com/kunduso/add-aws-ecr-ecs-fargate/issues?q=is%3Aissue+is%3Aclosed) [![GitHub issues](https://img.shields.io/github/issues/kunduso/add-aws-ecr-ecs-fargate)](https://GitHub.com/kunduso/add-aws-ecr-ecs-fargate/issues/)
[![terraform-infra-provisioning](https://github.com/kunduso/add-aws-ecr-ecs-fargate/actions/workflows/terraform.yml/badge.svg)](https://github.com/kunduso/add-aws-ecr-ecs-fargate/actions/workflows/terraform.yml) [![checkov-scan](https://github.com/kunduso/add-aws-ecr-ecs-fargate/actions/workflows/code-scan.yml/badge.svg)](https://github.com/kunduso/add-aws-ecr-ecs-fargate/actions/workflows/code-scan.yml)

## Motivation
Expand Down
8 changes: 4 additions & 4 deletions infra/vpc_endpoint.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_endpoint
resource "aws_vpc_endpoint" "ecr" {
vpc_id = aws_vpc.this.id
service_name = "com.amazonaws.us-east-2.ecr.dkr"
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]
Expand All @@ -14,7 +14,7 @@ resource "aws_vpc_endpoint" "ecr" {
#https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_endpoint
resource "aws_vpc_endpoint" "ecr_api" {
vpc_id = aws_vpc.this.id
service_name = "com.amazonaws.us-east-2.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]
Expand All @@ -26,7 +26,7 @@ resource "aws_vpc_endpoint" "ecr_api" {
#https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_endpoint
resource "aws_vpc_endpoint" "cloudwatch" {
vpc_id = aws_vpc.this.id
service_name = "com.amazonaws.us-east-2.logs"
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]
Expand All @@ -38,7 +38,7 @@ resource "aws_vpc_endpoint" "cloudwatch" {
#https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_endpoint
resource "aws_vpc_endpoint" "s3" {
vpc_id = aws_vpc.this.id
service_name = "com.amazonaws.us-east-2.s3"
service_name = "com.amazonaws.${var.region}.s3"
vpc_endpoint_type = "Gateway"
tags = {
"Name" = "${var.name}-s3"
Expand Down

0 comments on commit e906d4f

Please sign in to comment.