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

Get-CFResourceTag's output only shows Keys #29

matteo-prosperi opened this issue Jul 17, 2019 · 0 comments


Copy link

commented Jul 17, 2019

Because of the double level of incapsulation in Amazon.CloudFront.Model.ListTagsForResourceResponse, Get-CFResourceTag's output only shows Keys.

Possible Solution
Implement a custom formatter for Amazon.CloudFront.Model.ListTagsForResourceResponse

Steps to Reproduce (for bugs)
Invoke Get-CFResourceTag or

$tags = [Amazon.CloudFront.Model.Tags] @{}
$tags.Items.Add( [Amazon.CloudFront.Model.Tag] @{Key = 'k1'; Value = 'v1'} )
$tags.Items.Add( [Amazon.CloudFront.Model.Tag] @{Key = 'k2'; Value = 'v2'} )

Expected Behavior

Key Value
--- -----
k1  v1
k2  v2

Current Behavior

{k1, k2}

A workaround is available:

(Get-CFResourceTag ...).Items


Get-CFResourceTag ... |  Select-Object -ExpandProperty Items

show the expected list with both keys and values

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.