Hello. I have a setup with AppSync and GraphQL. It...
# help
m
Hello. I have a setup with AppSync and GraphQL. It is deployed to one region but I want to have the same setup in some other region in AWS. When I run the same deploy with towards a new region I get errors about roles that already exists. Any suggestions or guide that could give me some pointers?
f
Hey @Magnus Nordin, can u share the error msg?
m
@Frank The error message I get is this:
production-kambi-graph-appsync-stack |  0/21 | 10:31:26 AM | CREATE_FAILED        | AWS::IAM::Role              | AppSyncAPI/Api/event/ServiceRole (AppSyncAPIApieventServiceRole3B534155) custom-ApieventServiceRole3B534155 already exists
I have changed the role name throughout because of requirement in our AWS setup. But works for the first region that I deployed to. It is the second region that is generating the issue.
But maybe there is a more preferred way of doing deploys to different region. I am now doing a separate build and deploy script for all region that the app should run on.