You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I lost my state due to losing a lock apparently on my storage backend and so it never completed saving the state file. The resources were all created but i no longer have the state.
I would like to still manage these resources so i was hoping I could import the random ID as I use it on another resource that is always wanting to update.
In the meantime I an using lifecycle hooks to ignore it.
I use the "hex" attribute of the random_id resource to place within a disk name for a VM.
So all i have is the hex value for instance with using a 16 byte length this hex value:
1c2535161c6755ac151b4c6adf2242ca
Is there any possible way to convert this back to the base64url value that is needed to import?
Be able to import with the known hex value perhaps, or a simple way to convert back to the other formats when knowing one of the formats.
Actual Behavior
Cannot import hex value as it sets this for all values and wants to replace the resource on plan. as it sets the b64_url value and will convert this to hex.
Hello,
I lost my state due to losing a lock apparently on my storage backend and so it never completed saving the state file. The resources were all created but i no longer have the state.
I would like to still manage these resources so i was hoping I could import the random ID as I use it on another resource that is always wanting to update.
In the meantime I an using lifecycle hooks to ignore it.
I use the "hex" attribute of the random_id resource to place within a disk name for a VM.
So all i have is the hex value for instance with using a 16 byte length this hex value:
1c2535161c6755ac151b4c6adf2242ca
Is there any possible way to convert this back to the base64url value that is needed to import?
Terraform Version
Terraform v0.12.18
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Be able to import with the known hex value perhaps, or a simple way to convert back to the other formats when knowing one of the formats.
Actual Behavior
Cannot import hex value as it sets this for all values and wants to replace the resource on plan. as it sets the b64_url value and will convert this to hex.
Steps to Reproduce
terraform import resource.random_id.os_disk_id 1c2535161c6755ac151b4c6adf2242ca
terraform plan
Important Factoids
only know the hex value created by the random_id provider. would like to convert this back to b64_url value if at all possible.
The text was updated successfully, but these errors were encountered: