File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,8 +44,7 @@ module "iam" {
4444
4545# API Gateway Module
4646module "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+
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 1+ environment = " prod"
2+ aws_region = " us-east-1"
3+ project_name = " serverless-health-check-api"
Original file line number Diff line number Diff line change 1+ environment = " staging"
2+ aws_region = " us-east-1"
3+ project_name = " serverless-health-check-api"
You can’t perform that action at this time.
0 commit comments