You don't need to set both ec2 and client.  You can get away with just doing this:

```ruby
ec2 = AWS::EC2.new(region: EMR_REGION).client
```

Then change your "client." calls to "ec2."