Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

serverless-plugin-additional-stacks

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-plugin-additional-stacks - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

27

index.js

@@ -64,2 +64,8 @@ 'use strict'

},
options: {
'skip-additionalstacks': {
usage: 'Skip deploying additional stacks',
required: false,
},
},
},

@@ -123,2 +129,4 @@ remove: {

beforeDeployGlobal() {
if (this.options['skip-additionalstacks'])
return
const stacks = this.getAdditionalBeforeStacks()

@@ -134,2 +142,4 @@ if (Object.keys(stacks).length > 0) {

afterDeployGlobal() {
if (this.options['skip-additionalstacks'])
return
const stacks = this.getAdditionalAfterStacks()

@@ -144,2 +154,4 @@ if (Object.keys(stacks).length > 0) {

afterInfoGlobal() {
if (this.options['skip-additionalstacks'])
return
const stacks = this.getAdditionalStacks()

@@ -247,2 +259,5 @@ if (Object.keys(stacks).length > 0) {

// Stack deploy parameters (optional)
const deployParameters = stack.DeployParameters || []
return this.describeStack(fullStackName)

@@ -252,6 +267,6 @@ .then(stackStatus => {

// Create stack
return this.createStack(stackName, fullStackName, compiledCloudFormationTemplate, stackTags)
return this.createStack(stackName, fullStackName, compiledCloudFormationTemplate, stackTags, deployParameters)
} else {
// Update stack
return this.updateStack(stackName, fullStackName, compiledCloudFormationTemplate, stackTags)
return this.updateStack(stackName, fullStackName, compiledCloudFormationTemplate, stackTags, deployParameters)
}

@@ -308,3 +323,3 @@ })

createStack(stackName, fullStackName, compiledCloudFormationTemplate, stackTags) {
createStack(stackName, fullStackName, compiledCloudFormationTemplate, stackTags, deployParameters) {
// These are the same parameters that Serverless uses in https://github.com/serverless/serverless/blob/master/lib/plugins/aws/deploy/lib/createStack.js

@@ -318,3 +333,3 @@ const params = {

],
Parameters: [],
Parameters: deployParameters || [],
TemplateBody: JSON.stringify(compiledCloudFormationTemplate),

@@ -337,3 +352,3 @@ Tags: Object.keys(stackTags).map((key) => ({ Key: key, Value: stackTags[key] })),

updateStack(stackName, fullStackName, compiledCloudFormationTemplate, stackTags) {
updateStack(stackName, fullStackName, compiledCloudFormationTemplate, stackTags, deployParameters) {
// These are the same parameters that Serverless uses in https://github.com/serverless/serverless/blob/master/lib/plugins/aws/lib/updateStack.js

@@ -346,3 +361,3 @@ const params = {

],
Parameters: [],
Parameters: deployParameters || [],
TemplateBody: JSON.stringify(compiledCloudFormationTemplate),

@@ -349,0 +364,0 @@ Tags: Object.keys(stackTags).map((key) => ({ Key: key, Value: stackTags[key] })),

{
"name": "serverless-plugin-additional-stacks",
"version": "1.1.0",
"version": "1.2.0",
"main": "index.js",

@@ -5,0 +5,0 @@ "repository": {},

# Additional Stacks Plugin for Serverless 1.x
Created by Kenneth Falck <<kennu@sc5.io>> in 2017.
Copyright [SC5 Online](https://sc5.io). Released under the MIT license.
Created by Kenneth Falck <<kennu@nordcloud.com>>.
Copyright [Nordcloud Solutions](https://nordcloud.com) 2017-2018. Released under the MIT license.

@@ -64,3 +64,3 @@ ![Build Status](https://codebuilder.sc5.io/badge/serverless-plugin-additional-stacks?1)

Properties:
Name: ${self:service}-data
BucketName: ${self:service}-data
```

@@ -85,2 +85,3 @@

Deploy: After
DeployParameters: []
StackName: CustomName

@@ -100,2 +101,17 @@ Resources: ...

#### DeployParameters: [...]
By default, stacks are deployed with empty parameters ([]). You can use
`DeployParameters: [...]` to specify parameters as an array with the same syntax
that the AWS SDK createStack() and updateStack() functions use. It looks like
this in YAML:
```yml
DeployParameters:
- ParameterKey: param1
ParameterValue: value1
- ParameterKey: param2
ParameterValue: value2
```
#### StackName: CustomName

@@ -122,2 +138,6 @@

To only deploy the Serverless service without deploying additional stacks, you can use:
sls deploy --skip-additionalstacks
If you want to remove an additional stack, you need to run:

@@ -124,0 +144,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc