{"action":"created","issue":{"url":"https://api.github.com/repos/awslabs/aws-cdk/issues/1460","repository_url":"https://api.github.com/repos/awslabs/aws-cdk","labels_url":"https://api.github.com/repos/awslabs/aws-cdk/issues/1460/labels{/name}","comments_url":"https://api.github.com/repos/awslabs/aws-cdk/issues/1460/comments","events_url":"https://api.github.com/repos/awslabs/aws-cdk/issues/1460/events","html_url":"https://github.com/awslabs/aws-cdk/issues/1460","id":395069266,"node_id":"MDU6SXNzdWUzOTUwNjkyNjY=","number":1460,"title":"VpcNetwork - maxAZs default value exceeds default EIP limit","user":{"login":"shimzim","id":7456753,"node_id":"MDQ6VXNlcjc0NTY3NTM=","avatar_url":"https://avatars3.githubusercontent.com/u/7456753?v=4","gravatar_id":"","url":"https://api.github.com/users/shimzim","html_url":"https://github.com/shimzim","followers_url":"https://api.github.com/users/shimzim/followers","following_url":"https://api.github.com/users/shimzim/following{/other_user}","gists_url":"https://api.github.com/users/shimzim/gists{/gist_id}","starred_url":"https://api.github.com/users/shimzim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimzim/subscriptions","organizations_url":"https://api.github.com/users/shimzim/orgs","repos_url":"https://api.github.com/users/shimzim/repos","events_url":"https://api.github.com/users/shimzim/events{/privacy}","received_events_url":"https://api.github.com/users/shimzim/received_events","type":"User","site_admin":false},"labels":[{"id":1119762041,"node_id":"MDU6TGFiZWwxMTE5NzYyMDQx","url":"https://api.github.com/repos/awslabs/aws-cdk/labels/ec2","name":"ec2","color":"ff5500","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2019-01-01T09:39:24Z","updated_at":"2019-01-02T09:56:08Z","closed_at":null,"author_association":"NONE","body":"When synthesizing a VpcNetwork construct with default values, it creates a NAT with an EIP per-AZ. Some regions (such as us-east-1) have 6 AZs, while the default EIP limit is 5.\r\n\r\nThis can be addressed in various ways:\r\n- Reduce the maxAZs default to 3.\r\n- Allow a setting of \"unlimited\" for maxAZs\r\n- Add specific examples with maxAZs here: https://awslabs.github.io/aws-cdk/refs/_aws-cdk_aws-ec2.html\r\n\r\nOr other solutions :)\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/awslabs/aws-cdk/issues/comments/450823395","html_url":"https://github.com/awslabs/aws-cdk/issues/1460#issuecomment-450823395","issue_url":"https://api.github.com/repos/awslabs/aws-cdk/issues/1460","id":450823395,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDgyMzM5NQ==","user":{"login":"rix0rrr","id":524162,"node_id":"MDQ6VXNlcjUyNDE2Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/524162?v=4","gravatar_id":"","url":"https://api.github.com/users/rix0rrr","html_url":"https://github.com/rix0rrr","followers_url":"https://api.github.com/users/rix0rrr/followers","following_url":"https://api.github.com/users/rix0rrr/following{/other_user}","gists_url":"https://api.github.com/users/rix0rrr/gists{/gist_id}","starred_url":"https://api.github.com/users/rix0rrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rix0rrr/subscriptions","organizations_url":"https://api.github.com/users/rix0rrr/orgs","repos_url":"https://api.github.com/users/rix0rrr/repos","events_url":"https://api.github.com/users/rix0rrr/events{/privacy}","received_events_url":"https://api.github.com/users/rix0rrr/received_events","type":"User","site_admin":false},"created_at":"2019-01-02T09:56:08Z","updated_at":"2019-01-02T09:56:08Z","author_association":"CONTRIBUTOR","body":"> Which AZs do you pick?\r\n\r\nI think the easiest and not-incorrect answer is \"the first three\". I'm not sure that I agree it's \"not right\"; this is exactly why EC2 does implicit AZ shuffling, so that you can just pick the first three. Anything else would only be required if you plan to create 2 VPCs in the same account, which I don't suppose is going to be a common use case.\r\n\r\n> It'd be nice to have the option to use NAT instances instead of Gateways\r\n\r\nFeature requested here previously: https://github.com/awslabs/aws-cdk/issues/1305\r\n\r\n> If there's some way to do that as a global thing within the stack's context then we could make it not break by checking the context of how many AZs are currently there\r\n\r\nGood point; if your stack has already been deployed and you've checked in the `cdk.json`, this is actually already done; the list of AZs will have been stored in there, so it actually won't break existing deployments."}}
{"actor":{"display_login":"rix0rrr"}}