Shift to using AWS.config(:credential_provider => AWS::Core::CredentialProviders::EC2Provider.new)