-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Change in return type of state method of Aws::EC2::Instance #2812
Comments
aws-sdk-resources 2.11.363 is from 2019. Are you saying you updated to that version recently and saw the change in type? Or the type changed in the same version? |
We have not done any updation recently and using this version since 2019. We saw change on response without doing any version change |
That's odd. Did your Jmespath gem version change by chance? |
Yes, that was changed to 1.6.1 from 1.4.0 recently |
I can confirm with the latest V3 version and JMESPath that this is not an issue.
The issue was introduced in jmespath 1.5.0 only for Ruby SDK V2 - related comment: jmespath/jmespath.rb#51 (comment). We had previously confirmed that V3 and jmespath are backwards compatible after the change. V2 is deprecated even before we made this change to jmespath. We do not release new versions of v2. I think you should pin your jmespath version to 1.4.0, or upgrade to V3 of the SDK. V2 to V3 upgrade is mostly backwards compatible and can in most cases be done by changing dependencies and a few config options. |
|
Thank you for the detailed explanation. |
Describe the bug
There has been a sudden change in
Aws::EC2::Instance.new('instance_id').state
. Doc, as well as the previous response to the API call, was theAws::EC2::Types::InstanceState
format and suddenly it is giving aHash
response.Expected Behavior
Current Behavior
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version
gem 'aws-sdk-resources', '2.11.363'
Environment details (Version of Ruby, OS environment)
ruby 2.6.3p62
Rails 6.0.5
macOS 13.0.1
The text was updated successfully, but these errors were encountered: