Comments (4)
Is it fixed yet ?
from serverless-deployment-bucket.
@mayurdanger no it is not, it happened to me today with the latest version. I could even see the two "Creating deployment bucket..." lines in the log.
from serverless-deployment-bucket.
@mikesouza any idea why the plugin uses the validate event to create the deployment bucket?
Subscribing to before:deploy:deploy removes the need for the if-check (the event is called right before deploy, not during package) here: https://github.com/MikeSouza/serverless-deployment-bucket/blob/f02d14e203128eaae58250b893b7be22b8966a0e/lib/index.js#L38-L40
I can submit a PR if you confirm this would work.
from serverless-deployment-bucket.
@coyoteecd For historical context, originally under Serverless v1, the hook before:package:setupProviderConfiguration
and then later before:aws:common:validate:validate
was used because before:deploy:deploy
would not work for a serverless deploy
:
Serverless: command = deploy, options = {}
IN: before:package:cleanup
IN: before:aws:common:validate:validate
IN: after:aws:common:validate:validate
IN: before:aws:common:cleanupTempDir:cleanup
IN: after:aws:common:cleanupTempDir:cleanup
IN: after:package:cleanup
IN: before:package:initialize
IN: after:package:initialize
IN: before:package:setupProviderConfiguration
IN: after:package:setupProviderConfiguration
IN: before:package:createDeploymentArtifacts
Serverless: Packaging service...
IN: after:package:createDeploymentArtifacts
IN: before:package:compileLayers
IN: after:package:compileLayers
IN: before:package:compileFunctions
IN: after:package:compileFunctions
IN: before:package:compileEvents
IN: after:package:compileEvents
IN: before:package:finalize
IN: before:aws:package:finalize:mergeCustomProviderResources
IN: after:aws:package:finalize:mergeCustomProviderResources
IN: before:aws:package:finalize:saveServiceState
IN: before:aws:common:moveArtifactsToPackage:move
IN: after:aws:common:moveArtifactsToPackage:move
IN: after:aws:package:finalize:saveServiceState
IN: after:package:finalize
IN: before:aws:common:validate:validate
IN: after:aws:common:validate:validate
Serverless Error ---------------------------------------
Could not locate deployment bucket. Error: The specified bucket does not exist
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information ---------------------------
Operating System: darwin
Node Version: 12.14.1
Framework Version: 1.83.3 (local)
Plugin Version: 3.8.4
SDK Version: 2.3.2
Components Version: 2.34.9
However, after some preliminary investigation, sometime in v2 it looks like the lifecycle hooks were changed or fixed so that the hook before:deploy:deploy
should work now. I'll investigate further.
This is related to #68 which I created after looking into the work required for #60.
from serverless-deployment-bucket.
Related Issues (20)
- Failure for tag deployment when first creating the bucket HOT 1
- Tagging bucket does not do anything HOT 2
- Can I extend this to provide a toggle to enable S3 bucket logging? HOT 2
- Cannot deploy from printed serverless.yaml
- cannot get blockPublicAccess to work HOT 7
- Update to support custom KMS Keys HOT 1
- Prevent changes to existing bucket HOT 1
- 1.5.0 Causing Failures HOT 2
- Cannot add tags to existing deployment bucket HOT 4
- Serverless Framework v3: integrating with the new design HOT 6
- Outputs logging twice in certain scenarios
- Why can not connect aws s3 with deployment bucket.
- Tags should support same format as provider.tags
- Question: what is the relation between this plugin and the built-in deploymentBucket configuration?
- blockPublicAccess does not work for some regions
- serverSideEncryption not updated on already created bucket
- Block public access config should honor provider/deploymentBucket/blockPublicAccess or custom/deploymentBucket/blockPublicAccess
- kmsKeyID is not recognized and fails deployment when configValidationMode is set to error
- Kms key is not applicable
- Bucket is not deleted when running "sls remove"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-deployment-bucket.