Home Resources Documentation Examples Language GitHub
diagram "example" [direction=lr] {
  // creating the nodes
  generic.users Users;
  aws.route53 DNS;
  aws.cloudfront cf [label="CDN"];
  aws.s3 s3 [label="Static assets"];

  group vpc [label="VPC",style=solid,stroke=black,opacity=0] {
      aws.elb load_balancer [label="Load balancer"];

      group asg [label="Auto scaling group",style=solid,fill="#80c880"] {
          aws.ec2 server1 [label="Server 1"];
          aws.ec2 server2 [label="Server 2"];
      }
  }

  // creating the edges
  Users -> DNS -> cf -> load_balancer <=> asg;
  cf -> s3;
}