- Newest
- Most votes
- Most comments
You'll need to think about this slightly differently, as your CDK code is only executing BEFORE CloudFormation creates the stack. Your references to the response values from your custom resource will be rendered into some combination of GetAtt and Select intrinsic functions in the template which is output, and so you're back to your already-identified problem of knowing how many results there will be.
I think the way to handle this may well be another custom resource (or maybe the same one, if you want) which takes the DkimTokens list and can execute the logic to create the Route 53 records as required. So you won't have AWS::Route53::RecordSets in your stack, you'll have a Custom::CreateRecords (or whatever) which "owns" all the records, but those records are opaque to CloudFormation.
Relevant content
asked 4 years ago
- AWS OFFICIALUpdated a year ago
