-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DynamicListTerraformIterator: Sets of more than one object unhandled #3713
Comments
seems related to actual bug in Terraform/Terraform Provider AWS:
if you know the validation options as part of your CDK code, best to generate each route53 validation record directly without iterator or foreach. |
@so0k how do you know the validation options up-front if you're using DNS validation? Aren't they always random values provided by AWS that cannot be pre-assigned at creation? If it's possible to assign them, do you have any information or examples on how to do this? I'm also using values for
Resulting in output:
|
The order and count can be calculated from the Subject Name and SANS so far my integration tests always pass, so this seems consistent... |
Description
Dynamic complex list iterations introduced in PR #3273 don't seem to handle sets containing more than one object. Consider a certificate request with more than one Subject Alternative Name, viz.:
This results in the following new resource:
However, the Route53 records will fail to create:
If
aws_acm_certificate.cert.domain_validation_options
is a set of one object, then the code works correctly.System information
Links
terraform-cdk/examples/typescript/documentation/iterators.ts
Line 95 in 4f8c0c9
Help Wanted
Community Note
The text was updated successfully, but these errors were encountered: