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

Initial support for Local Zones #11136

Closed
ewbankkit opened this issue Dec 4, 2019 · 6 comments · Fixed by #12400
Closed

Initial support for Local Zones #11136

ewbankkit opened this issue Dec 4, 2019 · 6 comments · Fixed by #12400
Assignees
Labels
enhancement Requests to existing resources that expand the functionality or scope. new-resource Introduces a new resource. service/ec2 Issues and PRs that pertain to the ec2 service.
Milestone

Comments

@ewbankkit
Copy link
Contributor

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

AWS Local Zones are now available.
Add initial support to the AZ data sources.

New or Affected Resource(s)

Potential Terraform Configuration

data "aws_availability_zones" "available_local" {
  state = "available"

  filter {
    name   = "opt-in-status"
    values = ["opted-in"]
  }
}

References

Announcement.
Blog post.

Requires AWS SDK v1.25.46:

@ewbankkit ewbankkit added the enhancement Requests to existing resources that expand the functionality or scope. label Dec 4, 2019
@ghost ghost added the service/ec2 Issues and PRs that pertain to the ec2 service. label Dec 4, 2019
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Dec 4, 2019
@ewbankkit
Copy link
Contributor Author

@ewbankkit
Copy link
Contributor Author

AWS Local Zones can now be enabled programmatically - announcement.

Requires AWS SDK v1.29.19:

@bflad bflad added new-resource Introduces a new resource. and removed needs-triage Waiting for first response or review from a maintainer. labels Mar 10, 2020
@bflad bflad self-assigned this Mar 13, 2020
bflad added a commit that referenced this issue Mar 15, 2020
Reference: #11136
Reference: #11994

Changes:

* New Resource: `aws_ec2_availability_zone_group`
* data-source/aws_availability_zone: Add `all_availability_zones` and `filter` arguments
* data-source/aws_availability_zone: Add `group_name`, `network_border_group`, and `opt_in_status` attributes
* data-source/aws_availability_zones: Add `all_availability_zones` and `filter` arguments
* data-source/aws_availability_zones: Add `group_names` attribute

```
--- PASS: TestAccDataSourceAwsAvailabilityZone_Filter (17.53s)
--- PASS: TestAccDataSourceAwsAvailabilityZone_ZoneId (17.74s)
--- PASS: TestAccDataSourceAwsAvailabilityZone_AllAvailabilityZones (17.74s)
--- PASS: TestAccDataSourceAwsAvailabilityZone_Name (17.79s)

--- PASS: TestAccAWSAvailabilityZones_Filter (15.46s)
--- PASS: TestAccAWSAvailabilityZones_stateFilter (15.87s)
--- PASS: TestAccAWSAvailabilityZones_basic (16.60s)
--- PASS: TestAccAWSAvailabilityZones_AllAvailabilityZones (16.70s)
--- PASS: TestAccAWSAvailabilityZones_BlacklistedNames (17.00s)
--- PASS: TestAccAWSAvailabilityZones_BlacklistedZoneIds (17.14s)

--- PASS: TestAccAWSEc2AvailabilityZoneGroup_OptInStatus (37.67s)
```
@bflad
Copy link
Contributor

bflad commented Mar 15, 2020

Pull request submitted to cover all the changes here: #12400

@bflad bflad added this to the v2.55.0 milestone Mar 24, 2020
bflad added a commit that referenced this issue Mar 24, 2020
* service/ec2: Initial support for Local Zones

Reference: #11136
Reference: #11994

Changes:

* New Resource: `aws_ec2_availability_zone_group`
* data-source/aws_availability_zone: Add `all_availability_zones` and `filter` arguments
* data-source/aws_availability_zone: Add `group_name`, `network_border_group`, and `opt_in_status` attributes
* data-source/aws_availability_zones: Add `all_availability_zones` and `filter` arguments
* data-source/aws_availability_zones: Add `group_names` attribute

```
--- PASS: TestAccDataSourceAwsAvailabilityZone_Filter (17.53s)
--- PASS: TestAccDataSourceAwsAvailabilityZone_ZoneId (17.74s)
--- PASS: TestAccDataSourceAwsAvailabilityZone_AllAvailabilityZones (17.74s)
--- PASS: TestAccDataSourceAwsAvailabilityZone_Name (17.79s)

--- PASS: TestAccAWSAvailabilityZones_Filter (15.46s)
--- PASS: TestAccAWSAvailabilityZones_stateFilter (15.87s)
--- PASS: TestAccAWSAvailabilityZones_basic (16.60s)
--- PASS: TestAccAWSAvailabilityZones_AllAvailabilityZones (16.70s)
--- PASS: TestAccAWSAvailabilityZones_BlacklistedNames (17.00s)
--- PASS: TestAccAWSAvailabilityZones_BlacklistedZoneIds (17.14s)

--- PASS: TestAccAWSEc2AvailabilityZoneGroup_OptInStatus (37.67s)
```
@bflad
Copy link
Contributor

bflad commented Mar 24, 2020

Support for the following has been merged and will release with version 2.55.0 of the Terraform AWS Provider, later this week.

FEATURES:

  • New Resource: aws_ec2_availability_zone_group

ENHANCEMENTS:

  • data-source/aws_availability_zone: Add all_availability_zones and filter arguments
  • data-source/aws_availability_zone: Add group_name, network_border_group, and opt_in_status attributes
  • data-source/aws_availability_zones: Add all_availability_zones and filter arguments
  • data-source/aws_availability_zones: Add group_names attribute

@ghost
Copy link

ghost commented Mar 27, 2020

This has been released in version 2.55.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Apr 24, 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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. new-resource Introduces a new resource. service/ec2 Issues and PRs that pertain to the ec2 service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants