Examples

Walkthroughs

Here are some walkthroughs that will show you how to do great things with Fugue, and are explained in great detail.

Role-Based Access Control

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.

View In GitHub

Network with VPC, Subnets, IGW, and Route Table

This example demonstrates the Fugue.AWS.Pattern.Network library 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.

View In Github

Kubernetes the Hard Way

This example demonstrates an implementation of Kelsey Hightower’s “Kubernetes The Hard Way” using Fugue.

View In Github

Integrations

Fugue and CircleCI

This example shows you how to use the Fugue client in CircleCI builds in order to deploy and update infrastructure.

View In GitHub

Service-Specific Examples

Auto Scaling Group

This example shows you how to set up an Auto Scaling Group.

View In Github

Auto Scaling Group Launch Configuration

This example shows you how to set up an Auto Scaling Group Launch Configuration.

View In Github

CloudWatch Alarm

This example shows you how to set up a CloudWatch Alarm.

View In GitHub

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.

View In GitHub

CloudFront Distribution

This example shows you how to set up a CloudFront distribution.

View In Github

DynamoDB Table

This series of examples shows you how to set up DynamoDB tables of simple, moderate, and high complexity.

View In GitHub

EC2 Instance

This example shows you how to build EC2 instances.

View In GitHub

ELB

This example shows you how to build Elastic Load Balancers.

View In GitHub

ELB with SSL

This example shows you how to build ELBs with SSL certificates installed.

View In GitHub

IAM Role

This example shows you how to create an IAM role.

View In Github

IAM User

This example shows you how to create an IAM user.

View In Github

Internet Gateway

This example shows you how to build an internet gateway.

View In Github

IP Permission

This example shows you how to set up an IP permission for a security group.

View In Github

Lambda

This example shows you how to deploy a Lambda function.

View In GitHub

RDS

This example shows you how to build an RDS instance.

View In Github

Route 53

This example shows you how to build a Route 53 record.

View In Github

Routes and Route Table

This example shows you how to build a route and route table.

View In Github

S3 Bucket

This example shows you how to build an S3 bucket.

View In Github

S3 Bucket with CORS

This example shows you how to build an S3 bucket with CORS configuration.

View In Github

Security Groups

This example shows you how to build security groups.

View In Github

Subnet

This example shows you how to build a subnet.

View In Github

VPC

This example shows you how to build a VPC.

View In Github