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

Rename resource name that is not start with a letter #1573

Merged

Conversation

@chaspy
Copy link
Contributor

commented Aug 17, 2019

To avoid the error:

terraform 0.12checklist
- [ ] `data "alicloud_instance_types" "2c4g"` has a name that is not a valid identifier.

  In Terraform 0.12, resource names must start with a letter. To fix this, rename the resource in the configuration and then use `terraform state mv` to mirror that name change in the state.

I did the following:

git grep 2c4g | awk -F':' '{print $1}' | xargs sed -i '' 's/2c4g/c2g4/g'
Rename resource name that is not start with a letter
To avoid the error:
---
    terraform 0.12checklist
    - [ ] `data "alicloud_instance_types" "2c4g"` has a name that is not a valid identifier.

      In Terraform 0.12, resource names must start with a letter. To fix this, rename the resource in the configuration and then use `terraform state mv` to mirror that name change in the state.

@xiaozhu36 xiaozhu36 merged commit 14178b1 into terraform-providers:master Aug 19, 2019

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.