Skip to content

Commit 0e680f0

Browse files
Fixed terraform format issue
1 parent f37da73 commit 0e680f0

2 files changed

Lines changed: 22 additions & 22 deletions

File tree

terraform/main.tf

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
terraform {
22
required_version = ">= 1.0"
3-
3+
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
@@ -28,9 +28,9 @@ locals {
2828

2929
# DynamoDB Module
3030
module "dynamodb" {
31-
source = "./modules/dynamodb"
32-
environment = var.environment
33-
common_tags = local.common_tags
31+
source = "./modules/dynamodb"
32+
environment = var.environment
33+
common_tags = local.common_tags
3434
}
3535

3636
# IAM Module
@@ -44,21 +44,21 @@ module "iam" {
4444

4545
# API Gateway Module
4646
module "api_gateway" {
47-
source = "./modules/api-gateway"
47+
source = "./modules/api-gateway"
4848
environment = var.environment
4949
lambda_invoke_arn = module.lambda.function_invoke_arn
5050
common_tags = local.common_tags
5151
}
5252

5353
# Lambda Module
5454
module "lambda" {
55-
source = "./modules/lambda"
56-
environment = var.environment
57-
lambda_role_arn = module.iam.lambda_role_arn
58-
dynamodb_table_name = module.dynamodb.table_name
59-
api_gateway_execution_arn = module.api_gateway.execution_arn
60-
lambda_funtion_dir = var.lambda_funtion_dir
61-
common_tags = local.common_tags
55+
source = "./modules/lambda"
56+
environment = var.environment
57+
lambda_role_arn = module.iam.lambda_role_arn
58+
dynamodb_table_name = module.dynamodb.table_name
59+
api_gateway_execution_arn = module.api_gateway.execution_arn
60+
lambda_funtion_dir = var.lambda_funtion_dir
61+
common_tags = local.common_tags
6262
# depends_on = [module.api_gateway]
6363
}
6464

terraform/variables.tf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
variable "aws_region" {
2-
default = "us-east-1"
2+
default = "us-east-1"
33
description = "AWS region"
4-
type = string
4+
type = string
55
}
66

77
variable "terraform_backend_bucket" {
8-
default = "serverlesshealthcheckapi"
8+
default = "serverlesshealthcheckapi"
99
description = "AWS S3 Bucket for Terraform backend"
10-
type = string
10+
type = string
1111
}
1212

1313
variable "environment" {
1414
validation {
15-
condition = contains(["staging", "prod"], var.environment)
15+
condition = contains(["staging", "prod"], var.environment)
1616
error_message = "Environment must be either staging or prod"
1717
}
1818
description = "Deployment environment name (staging or prod)"
19-
type = string
19+
type = string
2020
}
2121

2222
variable "lambda_funtion_dir" {
23-
default = "../lambda"
23+
default = "../lambda"
2424
description = "Directory containing Lambda function source code"
25-
type = string
25+
type = string
2626
}
2727
variable "project_name" {
28-
default = "serverless-health-check-api"
28+
default = "serverless-health-check-api"
2929
description = "Project name for tagging and resource naming"
30-
type = string
30+
type = string
3131
}

0 commit comments

Comments
 (0)