Skip to content

Instantly share code, notes, and snippets.

@garethr
Created January 13, 2015 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garethr/0bf214515d43bf96e302 to your computer and use it in GitHub Desktop.
Save garethr/0bf214515d43bf96e302 to your computer and use it in GitHub Desktop.
ec2_vpc { 'garethr-test':
  ensure           => present,
  region           => 'sa-east-1',
  cidr_block       => '10.0.0.0/16',
  instance_tenancy => 'default',
}

ec2_vpc_subnet { 'garethr-subnet':
  ensure            => present,
  region            => 'sa-east-1',
  vpc               => 'garethr-test',
  cidr_block        => '10.0.0.0/24',
  availability_zone => 'sa-east-1a',
  route_table       => 'garethr-routes',
}

ec2_vpc_routetable { 'garethr-routes':
  ensure => present,
  region => 'sa-east-1',
  vpc    => 'garethr-test',
  routes => [
    { destination_cidr_block => '10.0.0.0/16', gateway => 'local' },
  ],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment