I am sure others have had to solve this before but I am but I don’t seem to be able to find the answer. I have a project that I have been using serverless to deploy to multiple environments to aws for several years now. This week got a new laptop, and I now that I got my project building on the new machine I need to deploy it to aws over the top of my existing deployment from my new machine. I tried to just do a
serverless deploy --stage test --region us-east-1
but when I do this I get an error:
Stack foo-test failed to deploy
CREATE_FAILED: fooRole (AWS::IAM::Role)
foo_test_role already exists in stack arn:aws:cloudformation:us-east-1:123456789:stack/foo-test/89d87020-dead-beef-dead-12989ba5c57e
There must be a way to “indicate” that my deploy is taking over an existing project. How do I do this?