Skip to content
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.

Check for supported serverless version #15

Merged
merged 6 commits into from Jun 16, 2017
Merged

Conversation

sbstjn
Copy link
Contributor

@sbstjn sbstjn commented Jun 16, 2017

The plugin only works for serverless versions larger or equal 1.13.2 (See #14) and we should check the used serverless version when the plugin is initialized.

With this PR we show a warning when an outdated serverless version is used:

Serverless: Skipping `serverless-dynamodb-ttl` plugin. Please update to serverless `1.13.2` or newer

DynamoDB TTL settings are included in aws-sdk since version 2.21.

serverless 1.15.3
 => aws-sdk 2.71.0
 
serverless 1.13.2
 => aws-sdk 2.50.0
 
serverless 1.13.0
 => aws-sdk 2.7.13

Copy link
Contributor

@HenrikFricke HenrikFricke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙆

@sbstjn sbstjn merged commit 3c72ec2 into master Jun 16, 2017
@sbstjn sbstjn deleted the check-serverless-version branch June 16, 2017 12:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants