Closed deny-7 closed 1 year ago
This PR has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this PR will be closed in 10 days
This PR is included in version 5.4.0 :tada:
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. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
Added
availability_zone
output. Theavailability_zone
of the created instance is useful information to use outside of the module.Motivation and Context
When creating multiple EC2 instances in multiple AZs, in most cases, we would like to have the EBS volume in the same AZ as the created EC2. As a trick we can use
data.aws_instance
with loop or a map of AZs andrandom_suffle
, but it does not look nice. In my opinion havingavailability_zone
output would get out of tricks and make the code cleaner and easier to read.This PR resolves #341 and #264
Breaking Changes
None
How Has This Been Tested?
examples/*
to demonstrate and validate my change(s)examples/*
projects Deployedvolume-attachment
example:pre-commit run -a
on my pull request