aws-samples/sample-opencode-with-bedrock ? reverse-engineered prompt

Reverse engineered prompt

Build me a full AWS hosted OpenCode setup that lets me use Claude and other Bedrock models through a simple OpenAI style endpoint.

I want the whole thing to deploy with one command, including the network, certificates, authentication, the router service, and a small landing page or download page for the client tools. It should support both browser sign in with OIDC and API key access for scripts and CI, and it should route Anthropic models through the normal Bedrock path while sending the other supported models through the alternate Bedrock route. Please include health checks, logging, auto scaling, and a clean way to manage API keys in DynamoDB.

Make it easy to configure for a dev environment with a custom domain, and keep the router container buildable and pushable to ECR. If anything is unclear, look up the current AWS docs online and make the setup work with today’s best practices.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab