You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had an issue with existing Bucket Policy when creating a new deployment, i used bref.sh and @mnapoli mentioned i should probably create an issue directly here, so maybe there is something which could be improved in order to avoid that problem in future, or to get more insights why this happens to have a better understanding. Thanks anyhow for the great plugin!
Today we have tried to deploy a production application --stage prod from a site we deploy successful since weeks using serverless deploy --stage dev. So as mentioned we wanted to deploy the production env for the first time, and now the serverless commands ends up with: Resource handler returned message: "Bucket Policy Already Exists" (RequestToken: 1fea716b-3cf5-0165-7c69-aa25a60bfe5c, HandlerErrorCode: AlreadyExists)
There must be something have changed with the lift plugin or s3 policy, because if a temporary remove the lift constructs annotation, it works. So it must be the lift part of the serverless.yml which makes the problem.
We also have then deleted the dev environment in order to test whether we can recreate this stage or not, but we were not able to setup the dev environment too.
How to Reproduce
service: foobarparams:
prod:
env: proddebug: 0dev:
env: testdebug: 1provider:
name: awsregion: eu-central-1stage: devenvironment:
YII_ENV: ${param:env}YII_DEBUG: ${param:debug}plugins:
- ./vendor/bref/bref
- serverless-liftfunctions:
website:
handler: web/index.phpdescription: 'FOOBAR Main Thread'runtime: php-82-fpmtimeout: 28# in seconds (API Gateway has a timeout of 29 seconds)events:
- httpApi: '*'constructs:
website:
type: server-side-websiteassets:
'/resources/*': web/resources'/static/*': web/static# Exclude files from deploymentpackage:
patterns:
- '!node_modules/**'
- '!tests/**'
- '!.tmp/**'
I saw there is an issue regarding this, but it seems to be old, and i tested with the proved option, but did not work as well => serverless/serverless#6923 (comment)
Description
I had an issue with existing Bucket Policy when creating a new deployment, i used bref.sh and @mnapoli mentioned i should probably create an issue directly here, so maybe there is something which could be improved in order to avoid that problem in future, or to get more insights why this happens to have a better understanding. Thanks anyhow for the great plugin!
Today we have tried to deploy a production application
--stage prod
from a site we deploy successful since weeks usingserverless deploy --stage dev
. So as mentioned we wanted to deploy the production env for the first time, and now the serverless commands ends up with: Resource handler returned message: "Bucket Policy Already Exists" (RequestToken: 1fea716b-3cf5-0165-7c69-aa25a60bfe5c, HandlerErrorCode: AlreadyExists)There must be something have changed with the lift plugin or s3 policy, because if a temporary remove the lift
constructs
annotation, it works. So it must be the lift part of the serverless.yml which makes the problem.We also have then deleted the dev environment in order to test whether we can recreate this stage or not, but we were not able to setup the dev environment too.
How to Reproduce
I saw there is an issue regarding this, but it seems to be old, and i tested with the proved option, but did not work as well => serverless/serverless#6923 (comment)
Additional Information
This is the original issue and reply from @mnapoli => brefphp/bref#1620
The text was updated successfully, but these errors were encountered: