Skip to content

Commit 3f37b4b

Browse files
authored
Merge pull request #2851 from kakakakakku/apigw-lambda-bedrock-nova-terraform
apigw-lambda-bedrock-nova-terraform: Small improvements (terraform fmt and Fix README)
2 parents 7827395 + abd1605 commit 3f37b4b

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lambda-layer/
2+
lambda_function.zip

apigw-lambda-bedrock-nova-terraform/README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff 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
----
134134
Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
135135

136-
SPDX-License-Identifier: MIT-0
136+
SPDX-License-Identifier: MIT-0

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
]

0 commit comments

Comments
 (0)