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

cdktf: upgraded packages and now logical ids are different #3838

Open
1 task
kevanslumin opened this issue Mar 13, 2025 · 1 comment
Open
1 task

cdktf: upgraded packages and now logical ids are different #3838

kevanslumin opened this issue Mar 13, 2025 · 1 comment
Labels
bug Something isn't working new Un-triaged issue

Comments

@kevanslumin
Copy link

kevanslumin commented Mar 13, 2025

Expected Behavior

I made the following Go module updates below and now my logical ids are different. They seem to be missing the hash at the end and also hyphens are not converted to underscores any longer. I'm having trouble figuring out what changed, and would appreciate it if anyone can shed some light.

-       github.com/aws/constructs-go/constructs/v10 v10.1.225
+       github.com/aws/constructs-go/constructs/v10 v10.4.2
-       github.com/aws/jsii-runtime-go v1.73.0
+       github.com/aws/jsii-runtime-go v1.109.0
-       github.com/cdktf/cdktf-provider-aws-go/aws/v12 v12.0.1
+       github.com/cdktf/cdktf-provider-aws-go/aws/v19 v19.56.1
-       github.com/hashicorp/terraform-cdk-go/cdktf v0.15.0
+       github.com/hashicorp/terraform-cdk-go/cdktf v0.20.11

Here is an example:

stack Id: example-stack

vpn connection id: cdktf-example-vpn

original logical id: examplestack_cdktfexamplevpn_F638B234

new logical id: cdktf-example-vpn

Actual Behavior

Here is an example:

stack Id: example-stack

vpn connection id: cdktf-example-vpn

original logical id: examplestack_cdktfexamplevpn_F638B234

new logical id: cdktf-example-vpn

Steps to Reproduce

Use the same versions as shown above, I think. There were other packages updated, but I'm having trouble pinpointing the bad one because several need to be updated together.

Versions

-       github.com/aws/constructs-go/constructs/v10 v10.1.225
+       github.com/aws/constructs-go/constructs/v10 v10.4.2
-       github.com/aws/jsii-runtime-go v1.73.0
+       github.com/aws/jsii-runtime-go v1.109.0
-       github.com/cdktf/cdktf-provider-aws-go/aws/v12 v12.0.1
+       github.com/cdktf/cdktf-provider-aws-go/aws/v19 v19.56.1
-       github.com/hashicorp/terraform-cdk-go/cdktf v0.15.0
+       github.com/hashicorp/terraform-cdk-go/cdktf v0.20.11

Providers

New:

Providers required by configuration:
.
└── provider[registry.terraform.io/hashicorp/aws] 5.65.0

Providers required by state:

provider[registry.terraform.io/hashicorp/aws]

Old:

Providers required by configuration:
.
└── provider[registry.terraform.io/hashicorp/aws] 4.51.0

Providers required by state:

provider[registry.terraform.io/hashicorp/aws]

Gist

No response

Possible Solutions

No response

Workarounds

No response

Anything Else?

No response

References

No response

Help Wanted

  • I'm interested in contributing a fix myself

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
@kevanslumin kevanslumin added bug Something isn't working new Un-triaged issue labels Mar 13, 2025
@kevanslumin
Copy link
Author

Okay, after more testing I narrowed down the set of changes that start exhibiting the new behavior:

New behavior:

+	github.com/aws/constructs-go/constructs/v10 v10.2.52
+	github.com/aws/jsii-runtime-go v1.84.0
+	github.com/cdktf/cdktf-provider-aws-go/aws/v15 v15.0.0
+	github.com/hashicorp/terraform-cdk-go/cdktf v0.17.0

Old behavior:

+	github.com/aws/constructs-go/constructs/v10 v10.2.17
+	github.com/aws/jsii-runtime-go v1.80.0
+	github.com/cdktf/cdktf-provider-aws-go/aws/v14 v14.0.4
+	github.com/hashicorp/terraform-cdk-go/cdktf v0.16.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new Un-triaged issue
Projects
None yet
Development

No branches or pull requests

1 participant