Skip to content

A quick demostration to deploy a Stable Diffusion Web application with containers running on Amazon ECS. The model is provided by Amazon Bedrock in this example

License

Notifications You must be signed in to change notification settings

aws-samples/image-generator-with-stable-diffusion-on-amazon-bedrock-using-streamlit

Image Generator with Stable Diffusion on Amazon Bedrock using Streamlit

This is a Web Application based on Streamlit, which leverage Stable Diffusion model provided by Amazon Bedrock. It is deployed as containers and target to deploy to Amazon ECS for production use.

Show Case

Prerequisite

  1. Docker environment
  2. docker-compose installed - Optional for local development only
  3. Copilot CLI for Amazon ECS deploy
  4. AWS permissions, for both local development and your applicaiton
  5. Apart from the permissions, you should also enable the Stable Diffusion model

Local Development

  1. Configure the variable
cp env-example .env

Update the AWS Credentials inside .env

  1. Run
docker-compose up --build

Production

Architecture

Architecture

Deployment

  1. Init the project (First time only)
copilot init
  1. Deploy
copilot deploy

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

About

A quick demostration to deploy a Stable Diffusion Web application with containers running on Amazon ECS. The model is provided by Amazon Bedrock in this example

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •