Open DennisPohlig opened 1 year ago
Hi. According to your config, I see that you tried to modify a datasource which is not allowed to be changed in terraform. Datasource is used to import source which is not managed by terraform. When using resource "gridscale_storage"."demo-storage2"
, terraform will create a new storage "demo-storage2"
with given data, since it has no ideas what is going on outside of terraform state.
Ok I understand that. Is there any way to import such information so that terraform can handle that? Or is the result that I could import existing infrastructure only with lack of modifying possibilities?
@DennisPohlig At the moment, the data sources are not modifiable.
The main purpose of data source is to allow Terraform to use information defined outside of Terraform.
Hi there,
I have issues when trying to modify storage in gridscale via terraform. Maybe I have overseen some documentation or maybe there is actual no implementation for this task.
Terraform Version
Terraform v1.3.9 on linux_amd64 provider registry.terraform.io/gridscale/gridscale v1.17.0
Affected Resource(s)
Terraform Configuration Files
Creating of Resources works:
Adding existing Storage to a Server works:
Now changing the Storage Capacity will not work:
Expected Behavior
Changing the capacity in the Terraform configuration should result in a change of the real storage.
Actual Behavior
Modifying the "demo-storage2" is not possible, as Terraform would like to create some new storage even though it has the same name as the attached storage or does not accept the UUID of the Storage as a Parameter (Which works as intended following the docs).
Is there any way of modifying or changing parameters of the storage like capacity with terraform?