Skip to content

Commit 774bc2b

Browse files
committed
apigw-lambda-bedrock-nova-terraform: terraform fmt
1 parent 67b5d0c commit 774bc2b

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

apigw-lambda-bedrock-nova-terraform/api_gateway.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ resource "aws_api_gateway_integration" "lambda_integration" {
1919
rest_api_id = aws_api_gateway_rest_api.generate_content_api.id
2020
resource_id = aws_api_gateway_resource.generate_content.id
2121
http_method = aws_api_gateway_method.generate_content_post.http_method
22-
22+
2323
integration_http_method = "POST"
2424
type = "AWS_PROXY"
2525
uri = aws_lambda_function.content_generation.invoke_arn
2626
}
2727

2828
resource "aws_api_gateway_deployment" "api_deployment" {
2929
rest_api_id = aws_api_gateway_rest_api.generate_content_api.id
30-
30+
3131
depends_on = [
3232
aws_api_gateway_integration.lambda_integration
3333
]

apigw-lambda-bedrock-nova-terraform/lambda.tf

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ resource "aws_lambda_layer_version" "boto3_bedrock_layer" {
55
}
66

77
resource "aws_lambda_function" "content_generation" {
8-
filename = "${path.module}/lambda_function.zip"
9-
function_name = "ContentGenerationFunction"
10-
role = aws_iam_role.lambda_role.arn
11-
handler = "bedrock_integration.lambda_handler"
12-
runtime = "python3.10"
13-
architectures = ["arm64"]
14-
15-
layers = [aws_lambda_layer_version.boto3_bedrock_layer.arn]
16-
17-
memory_size = 256
18-
timeout = 30
8+
filename = "${path.module}/lambda_function.zip"
9+
function_name = "ContentGenerationFunction"
10+
role = aws_iam_role.lambda_role.arn
11+
handler = "bedrock_integration.lambda_handler"
12+
runtime = "python3.10"
13+
architectures = ["arm64"]
14+
15+
layers = [aws_lambda_layer_version.boto3_bedrock_layer.arn]
16+
17+
memory_size = 256
18+
timeout = 30
1919

2020
environment {
2121
variables = {

0 commit comments

Comments
 (0)