UNPKG

aws-sdk

Version:
13 lines (10 loc) 421 B
var ENV_ENDPOINT_NAME = 'AWS_EC2_METADATA_SERVICE_ENDPOINT'; var CONFIG_ENDPOINT_NAME = 'ec2_metadata_service_endpoint'; var getEndpointConfigOptions = function() { return { environmentVariableSelector: function(env) { return env[ENV_ENDPOINT_NAME]; }, configFileSelector: function(profile) { return profile[CONFIG_ENDPOINT_NAME]; }, default: undefined, }; }; module.exports = getEndpointConfigOptions;