Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Getting started with JuJu and AWS

Getting started with JuJu and AWS

List of commands from the ubuntu juju tutorial

Quentin Wright

March 19, 2013
Tweet

More Decks by Quentin Wright

Other Decks in Programming

Transcript

  1. Getting started with JuJu and AWS Derived from https://juju.ubuntu.com/docs/user-tutorial.html Install

    the ubuntu ppa and juju: $ sudo add-apt-repository ppa:juju/pkgs $ sudo aptitude update $ sudo aptitude install juju Generate a key-pair $ ssh-keygen -t rsa -b 2048 Create an environment: $ juju bootstrap need to create a ~/.juju/environments.yaml like this: environments: sample: type: ec2 access-key: <AWS Access Key ID> secret-key: <AWS secret access key> control-bucket: juju-6b4729fe41eb4e46ac4d8f6d9a971dfa admin-secret: 9fb283d7672f4b58b1a8f8f6e8800db0 default-series: precise # ssl-hostname-verification: true Try bootstrap again: $ juju bootstrap See What's happening with $ juju status $ juju deploy mysql wordpress-db $ juju deploy wordpress $ juju add-relation wordpress wordpress-db $ juju expose wordpress $ juju add-unit wordpress When all is done: $ juju destroy-environment