-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
ram: could not get pending status ram resource shares #8951
Comments
Thanks for reaching out. The get-resource-shares command calls the underlying GetResourceShares API, so these results are coming from the AWS RAM API. When I tried creating a resource share, it almost immediately would go into Are you trying to list pending invitation resources? Because in that case you'd want to use the list-pending-invitation-resources command. Otherwise could you tell us more about your use case? Also version 2.9.13 is very old — the latest version is 2.17.60 per the CHANGELOG. Can you update to a more recent version in order to access the latest changes/fixes? |
HI @tim-finnigan , thanks for your quickly response. "Otherwise could you tell us more about your use case?" The usage scenario was under IAC, see as follows on pulumi/terraform. https://www.pulumi.com/registry/packages/aws/api-docs/ram/getresourceshare/ https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ram_resource_share And what I mean is the actual behavior is inconsistent with documentation, since the manual supports all Valid Values: PENDING | ACTIVE | FAILED | DELETING | DELETED |
Thanks for following up. When testing this, the behavior I observed is that the resource share almost immediately went into an active state, so it wouldn't be in |
HI @tim-finnigan , I think the accept should be accepted by manual. See attached. but {
"resourceShares": []
}
|
Thanks for following up — can you share your debug logs when running this command? You can get these by adding |
Describe the bug
aws ram get-resource-shares --resource-owner OTHER-ACCOUNTS
could not get PENDING status ram share resources, just shows up ACTIVE status
Even explicitly specifying PENDING status with:
aws ram get-resource-shares --resource-owner OTHER-ACCOUNTS --resource-share-status PENDING
{ "resourceShares": [] }
And after I accepted the pending status ram share resource on console, it will shows up since the status of ram share resource is ACTIVE.
Regression Issue
Expected Behavior
show all status share resources on the ram:get-resource-shares api.
Current Behavior
Only show "ACTIVE" resources, or FAILED? not all resources.
Reproduction Steps
create ram share resources, but not accept on the target account.
Possible Solution
No response
Additional Information/Context
No response
CLI version used
aws-cli/2.9.13 Python/3.9.11
Environment details (OS name and version, etc.)
Darwin/23.1.0 exe/x86_64 prompt/off
The text was updated successfully, but these errors were encountered: