aws-ssm-env-ruby icon indicating copy to clipboard operation
aws-ssm-env-ruby copied to clipboard

can't modify frozen Hash

Open khouse opened this issue 4 years ago • 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

khouse avatar Jul 16 '20 11:07 khouse

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

khouse avatar Jul 16 '20 12:07 khouse