{"action":"opened","issue":{"url":"https://api.github.com/repos/mitchellh/vagrant-aws/issues/371","labels_url":"https://api.github.com/repos/mitchellh/vagrant-aws/issues/371/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/vagrant-aws/issues/371/comments","events_url":"https://api.github.com/repos/mitchellh/vagrant-aws/issues/371/events","html_url":"https://github.com/mitchellh/vagrant-aws/issues/371","id":60344219,"number":371,"title":"subnet_map inside vpc","user":{"login":"runningman84","id":1699128,"avatar_url":"https://avatars.githubusercontent.com/u/1699128?v=3","gravatar_id":"","url":"https://api.github.com/users/runningman84","html_url":"https://github.com/runningman84","followers_url":"https://api.github.com/users/runningman84/followers","following_url":"https://api.github.com/users/runningman84/following{/other_user}","gists_url":"https://api.github.com/users/runningman84/gists{/gist_id}","starred_url":"https://api.github.com/users/runningman84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runningman84/subscriptions","organizations_url":"https://api.github.com/users/runningman84/orgs","repos_url":"https://api.github.com/users/runningman84/repos","events_url":"https://api.github.com/users/runningman84/events{/privacy}","received_events_url":"https://api.github.com/users/runningman84/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-09T13:41:30Z","updated_at":"2015-03-09T13:41:30Z","closed_at":null,"body":"I would like to launch instances in multiple subnets (av zones).\r\n\r\nSo I use a config like this:\r\n```\r\naws.availability_zone = \"eu-west-1#{('a'..'c').to_a.shuffle[0,1].join}\"\r\n```\r\n\r\nThis works fine in classic ec2. But in vpc you have to define a subnet id which maps to an av zone.\r\n\r\nPlease add a subnet_map feature like this\r\n```\r\n    aws.subnet_map = { \"eu-west-1a\" => \"subnet-4ae75221\",\r\n                   \"eu-west-2b\" => \"subnet-94e451ff\",\r\n                   \"eu-west-3c\" => \"subnet-a6a440cd\"\r\n    }\r\n```"}}