Skip to content

Commit

Permalink
added example
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwittig committed Nov 7, 2017
1 parent 4d0a937 commit 24c0ca9
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

# Free Templates for AWS CloudFormation

Find the documentation here: http://templates.cloudonaut.io/en/stable/
Find the documentation of the **latest stable release** here: http://templates.cloudonaut.io/en/stable/

Find the documentation of the **unstable master branch** here: http://templates.cloudonaut.io/en/latest/

## License
All templates are published under Apache License Version 2.0.
Expand Down
Binary file added docs/img/cloudformation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/example-alert.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/example-jenkins.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/example-modules.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/example-ssh-bastion-host.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/example-vpc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 43 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,52 @@ We are interested in your requirements. [Please use the following survey to upvo

# How does CloudFormation works

CloudFormation turns a template (JSON or YAML) into a stack. You can apply updated to an existing stack with an updated template an CloudFormation will figure out what needs to be changed.
CloudFormation turns a template (JSON or YAML) into a stack as the following figure shows.

![CloudFormation](./img/cloudformation.png)

You can apply updated to an existing stack with an updated template an CloudFormation will figure out what needs to be changed.

**Never make manual changes to infrastructure managed by CloudFormation!**

# Example

Imagine you want to set up a Jenkins automation server. This project, uses templates as modules to reuse infrastructure components. Some are optional, while others are required. The following figure shows templates that are needed to set up Jenkins.

![Example: Modules](./img/example-modules.png)

If you create a stack, you sometimes have to supply parameters that start with `Parent`. That's the mechanism to pass dependent stacks into a stack.

Let's look at the first dependency.

## VPC dependency (required)

Many templates depend on a VPC stack. This is usually a required dependency.

![VPC dependency](./img/example-vpc.png)

## Alert dependency (optional)

If you want to receive alerts when things go wrong, you can optionally supply an alert stack.

![Alert dependency](./img/example-alert.png)

I highly recommend to use an alert stack. Otherwise, you will not know when things go wrong (and they will!).

## SSH bastion host dependency (optional)

If you want to add some extra security, you can use an SSH bastion host.

![SSH bastion host dependency](example-ssh-bastion-host.png)

## Jenkins

Finally, you can create the Jenkins stack.

![Jenkins](/img/example-jenkins.png)

The cool thing is, that you can re-use the dependencies. So you can use the same SSH bastion host for Jenkins and for WordPress.

# License
All templates are published under Apache License Version 2.0.

Expand Down

0 comments on commit 24c0ca9

Please sign in to comment.