Skip to content
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

fix: iterator examples #2456

Merged
merged 11 commits into from
Nov 6, 2023
Merged

fix: iterator examples #2456

merged 11 commits into from
Nov 6, 2023

Conversation

mutahhir
Copy link
Member

@mutahhir mutahhir commented Jan 4, 2023

fixes #2452

Terraform only supports a set of strings, and maps with the for_each meta-argument.

The way for CDKTF to support complex list iterators would be to implement a kind of for expression when synthesising the iterator with for_each, however that isn't currently supported.

For now, this PR updates the example code to use maps instead of a complex list, until we implement the above.

@mutahhir mutahhir requested review from a team, mgarrell777 and robin-norwood as code owners January 4, 2023 07:59
@mutahhir mutahhir requested review from DanielMSchmidt and Maed223 and removed request for a team January 4, 2023 07:59
@mutahhir mutahhir changed the title Fix iterator examples fix: iterator examples Jan 4, 2023
Copy link
Contributor

@DanielMSchmidt DanielMSchmidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should use the other iterator type

examples/csharp/documentation/IteratorStack.cs Outdated Show resolved Hide resolved
@mutahhir
Copy link
Member Author

This is failing on CSharp because of: aws/jsii#3870.

we're currently on 1.71.0, while the fix is in 1.72.0.

@DanielMSchmidt
Copy link
Contributor

@mutahhir I think this needs a rebase :)

@mutahhir mutahhir added this pull request to the merge queue Nov 6, 2023
Merged via the queue into main with commit 3f21f73 Nov 6, 2023
65 checks passed
@mutahhir mutahhir deleted the fix/iterator-examples branch November 6, 2023 10:44
Copy link
Contributor

github-actions bot commented Dec 7, 2023

I'm going to lock this pull request because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Using Iterators on Complex Types" documentation sample code does not work
3 participants