Branch: master
Find file History
justinvp Remove duplicate template descriptions (#188)
Now that we've released a few versions of the CLI that can fallback to
showing the project description when listing templates in a repo, we can
delete these redundant descriptions from Pulumi.yaml. Older versions of
the CLI will still work -- they'll just show the name of the template
without a description when running a command like:

```
pulumi new https://github.com/pulumi/examples
```
Latest commit 5c7298c Dec 3, 2018
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
files Generate cloud-init instead of bash Aug 1, 2018
Pulumi.yaml Remove duplicate template descriptions (#188) Dec 3, 2018
README.md
config.ts Fix SSH location parameter Oct 8, 2018
index.ts Add new examples (#181) Nov 15, 2018
package.json Use latest packages for all harnessed examples Nov 9, 2018
tsconfig.json

README.md

Deploy

AWS EC2 Ruby on Rails

This is a conversion of the AWS CloudFormation Application Framework template for a basic Ruby on Rails server. It creates a single EC2 virtual machine instance and uses a local MySQL database for storage. Sourced from https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/sample-templates-appframeworks-us-west-2.html.

Deploying the App

To deploy your Ruby on Rails application, follow the below steps.

Prerequisites

  1. Install Pulumi
  2. Configure AWS Credentials

Steps

After cloning this repo, from this working directory, run these commands:

  1. Create a new stack, which is an isolated deployment target for this example:

    $ pulumi stack init
  2. Set the required configuration variables for this program:

    $ pulumi config set aws:region us-east-1
    $ pulumi config set dbUser [your-mysql-user-here]
    $ pulumi config set dbPassword [your-mysql-password-here] --secret
    $ pulumi config set dbRootPassword [your-mysql-root-password-here] --secret
    
    # Optionally, if you have an AWS KMS key to use for SSH access:
    $ pulumi config set keyName [your-aws-kms-key-name-here]
  3. Stand up the VM, which will also install and configure Ruby on Rails and MySQL:

    $ pulumi up
  4. After several minutes, your VM will be ready, and two stack outputs are printed:

    $ pulumi stack output
    Current stack outputs (2):
    OUTPUT          VALUE
    vmIP            53.40.227.82
    websiteURL      http://ec2-53-40-227-82.us-west-2.compute.amazonaws.com/notes
  5. Visit your new website by entering the websiteURL into your browser, or running:

    $ curl $(pulumi stack output websiteURL)

    If you've configured an SSH key, you can also SSH into the webserver VM easily:

    $ ssh -i <your-key>.pem ec2-user@$(pulumi stack output vmIP)
  6. From there, feel free to experiment. Simply making edits and running pulumi up will incrementally update your VM.

  7. Afterwards, destroy your stack and remove it:

    $ pulumi destroy --yes
    $ pulumi stack rm --yes