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
the problem happens whenever I change the product value in spotinst_elastigroup_aws.
It complains that property is immutable, hence terraform should destroy and recreate the resource for me.
Error: field [product] is immutable, cannot be changed post creation
on ../modules_tf12/ec2_spotinst/ec2_spotinst.tf line 423, in resource "spotinst_elastigroup_aws" "default-elastigroup":
423: resource "spotinst_elastigroup_aws" "default-elastigroup" {
Expected Behavior
Terraform should destroy and create the resource for me again
Actual Behavior
I receive an error
Steps to Reproduce
create a resource with the product value being "Linux/UNIX"
terraform apply
change it to "Linux/UNIX (Amazon VPC)"
terraform apply
Important Factoids
Yes, I know a workaround is to taint my resources, and I am doing exactly that.
That being said, I messed up because the documentation is also misleading:
product - (Required) Operation system type. Valid values: "Linux/UNIX", "SUSE Linux", "Windows". For EC2 Classic instances: "Linux/UNIX (Amazon VPC)", "SUSE Linux (Amazon VPC)", "Windows (Amazon VPC)".
I would write:
product - (Required) Operation system type. Valid values for EC2 Instances in Amazon VPC: "Linux/UNIX (Amazon VPC)", "SUSE Linux (Amazon VPC)", "Windows (Amazon VPC)". For the old EC2 Classic instances, use "Linux/UNIX", "SUSE Linux", "Windows".
And since I read somewhere that this setting affects your algorithm of getting the cheapest instances, which is your core business, this bug might be important.
The text was updated successfully, but these errors were encountered:
marcosdiez
changed the title
a change in spotinst_elastigroup_aws.product should force a new resource
Changing elastigroup_aws.product should force a new resource
Mar 3, 2020
Terraform Version
Affected Resource(s)
Terraform Configuration Files
the problem happens whenever I change the
product
value inspotinst_elastigroup_aws
.It complains that property is immutable, hence terraform should destroy and recreate the resource for me.
to
Debug Output
Expected Behavior
Terraform should destroy and create the resource for me again
Actual Behavior
I receive an error
Steps to Reproduce
terraform apply
terraform apply
Important Factoids
Yes, I know a workaround is to taint my resources, and I am doing exactly that.
That being said, I messed up because the documentation is also misleading:
https://www.terraform.io/docs/providers/spotinst/r/elastigroup_aws.html#product
product - (Required) Operation system type. Valid values: "Linux/UNIX", "SUSE Linux", "Windows". For EC2 Classic instances: "Linux/UNIX (Amazon VPC)", "SUSE Linux (Amazon VPC)", "Windows (Amazon VPC)".
I would write:
product - (Required) Operation system type. Valid values for EC2 Instances in Amazon VPC: "Linux/UNIX (Amazon VPC)", "SUSE Linux (Amazon VPC)", "Windows (Amazon VPC)". For the old EC2 Classic instances, use "Linux/UNIX", "SUSE Linux", "Windows".
And since I read somewhere that this setting affects your algorithm of getting the cheapest instances, which is your core business, this bug might be important.
The text was updated successfully, but these errors were encountered: