Examples¶
Walkthroughs¶
Here are some walkthroughs that will show you how to do great things with Fugue, and are explained in great detail.
Note
Sometimes an image or diagram can really help. Why not check out the Fugue Composer for a handy visualization of your infrastructure that you can explore and modify in real-time?
Hello World!¶
Networks & Compute¶
VPNs & Secrets¶
Policy As Code¶
Multi-Account¶
Enforcement¶
Example Code: The Fugue Fake Book¶
A “fake book” is a collection of sheet music that helps a performer quickly learn new songs. These example compositions are just code with a few comments, but can show you how to do more things with Fugue.
Complete Stacks¶
- Three-Tier Web Application Using an ASG, ELB, and DynamoDB
This simple composition shows you how to build a web-facing application. It includes an AutoScaling Group running an AMI that we built that offers a very simple, stateless web application. It uses Elastic Load Balancers for a network endpoint and DynamoDB for data persistence.
- Network with VPC, Subnets, IGW, and Route Table
This example demonstrates the
Fugue.AWS.Pattern.Networklibrary by creating a ready-to-go VPC with two public subnets, two private subnets, an IGW, and a route table associated with the public subnets.
Integrations¶
- Fugue and CircleCI
This example shows you how to use the Fugue client in CircleCI builds in order to deploy and update infrastructure.
- Kubernetes the Hard Way
This example demonstrates an implementation of Kelsey Hightower’s “Kubernetes The Hard Way” using Fugue.
Service-Specific Examples¶
- Auto Scaling Group
This example shows you how to set up an Auto Scaling Group.
- Auto Scaling Group Launch Configuration
This example shows you how to set up an Auto Scaling Group Launch Configuration.
- CloudWatch Alarm
This example shows you how to set up a CloudWatch Alarm.
- CloudFormation Stack
This example shows you how to use Fugue to set up and manage CloudFormation stacks. This is useful on its own, or as a way to extend Fugue where services aren’t yet supported.
- CloudFront Distribution
This example shows you how to set up a CloudFront distribution.
- DynamoDB Table
This series of examples shows you how to set up DynamoDB tables of simple, moderate, and high complexity.
- EC2 Instance
This example shows you how to build EC2 instances.
- EC2 Instance with EIP
This example shows you how to build an EC2 instance with an Elastic IP address attached.
- ELB
This example shows you how to build Elastic Load Balancers.
- ELB with SSL
This example shows you how to build ELBs with SSL certificates installed.
- IAM Role
This example shows you how to create an IAM role.
- IAM User
This example shows you how to create an IAM user.
- Internet Gateway
This example shows you how to build an internet gateway.
- IP Permission
This example shows you how to set up an IP permission for a security group.
- Lambda
This example shows you how to deploy a Lambda function.
- RDS
This example shows you how to build an RDS instance.
- Route 53
This example shows you how to build a Route 53 record.
- Routes and Route Table
This example shows you how to build a route and route table.
- S3 Bucket
This example shows you how to build an S3 bucket.
- S3 Bucket with CORS
This example shows you how to build an S3 bucket with CORS configuration.
- Security Groups
This example shows you how to build security groups.
- Subnet
This example shows you how to build a subnet.
- VPC
This example shows you how to build a VPC.