{"action":"created","issue":{"url":"https://api.github.com/repos/remind101/stacker/issues/80","labels_url":"https://api.github.com/repos/remind101/stacker/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/remind101/stacker/issues/80/comments","events_url":"https://api.github.com/repos/remind101/stacker/issues/80/events","html_url":"https://github.com/remind101/stacker/issues/80","id":101493860,"number":80,"title":"Supporting eu-west-1 in the empire build","user":{"login":"gileze33","id":2505265,"avatar_url":"https://avatars.githubusercontent.com/u/2505265?v=3","gravatar_id":"","url":"https://api.github.com/users/gileze33","html_url":"https://github.com/gileze33","followers_url":"https://api.github.com/users/gileze33/followers","following_url":"https://api.github.com/users/gileze33/following{/other_user}","gists_url":"https://api.github.com/users/gileze33/gists{/gist_id}","starred_url":"https://api.github.com/users/gileze33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gileze33/subscriptions","organizations_url":"https://api.github.com/users/gileze33/orgs","repos_url":"https://api.github.com/users/gileze33/repos","events_url":"https://api.github.com/users/gileze33/events{/privacy}","received_events_url":"https://api.github.com/users/gileze33/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-17T19:33:15Z","updated_at":"2015-11-10T18:51:56Z","closed_at":null,"body":"I've done the work locally to support eu-west-1 for the stacker empire build but that involved reducing the number of AZs from 4 to 3 (as eu-west-1 only has 3). \r\n\r\nI'd like to give the updates back to you, but is there a way to add conditional logic into the conf/empire/empire.yaml file to allow 4 everywhere but in eu-west-1?"},"comment":{"url":"https://api.github.com/repos/remind101/stacker/issues/comments/155529378","html_url":"https://github.com/remind101/stacker/issues/80#issuecomment-155529378","issue_url":"https://api.github.com/repos/remind101/stacker/issues/80","id":155529378,"user":{"login":"gileze33","id":2505265,"avatar_url":"https://avatars.githubusercontent.com/u/2505265?v=3","gravatar_id":"","url":"https://api.github.com/users/gileze33","html_url":"https://github.com/gileze33","followers_url":"https://api.github.com/users/gileze33/followers","following_url":"https://api.github.com/users/gileze33/following{/other_user}","gists_url":"https://api.github.com/users/gileze33/gists{/gist_id}","starred_url":"https://api.github.com/users/gileze33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gileze33/subscriptions","organizations_url":"https://api.github.com/users/gileze33/orgs","repos_url":"https://api.github.com/users/gileze33/repos","events_url":"https://api.github.com/users/gileze33/events{/privacy}","received_events_url":"https://api.github.com/users/gileze33/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T18:51:56Z","updated_at":"2015-11-10T18:51:56Z","body":"Here's the diff from my changes:\r\n\r\ndiff --git a/conf/empire/empire.yaml b/conf/empire/empire.yaml\r\nindex b958381..65d133a 100644\r\n--- a/conf/empire/empire.yaml\r\n+++ b/conf/empire/empire.yaml\r\n@@ -48,6 +48,10 @@ mappings:\r\n       NAT: ami-2dae821d\r\n       ubuntu1404: ami-f15b5dc1\r\n       empire: ami-85ede7b5\r\n+    eu-west-1: \r\n+      NAT: ami-ef76e898\r\n+      ubuntu1404: ami-47a23a30\r\n+      empire: ami-984c13ef\r\n \r\n # Many stacks need these settings, or a subset of them, from the VPC -\r\n # this makes it easy to pass them around. Stacker will drop unused Parameters\r\n@@ -76,10 +80,10 @@ stacks:\r\n       #       Also you need at least 2 AZs in order to use the DB because\r\n       #       of the fact that the DB blueprint uses MultiAZ\r\n       # Note: You will create a NAT instance PER Availability zone.\r\n-      AZCount: 4\r\n+      AZCount: 3\r\n       # Enough subnets for 4 AZs\r\n-      PublicSubnets: 10.128.0.0/24,10.128.1.0/24,10.128.2.0/24,10.128.3.0/24\r\n-      PrivateSubnets: 10.128.8.0/22,10.128.12.0/22,10.128.16.0/22,10.128.20.0/22\r\n+      PublicSubnets: 10.128.0.0/24,10.128.1.0/24,10.128.2.0/24\r\n+      PrivateSubnets: 10.128.8.0/22,10.128.12.0/22,10.128.16.0/22\r\n       # InstanceType used for NAT instances\r\n       InstanceType: ${nat_instance_type}\r\n       SshKeyName: ${ssh_key_name}"}}