Open orekav opened 1 year ago
I can't find any relevant document about this either. Can you elaborate more about your use case that requires multiple api keys?
@pahud I have a migration from Serverless Framework to CDK. In order to maintain compatibility I need to be able to create certain number of API Keys for different external consumers. It is not possible to use anything different than API Keys, otherwise that will require them to do code changes that I cannot ask.
So right now I can create multiple API Keys through the AppSync console with no problems. But it's not possible to do so through the CDK, and no one wants to merge @orekav's pull request or otherwise fix the issue?
@orekav - did you find a workaround? It seems like if you add extra API Keys through the console, they don't get destroyed when AppSync is updated, even if the CDK only specifies one API Key. But that's scary to rely on.
Describe the issue
By using the L2 Construct
GraphQLApi
we cannot create multiple API_KEYs, if we try to do so we get this errorMy current workaround is this, I consider it a horrible thing to do but in the meantime is what I need.
Links
I have not seen anything in this link saying that multiple API Keys are a problem. Furthermore, I think in that case it should be a
cdk_nag
rule instead or a warning in CDK but not an error.