You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a data source returns a set result, it would be most useful to be able to access the result in some selective manner.
Example below, from the AMI I want to read the device_name in order to customise the root device size, but the *.block_device_mappings is a set, so I cannot do so.
The set cannot be indexed, or selected, so we have no way to filter out or access the value of device_name of the root device.
In this case, I would eg select the element in which ebs is not "{}" - or a synonym element with .root attribute would be handy.
eg
when
output "volume_mappings" {
value = "${local.ami_type.*.block_device_mappings}"
}
Thanks for the submission @MikeWhittakerRyff. While we aren't planning on working on this is the near term, it would be a valuable addition to Terraform.
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
locked as resolved and limited conversation to collaborators
Nov 26, 2020
# for freeto subscribe to this conversation on GitHub.
Already have an account?
#.
When a data source returns a set result, it would be most useful to be able to access the result in some selective manner.
Example below, from the AMI I want to read the device_name in order to customise the root device size, but the *.block_device_mappings is a set, so I cannot do so.
The set cannot be indexed, or selected, so we have no way to filter out or access the value of device_name of the root device.
In this case, I would eg select the element in which ebs is not "{}" - or a synonym element with .root attribute would be handy.
eg
when
returns
The text was updated successfully, but these errors were encountered: