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(lib): throw error when a token is used in a construct name #1181

Merged
merged 4 commits into from
Oct 29, 2021

Conversation

DanielMSchmidt
Copy link
Contributor

Closes #1068

This should help folks with a better error message than the current one

@DanielMSchmidt DanielMSchmidt force-pushed the prevent-tokens-as-construct-ids branch 2 times, most recently from d7a5e25 to 2a58d70 Compare October 26, 2021 13:51
Copy link
Collaborator

@jsteinich jsteinich left a comment

Choose a reason for hiding this comment

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

Just some small tweaks needed.

packages/cdktf/lib/tokens/token.ts Outdated Show resolved Hide resolved
packages/cdktf/lib/terraform-element.ts Outdated Show resolved Hide resolved
packages/cdktf/test/resource.test.ts Outdated Show resolved Hide resolved
@DanielMSchmidt DanielMSchmidt merged commit 60230f8 into main Oct 29, 2021
@DanielMSchmidt DanielMSchmidt deleted the prevent-tokens-as-construct-ids branch October 29, 2021 10:12
@github-actions
Copy link
Contributor

github-actions bot commented Dec 6, 2022

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 6, 2022
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.

lib: Prevent users from using Tokens as Construct Id
3 participants