Skip to content

Commit 3c48257

Browse files
Run the application locally and tested
1 parent 9474e0d commit 3c48257

5 files changed

Lines changed: 29 additions & 4 deletions

File tree

terraform/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ module "iam" {
4444

4545
# API Gateway Module
4646
module "api_gateway" {
47-
source = "./modules/api_gateway"
48-
47+
source = "./modules/api-gateway"
4948
environment = var.environment
5049
lambda_invoke_arn = module.lambda.function_invoke_arn
5150
common_tags = local.common_tags
@@ -60,5 +59,6 @@ module "lambda" {
6059
api_gateway_execution_arn = module.api_gateway.execution_arn
6160
lambda_funtion_dir = var.lambda_funtion_dir
6261
common_tags = local.common_tags
63-
depends_on = [module.api_gateway]
64-
}
62+
# depends_on = [module.api_gateway]
63+
}
64+
745 Bytes
Binary file not shown.

terraform/outputs.tf

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
output "api_endpoint" {
2+
description = "The endpoint URL of the API Gateway"
3+
value = module.api_gateway.api_endpoint
4+
}
5+
6+
output "dynamodb_table_name" {
7+
description = "The name of the DynamoDB table"
8+
value = module.dynamodb.table_name
9+
}
10+
11+
output "lambda_function_name" {
12+
description = "The name of the Lambda function"
13+
value = module.lambda.function_name
14+
}
15+
16+
output "environment" {
17+
description = "The environment name"
18+
value = var.environment
19+
}

terraform/prod.tfvars

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
environment = "prod"
2+
aws_region = "us-east-1"
3+
project_name = "serverless-health-check-api"

terraform/staging.tfvars

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
environment = "staging"
2+
aws_region = "us-east-1"
3+
project_name = "serverless-health-check-api"

0 commit comments

Comments
 (0)