File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ resource "aws_apigatewayv2_api" "http_api" {
44}
55
66resource "aws_apigatewayv2_integration" "lambda_integration" {
7- api_id = aws_apigatewayv2_api. http_api . id
8- integration_type = " AWS_PROXY"
9- integration_uri = aws_lambda_function. health_check . arn
7+ api_id = aws_apigatewayv2_api. http_api . id
8+ integration_type = " AWS_PROXY"
9+ integration_uri = aws_lambda_function. health_check . arn
1010 payload_format_version = " 2.0"
1111}
1212
Original file line number Diff line number Diff line change 1- bucket = " serverlesshealthcheckapi"
2- key = " serverless-health-check-api/prod/tfstate"
3- region = " us-east-1"
4- encrypt = true
1+ bucket = " serverlesshealthcheckapi"
2+ key = " serverless-health-check-api/prod/tfstate"
3+ region = " us-east-1"
4+ encrypt = true
Original file line number Diff line number Diff line change 1- bucket = " serverlesshealthcheckapi"
2- key = " serverless-health-check-api/staging/tfstate"
3- region = " us-east-1"
4- encrypt = true
1+ bucket = " serverlesshealthcheckapi"
2+ key = " serverless-health-check-api/staging/tfstate"
3+ region = " us-east-1"
4+ encrypt = true
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ data "aws_iam_policy_document" "lambda_assume_role" {
22 statement {
33 effect = " Allow"
44 principals {
5- type = " Service"
5+ type = " Service"
66 identifiers = [" lambda.amazonaws.com" ]
77 }
88 actions = [" sts:AssumeRole" ]
Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ data "archive_file" "lambda_zip" {
99}
1010
1111resource "aws_lambda_function" "health_check" {
12- function_name = " ${ var . env } -health-check-function"
13- filename = data. archive_file . lambda_zip . output_path
14- handler = var. lambda_handler
15- runtime = var. lambda_runtime
16- role = aws_iam_role. lambda_role . arn
12+ function_name = " ${ var . env } -health-check-function"
13+ filename = data. archive_file . lambda_zip . output_path
14+ handler = var. lambda_handler
15+ runtime = var. lambda_runtime
16+ role = aws_iam_role. lambda_role . arn
1717 source_code_hash = data. archive_file . lambda_zip . output_base64sha256
1818
1919 environment {
Original file line number Diff line number Diff line change 1- env = " prod"
1+ env = " prod"
22aws_region = " us-east-1"
Original file line number Diff line number Diff line change 1- env = " staging"
1+ env = " staging"
22aws_region = " us-east-1"
You can’t perform that action at this time.
0 commit comments