Skip to content

Instantly share code, notes, and snippets.

@jamesbeedy
Last active September 12, 2018 18:01
Show Gist options
  • Save jamesbeedy/98ec0d027dfcc4c77cd655e36a81a2ad to your computer and use it in GitHub Desktop.
Save jamesbeedy/98ec0d027dfcc4c77cd655e36a81a2ad to your computer and use it in GitHub Desktop.
juju-aws-elb
#!/bin/bash
# Deploy and configure the web app
juju add-model flask-test --credential jamesbeedy-pdl aws/us-west-2
juju add-space nat 172.31.102.0/24 172.31.103.0/24 172.31.104.0/24
juju deploy cs:~jamesbeedy/flask-test-0 --constraints "spaces=nat instance-type=m5.large"
# Deploy and configure the aws-integrator and aws-elb
juju add-model aws-elb-test --credential jamesbeedy-pdl aws/us-west-2
juju add-space nat 172.31.102.0/24 172.31.103.0/24 172.31.104.0/24
juju deploy cs:~containers/aws-integrator-5 --constraints "spaces=nat instance-type=m5.large"
juju deploy cs:~omnivector/aws-elb-11
juju config aws-elb cert-fqdn="*.peopledatalabs.com"
juju config aws-elb subnets="subnet-1de11955,subnet-1de11955,subnet-1de11955"
juju trust aws-integrator
juju relate aws-elb aws-integrator
juju offer aws-elb:aws-elb
juju switch flask-test
juju find-offers
juju consume bdx/aws-elb-test.aws-elb
juju relate aws-elb flask-test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment