How to add a UsagePlan to an imported Rest API #26991
Unanswered
owenashurst
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm having an issue where I have a core infrastructure stack, let's call this Stack A, that has an API Gateway with a CloudFront CDN. This stack exports the RestApiId and RootResourceId. I'm then importing this into my other stack, let's call this Stack B, that's solely for a lambda function. The method creation works great in stack B. However, when I come to add a usage plan for an API Key to secure the function, it throws an error because it can't serialise the deployment stage.
Here's the code:
Exception:
Has anyone any ideas how I can get around this?
Thanks,
Owen
Beta Was this translation helpful? Give feedback.
All reactions