File tree Expand file tree Collapse file tree 3 files changed +18
-16
lines changed
apigw-lambda-bedrock-nova-terraform Expand file tree Collapse file tree 3 files changed +18
-16
lines changed Original file line number Diff line number Diff line change 1+ lambda-layer /
2+ lambda_function.zip
Original file line number Diff line number Diff line change @@ -87,22 +87,22 @@ Key components:
8787
8888## Testing
8989
90- Using Curl:
90+ Using Curl:
9191
92- ```
93- curl -X POST \
94- -H "Content-Type: application/json" \
95- -d '{"prompt": "What are the key benefits of using AWS services?"}' \
96- https://YOUR-API-ENDPOINT/dev/generate_content
97-
98- ```
92+ ```sh
93+ curl -X POST \
94+ -H "Content-Type: application/json" \
95+ -d '{"prompt": "What are the key benefits of using AWS services?"}' \
96+ https://YOUR-API-ENDPOINT/dev/generate_content
97+ ```
9998
10099## Viewing Test Results
101- ```
102- {
103- "generated-text": "<Model generated response >"
104- }
105- ```
100+
101+ ``` json
102+ {
103+ "generated-text" : " <Model generated response>"
104+ }
105+ ```
106106
107107## Cleanup
108108
@@ -133,4 +133,4 @@ Key components:
133133----
134134Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
135135
136- SPDX-License-Identifier: MIT-0
136+ SPDX-License-Identifier: MIT-0
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 ]
You can’t perform that action at this time.
0 commit comments