Added require 'json' to ensure no failure when calling using AWS.config.credentials