Add attributes to the aws_ec2_instance_type data source #40717
+245
−11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Added the following attributes to the
aws_ec2_instance_type
data source to bring it up-to-date with the EC2 API. I tried to follow the data source's established conventions with respect to nullability, naming, and flattening attributes that are nested in the AWS API. One thing I'm not clear on is which type to use for attributes that are collections of strings. I went with sets instead of lists because ordering doesn't make sense nor is it explicitly guaranteed by the AWS API. Existing attributes tended be lists. I can change them to lists if consistency is more important.As I was updating the documentation, I adjusted some of the descriptions of existing attributes to clarify their data types and/or their expected values. My intent is to reduce the need to cross-reference the data source's documentation with the AWS API documentation in order to understand the attribute values.
bandwidth_weightings
boot_modes
default_network_card_index
efa_maximum_interfaces
inference_accelerators.#.memory_size
media_accelerators.#.count
media_accelerators.#.manufacturer
media_accelerators.#.memory_size
media_accelerators.#.name
network_cards.#.baseline_bandwidth
network_cards.#.index
network_cards.#.maximum_interfaces
network_cards.#.performance
network_cards.#.peak_bandwidth
neuron_devices.#.core_count
neuron_devices.#.count
neuron_devices.#.memory_size
neuron_devices.#.name
neuron_devices.#.version
nitro_enclaves_support
nitro_tpm_support
nitro_tpm_supported_versions
phc_support
srd_supported
supported_cpu_features
total_inference_memory
total_media_memory
total_neuron_device_memory
Relations
Closes #35640
References
AWS CLI documentation for the
describe-instance-type
commandAWS EC2 API documentation for the
DescribeInstanceTypes
actionOutput from Acceptance Testing