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

Count iterators and count meta-argument #2021

Closed
DanielMSchmidt opened this issue Aug 12, 2022 · 2 comments
Closed

Count iterators and count meta-argument #2021

DanielMSchmidt opened this issue Aug 12, 2022 · 2 comments
Labels
cdktf core-parity Better experience in Terraform Core than CDKTF enhancement New feature or request feature/iterators priority/important-longterm Medium priority, to be worked on within the following 1-2 business quarters. size/medium estimated < 1 week

Comments

@DanielMSchmidt
Copy link
Contributor

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

In some scenarios (like #1981 (comment)) users need to use count, so we should support this through an API.

import { TerraformIterator } from "cdktf";

const iterator = TerraformIterator.count(5);

new S3Bucket(this, "s3", {
  count: iterator,
  name: `bucket-${iterator.index}`
})

References

@DanielMSchmidt DanielMSchmidt added enhancement New feature or request cdktf priority/important-soon High priority, to be worked on as part of our current release or the following one. core-parity Better experience in Terraform Core than CDKTF size/medium estimated < 1 week feature/iterators labels Aug 12, 2022
@xiehan xiehan added this to the 0.19 (tentative) milestone Jun 1, 2023
@xiehan xiehan added priority/important-longterm Medium priority, to be worked on within the following 1-2 business quarters. and removed priority/important-soon High priority, to be worked on as part of our current release or the following one. labels Jun 1, 2023
@ansgarm
Copy link
Member

ansgarm commented Jul 13, 2023

This was implemented in #2766

@ansgarm ansgarm closed this as completed Jul 13, 2023
@xiehan xiehan removed this from the 0.21 (tentative) milestone Jul 20, 2023
@github-actions
Copy link
Contributor

I'm going to lock this issue 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 similar to this, 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 Aug 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cdktf core-parity Better experience in Terraform Core than CDKTF enhancement New feature or request feature/iterators priority/important-longterm Medium priority, to be worked on within the following 1-2 business quarters. size/medium estimated < 1 week
Projects
None yet
Development

No branches or pull requests

3 participants