1.2.0 breaks serverless interpolation
See original GitHub issueHi there,
I love your plugin and I use it for my current pet project. I guess something has broken in the last version. This works in 1.1.5
custom:
dotenv:
path: .${self:provider.stage}.env
It will load stage specific files like .dev.env
.
In 1.2.0
it can’t find the file anymore. envPath is just .${self:provider.stage}.env
. I think this related to change when the plugin loads the env file.
Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:8
Top Results From Across the Web
Enable serverless variables on keys as well #2892 - GitHub
I faced it when tried to set the next policy in serverless.yml: ... identity pool rolemappings without key interpolation in serverless.yml?
Read more >Variables - Serverless Framework
The Serverless framework gives you an intuitive way to reference multiple variables as a fallback strategy in case one of the variables is...
Read more >Homepage - AWS Lambda Powertools for TypeScript
A suite of utilities for AWS Lambda functions running on the Node.js runtime, to ease adopting best practices such as tracing, structured ...
Read more >Terraform AWS Provider Version 4 Upgrade Guide
8.0 of the AWS Provider introduce significant breaking changes to the aws_s3_bucket resource. See S3 Bucket Refactor for more details. We recommend upgrading...
Read more >Changelog - Prefect Docs
1.2.0 beta ... Fix the broken URL displayed in entrypoint.sh - #5490 ... Fix interpolation of config for dev services CLI for Apollo...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah it turns out that I accidentally introduced a breaking change. There’s an issue where I couldn’t do variable interpolation on the provider section like when you want to use an env var for setting the region. The fix for that introduced a chicken and egg problem that I need to fix.
On Tue, Aug 7, 2018 at 2:54 PM Benjamin Otto notifications@github.com wrote:
Dont know 😕 At a first glance I thought
--env
is an alias to setNODE_ENV
and I skipped the rest of the docs. But its mentioned quite well that--env
should be used if you cant setNODE_ENV
. So this should be fine 🤔