sonodar/aws-ssm-env-ruby

can't modify frozen Hash

khouse opened this issue · 1 comments

Hello!

we've hit an issue starting today with this gem, shown below:

  2) AwsSsmEnv Integration test path fetcher when recursive is false set environment variables from EC2 Parameter Store parameters
     Failure/Error: client.get_parameters_by_path(params)

     FrozenError:
       can't modify frozen Hash

(This was a run of me trying to reproduce the error we're seeing with existing integration tests.)

The error we're seeing replicates this one, where calling AwsSsmEnv.load! returns this error

Code snippet of our usage below:

      AwsSsmEnv.load!(
        path: "/default/#{environment}",
        recursive: true,
        ssm_client_args: {
          region: 'us-east-1'
        }
      )

We are running on ruby 2.5.8p224

It looks like the aws-sdk-core release yesterday broke it, I tested with the previous version locally and don't see the error: https://rubygems.org/gems/aws-sdk-core/versions/3.104.0