File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed
apigw-lambda-bedrock-nova-terraform Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff 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
2828resource "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 ]
Original file line number Diff line number Diff line change @@ -5,17 +5,17 @@ resource "aws_lambda_layer_version" "boto3_bedrock_layer" {
55}
66
77resource "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 = {
You can’t perform that action at this time.
0 commit comments