Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for DescribeAvailabilityZones call #566

Closed
rcostanzo opened this issue Nov 14, 2014 · 5 comments
Closed

Add support for DescribeAvailabilityZones call #566

rcostanzo opened this issue Nov 14, 2014 · 5 comments

Comments

@rcostanzo
Copy link

Availability zones should be dynamically looked up and then referenced as variables vs. having to hard code them. This is available in the goamz library already and we just need the plumbing to expose the DescribeAvailabilityZonesResp object.

@mitchellh
Copy link
Contributor

What are you referring to in this case? i.e. what would we be replacing with this?

@mitchellh mitchellh added the waiting-response An issue/pull request is waiting for a response from the community label Nov 14, 2014
@rcostanzo
Copy link
Author

One example is I'd want to dynamically create subnets in each zone without having to hardcode the region's specific values (which are subject to change over time):

resource "aws_availability_zone" "my_zones" {
}

resource "aws_subnet" "my_subnet" {
  vpc_id = "ABC123"
  availability_zone = "${element(aws_availability_zone.my_zones.*.id, count.index)}"
  cidr_block = "192.168.x.x"
  count = "3"
}

Right now, I accomplish this by hard-coding a lookup in:

variable "zones" {
    default = {
        zone0 = "us-west-2a"
        zone1 = "us-west-2b"
        zone2 = "us-west-2c"
    }
}

Note that my example above depends on the #554 pull request.

@mitchellh
Copy link
Contributor

LGTM. Tagged.

@mitchellh mitchellh added enhancement provider/aws and removed waiting-response An issue/pull request is waiting for a response from the community labels Feb 17, 2015
@phinze
Copy link
Contributor

phinze commented May 12, 2015

Hey there - we're consolidating Requests for AWS API Coverage over in the spreadsheet linked at #28 - head over there to record your username on what you'd like us to prioritize next!

@phinze phinze closed this as completed May 12, 2015
@ghost
Copy link

ghost commented May 2, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators May 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants