Need to monkey patch a construct class #27535
Unanswered
automartin5000
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.
-
I'm not sure monkey patch is the right term here, so just bear with me on this one for a minute.
I have some constraints in my environment where I can't call a specific AWS Service's API directly, as in I can't get AWS IAM permissions for it. For the sake of argument, let's just say it's the EC2 API. But I have access to essentially a proxy service that accepts a CloudFormation template with EC2 resources.
So the way I see it I have two options:
Use escape hatches to override the CFN resource type in the template with my custom resource that calls out to the proxy
A potentially more interesting solution is to somehow override the EC2 class and swap it my own class with the custom resource, using the same user defined params and interface.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions