Repository navigation
Replies: 3 comments
|
The attach() method requires |
|
This would require some testing I think. CloudFormation docs seem to indicate you can't create a SecretTargetAttachment using a DbProxy. However, CloudFormation docs can sometimes be unreliable so we can't rule it out unless we test it. If you can do this, then we should be able to support this feature I think |
|
@peterwoodworth i'm not sure to start that journey at this time. for now, we have a workaround. until cdk can provide a solution to this this chicken-and-egg issue, we're predicting the endpoint url and creating the secret first: |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
We have a situation where lambda code uses one of four secrets:
Please understand that that lambda code uses the following keys from the secrets:
Consider this code snippet from our mysql cdk stack:
The next line of CDK should attach this AFTER secret to the proxy.
I opened a support ticket but it was determined that no such method exists in CDK.
There are ways to attach to an RDS instance or cluster, but not to a proxy.
We did try this actually:
But it does not attach the AFTER secret(s) to the proxy.
One other way to handle this would be to create all secrets before the proxy but just leave out the hostname key in the proxy secrets. Alas, there apparently isn't a way to update the secret(s).
Is this something that should be supported?
All reactions