@serverless/aws-sdk-extra
Advanced tools
Comparing version 1.1.0-beta.0 to 1.1.0-beta.1
{ | ||
"name": "@serverless/aws-sdk-extra", | ||
"version": "1.1.0-beta.0", | ||
"version": "1.1.0-beta.1", | ||
"description": "The AWS SDK that includes with a handful of extra convenience methods.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -6,2 +6,3 @@ const AWS = require('aws-sdk') | ||
{ | ||
region = null, | ||
stackName = null, | ||
@@ -15,5 +16,10 @@ nextToken = null, | ||
} | ||
if (!config.region && !region) { | ||
throw new Error(`Either config.region must be set or the 'region' parameter must be submitted`) | ||
} | ||
config.region = config.region || region | ||
// Fetch stacks | ||
const cloudformation = new AWS.CloudFormation({ region }) | ||
const cloudformation = new AWS.CloudFormation(config) | ||
@@ -20,0 +26,0 @@ const params = { |
@@ -30,7 +30,7 @@ const AWS = require('aws-sdk') | ||
const stacks = await listAll() | ||
const allRegionalStacks = await listAll() | ||
return stacks | ||
return allRegionalStacks | ||
} | ||
module.exports = listAllCloudFormationStacksInAllRegions |
@@ -16,2 +16,5 @@ const AWS = require('aws-sdk') | ||
// Override region configuration | ||
config.region = region | ||
// Default to Stacks with an Active state, defined by these status values | ||
@@ -27,3 +30,3 @@ stackStatusFilter = stackStatusFilter || [ | ||
// Fetch stacks | ||
const cloudformation = new AWS.CloudFormation({ region }) | ||
const cloudformation = new AWS.CloudFormation(config) | ||
@@ -30,0 +33,0 @@ const params = { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
108081
3046