Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
iammukeshm committed Aug 23, 2024
1 parent fc36b7d commit 16c84d7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 30 deletions.
6 changes: 1 addition & 5 deletions src/apps/blazor/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ http {
server {
listen 80;
index index.html;

location /health {
access_log off;
}


location / {
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html =404;
Expand Down
8 changes: 6 additions & 2 deletions terraform/environments/dev/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
output "vpc_id" {
value = module.vpc.vpc_id
output "webapi" {
value = "http://${module.webapi.endpoint}:8080"
}

output "blazor" {
value = "http://${module.blazor.endpoint}"
}
37 changes: 14 additions & 23 deletions terraform/modules/ecs/variables.tf
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
variable "aws_region" {
description = "The AWS region to deploy resources in"
type = string
default = "us-east-1"
type = string
default = "us-east-1"
}

variable "cluster_id" {
type = string
}

variable "service_name" {
description = "The name of the ECS service"
type = string
type = string
}

variable "container_name" {
description = "The name of the container"
type = string
type = string
}

variable "container_image" {
description = "The container image to use"
type = string
type = string
}

variable "container_port" {
Expand All @@ -29,32 +25,27 @@ variable "container_port" {
}

variable "desired_count" {
description = "The desired number of tasks"
type = number
default = 1
type = number
default = 1
}

variable "cpu" {
description = "The number of cpu units to allocate for the task"
type = number
default = 256
type = number
default = 1024
}

variable "memory" {
description = "The amount of memory (in MiB) to allocate for the task"
type = number
default = 512
type = number
default = 2048
}

variable "subnet_ids" {
description = "The subnets to run the ECS service in"
type = list(string)
type = list(string)
}

variable "environment_variables" {
description = "A map of environment variables to pass to the container"
type = map(string)
default = {}
type = map(string)
default = {}
}

variable "vpc_id" {
Expand Down

0 comments on commit 16c84d7

Please sign in to comment.