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

feat(hcl2cdk): support import blocks in cdktf convert #3415

Merged
merged 4 commits into from
Jan 12, 2024

Conversation

DanielMSchmidt
Copy link
Contributor

@DanielMSchmidt DanielMSchmidt commented Jan 12, 2024

Closes #3204

@DanielMSchmidt DanielMSchmidt changed the title convert supports import feat: support import blocks in cdktf convert Jan 12, 2024
@DanielMSchmidt DanielMSchmidt changed the title feat: support import blocks in cdktf convert feat(hcl2cdk): support import blocks in cdktf convert Jan 12, 2024
@DanielMSchmidt DanielMSchmidt marked this pull request as ready for review January 12, 2024 12:49
@DanielMSchmidt DanielMSchmidt requested a review from a team as a code owner January 12, 2024 12:49
@DanielMSchmidt DanielMSchmidt requested review from mutahhir and ansgarm and removed request for a team January 12, 2024 12:49
Copy link
Member

@ansgarm ansgarm left a comment

Choose a reason for hiding this comment

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

Nice work! Import ant feature 🥁

@DanielMSchmidt DanielMSchmidt merged commit 44ca450 into main Jan 12, 2024
427 checks passed
@DanielMSchmidt DanielMSchmidt deleted the convert-supports-import branch January 12, 2024 17:02
ansgarm added a commit that referenced this pull request Jan 16, 2024
## 0.20.1

**AWS Provider changes (breaking)**

The AWS pre-built provider for Go is currently too large to be installed
due to a hard limit in Go. This release adds skipping the `statement`
block in the `rule` block of the `aws_wafv2_web_acl` and
`aws_wafv2_rule_group` resources. Our [resource docs
page](https://developer.hashicorp.com/terraform/cdktf/concepts/resources#special-cases)
previously already mentioned that these resources have skipped
attributes but they weren't actually skipped. This almost doubled AWS
provider bindings in size due to the recursive nature of the `statement`
block.
If you are using any of these two resources, the `statement` now has to
be passed as a plain object instead and its keys have to be snake-cased
(e.g. `and_statement` or `regex_match_statement`).

### feat

- feat(hcl2cdk): support import blocks in cdktf convert
[\#3415](#3415)

### fix

- fix(provider-generator): Skip `statement` block for `rule` block in
`aws_wafv2_web_acl` and `aws_wafv2_rule_group` resources
[\#3414](#3414)
- fix(cli): Fix version range matching for 0.x version ranges with the
~> operator
[\#3403](#3403)
- fix(docs): fix complex iterator example
[\#3410](#3410)
- fix(docs): product relative links
[\#3401](#3401)

### chore

- chore: Upgrade dependencies for @cdktf/provider-generator
[\#3423](#3423)
- chore: break loop properly
[\#3413](#3413)
- chore: abort rebase when retrying pushing doc updates
[\#3412](#3412)
- chore: update registry docs tool
[\#3407](#3407)
- chore: update registry docs tool
[\#3406](#3406)
- chore: update provider docs tool
[\#3404](#3404)
Copy link
Contributor

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 Feb 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert: Does not handle import and move blocks
2 participants