-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
r/aws_ec2_availability_zone_group: Prevent crash on unknown group name #24422
Conversation
…: true'. Acceptance test output: % make testacc TESTS=TestAccEC2AvailabilityZoneGroup_ PKG=ec2 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 20 -run='TestAccEC2AvailabilityZoneGroup_' -timeout 180m === RUN TestAccEC2AvailabilityZoneGroup_optInStatus === PAUSE TestAccEC2AvailabilityZoneGroup_optInStatus === CONT TestAccEC2AvailabilityZoneGroup_optInStatus --- PASS: TestAccEC2AvailabilityZoneGroup_optInStatus (27.42s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 35.482s
Instead of crashing when an unknown AZ group name is configured, an error is reported:
|
Acceptance test output: % make testacc TESTS=TestAccEC2AvailabilityZoneDataSource_ PKG=ec2 ACCTEST_PARALLELISM=2 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 2 -run='TestAccEC2AvailabilityZoneDataSource_' -timeout 180m === RUN TestAccEC2AvailabilityZoneDataSource_allAvailabilityZones === PAUSE TestAccEC2AvailabilityZoneDataSource_allAvailabilityZones === RUN TestAccEC2AvailabilityZoneDataSource_filter === PAUSE TestAccEC2AvailabilityZoneDataSource_filter === RUN TestAccEC2AvailabilityZoneDataSource_localZone === PAUSE TestAccEC2AvailabilityZoneDataSource_localZone === RUN TestAccEC2AvailabilityZoneDataSource_name === PAUSE TestAccEC2AvailabilityZoneDataSource_name === RUN TestAccEC2AvailabilityZoneDataSource_wavelengthZone === PAUSE TestAccEC2AvailabilityZoneDataSource_wavelengthZone === RUN TestAccEC2AvailabilityZoneDataSource_zoneID === PAUSE TestAccEC2AvailabilityZoneDataSource_zoneID === CONT TestAccEC2AvailabilityZoneDataSource_allAvailabilityZones === CONT TestAccEC2AvailabilityZoneDataSource_name --- PASS: TestAccEC2AvailabilityZoneDataSource_allAvailabilityZones (13.86s) === CONT TestAccEC2AvailabilityZoneDataSource_zoneID --- PASS: TestAccEC2AvailabilityZoneDataSource_name (14.48s) === CONT TestAccEC2AvailabilityZoneDataSource_localZone --- PASS: TestAccEC2AvailabilityZoneDataSource_zoneID (10.75s) === CONT TestAccEC2AvailabilityZoneDataSource_wavelengthZone --- PASS: TestAccEC2AvailabilityZoneDataSource_localZone (10.46s) === CONT TestAccEC2AvailabilityZoneDataSource_filter --- PASS: TestAccEC2AvailabilityZoneDataSource_wavelengthZone (10.51s) --- PASS: TestAccEC2AvailabilityZoneDataSource_filter (10.34s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 39.496s
This functionality has been released in v4.12.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. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Closes #24391.
Output from acceptance testing: