Skip to content

Conversation

@kakakakakku
Copy link
Contributor

Issue #, if available:
N/A

Description of changes:
Hi😀 Thanks for the useful patterns!

I found a deprecated warning in Terraform, so I fixed them.
In addition, I modified the README because model access is no longer required in Amazon Bedrock.

Check

terraform apply completed successfully and works good.

$ curl -X POST 'https://aohrw0vg28.execute-api.us-east-1.amazonaws.com/dev/image_gen' --header "Content-Type: application/json" --data '{"prompt": "Kitten playing the piano"}'
{"generated-image": "image-410.png"}%
image-410

Thank you😀


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.


For this pattern, you would need access only to Amazon Nova Canvas foundation model (Model ID: amazon.nova-canvas-v1:0) in us-east-1 region, since the pattern uses us-east-1 region by default.

You must request access to the model before you can use it. If you try to use the model before you have requested access to it, you will receive an error message.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

]
Effect = "Allow"
Resource = [
"arn:aws:bedrock:${data.aws_region.current.name}::foundation-model/amazon.nova-canvas-v1:0"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name - (Optional, Deprecated) Full name of the region to select. Use region instead.
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants