Home icon

Architecture to AWS CloudFormation code using Anthropic’s Claude 3 on Amazon Bedrock

Machine Learning Blog



The article discusses how to use Anthropic's Claude 3 Sonnet model on Amazon Bedrock to generate AWS CloudFormation code from architecture diagrams. It presents a solution with a Streamlit web application that invokes the Claude 3 Sonnet model to analyze an uploaded architecture image and generate a step-by-step explanation. The model is then prompted with the explanation and few-shot learning examples to generate an initial CloudFormation template.

Specifically, the article covers:

  • Use cases for converting architecture diagrams to CloudFormation code
  • Overview of the solution architecture and workflow
  • Details on few-shot prompting with CloudFormation examples
  • An example of generating CloudFormation code from a sample architecture diagram
  • Additional examples and best practices for improving the solution
  • Conclusion and resources for further learning


Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

May 11
2026
Introducing Claude Platform on AWS: Anthropic’s native platform, through your AWS account
Aug 23
2024
Knowledge Bases for Amazon Bedrock supports Anthropic’s Claude 3.5 Sonnet
Sep 3
2024
Build a generative AI image description application with Anthropic’s Claude 3.5 Sonnet on Amazon Bedrock and AWS CDK
Oct 16
2024
How SailPoint uses Anthropic’s Claude on Amazon Bedrock to automatically generate TypeScript code for SaaS connectors

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.