Skip to content

terraform apply issue occurs while selecting cooldown value as '0'. #285

@ghost

Description

Hi there,

Please check this problem.

Terraform Version

$ terraform -v
Terraform v0.11.7

provider.ibm (unversioned)
Affected Resource(s)

ibm_compute_autoscale_policy
Terraform Configuration Files
resource "ibm_compute_autoscale_policy" "test"{
scale_group_id= "230XX07",
name= "test_policy",

cooldown= "0",
scale_type= "PERCENT",
scale_amount= "250"
}
Debug Output

Error: Error applying plan:

1 error(s) occurred:

Error: Error applying plan:

1 error(s) occurred:

  • ibm_compute_autoscale_policy.test: 1 error(s) occurred:

  • ibm_compute_autoscale_policy.test: Error retrieving scalePolicy: cooldown must be between 0 seconds and 10 days.

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
Panic Output

The crash.log has not been created.

Expected Behavior

What should have happened?

New policy get attached to Autoscale Group with the given configuration.

Actual Behavior

What actually happened?
Error: Error applying plan:

1 error(s) occurred:

  • ibm_compute_autoscale_policy.test: 1 error(s) occurred:

  • ibm_compute_autoscale_policy.test: Error retrieving scalePolicy: cooldown must be between 0 seconds and 10 days.

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.

Steps to Reproduce

terraform init
terraform plan
terraform apply
Input yes

References

Nothing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions