Closed rmvangun closed 1 year ago
Nevermind, while the output is a little confusing as it places the hex value as the b64 encoded values, I realized that I needed to convert the hex to base64url to correctly import it. Good to go now.
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 have 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.
Terraform CLI and Provider Versions
Terraform Configuration
Expected Behavior
If I run
terraform import random_id.postfix 9789af1d
, then runterraform plan
, I would expect to see no changes.Actual Behavior
However, I'm getting this:
This is obviously incorrect, as you can see that it believes the
byte_length
is 6, yet the existingb64_url
is 4 bytes.This is also pretty rough as it's causing all my resources with names based on this random ID to be recreated.
Steps to Reproduce
random_id
resource with 4 bytesterraform import random_id.postfix 9789af1d
terraform plan
and observe the incorrectly calculated bytesHow much impact is this issue causing?
High
Logs
No response
Additional Information
No response
Code of Conduct