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

make deployment idempotent #54

Open
contrun opened this issue May 25, 2019 · 1 comment
Open

make deployment idempotent #54

contrun opened this issue May 25, 2019 · 1 comment

Comments

@contrun
Copy link

contrun commented May 25, 2019

While was deploying this program to aws, I encountered an error as I did not setup sufficient permission. When I deploy the second time, I encountered various deploy error like

 Serverless Error ---------------------------------------

  An error occurred: IamRoleLambdaExecution - bitwarden-serverless-prod-us-east-1-lambdaRole already exists.

and

 Serverless Error ---------------------------------------

  An error occurred: FoldersTable - bitwarden-serverless-prod-folders already exists.

I have to delete the all the tables and roles before continue. Is it possible to check if bitwarden-serverless-prod-folders is empty before directly aborting the deployment? The deployment process should be idempotent.

@vvondra
Copy link
Owner

vvondra commented May 22, 2020

I think this is a limitation of serverless framework itself. Maybe somehow need to configure it better.

I'm happy for any contributions here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants