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

make deployment idempotent #54

Description

@contrun

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions