Skip to content

Instantly share code, notes, and snippets.

@adamreese
Created December 9, 2014 22:20
Show Gist options
  • Save adamreese/79995b096183855a07be to your computer and use it in GitHub Desktop.
Save adamreese/79995b096183855a07be to your computer and use it in GitHub Desktop.
f = Awsm.smithy.firewalls.create(data: {database: true}, location: "us-east-1", provider: p.provisioned, name: "myfirewall")
firewall = f.resource!
ds = Awsm.smithy.database_servers.create(provisioned_id: "postgres", engine: "mysql", version: "5.6", username: "root",
password: SecureRandom.hex(10), flavor: "db.m3.medium", storage: 20,
location: "us-east-1d", provider_id: p.provisioned.id, firewall: firewall)
ds.resource!
@michelleN
Copy link

OMG!!!! This is awesome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment