terraform-provider-awscc
terraform-provider-awscc copied to clipboard
awscc_lightsail_disk: subsequent applies without change leads to plan/apply stuck on modification
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
- The resources and data sources in this provider are generated from the CloudFormation schema, so they can only support the actions that the underlying schema supports. For this reason submitted bugs should be limited to defects in the generation and runtime code of the provider. Customizing behavior of the resource, or noting a gap in behavior are not valid bugs and should be submitted as enhancements to AWS via the CloudFormation Open Coverage Roadmap.
Terraform CLI and Terraform AWS Cloud Control Provider Version
tf -version
Terraform v1.9.0
on darwin_amd64
+ provider registry.terraform.io/hashicorp/aws v5.57.0
+ provider registry.terraform.io/hashicorp/awscc v1.4.0
+ provider registry.terraform.io/hashicorp/null v3.2.2
Affected Resource(s)
- awscc_lightsail_disk
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
resource "awscc_lightsail_disk" "example" {
disk_name = "example-disk"
size_in_gb = "32"
availability_zone = "us-east-1a"
}
Debug Output
Panic Output
Expected Behavior
Terraform and the provider should manage the idempotency in subsequent applies without changes.
Actual Behavior
A subsequent terraform apply
lead to below changes identified by plan and apply.
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# awscc_lightsail_disk.example will be updated in-place
~ resource "awscc_lightsail_disk" "example" {
id = "example-disk"
+ tags = (known after apply)
# (14 unchanged attributes hidden)
}
Steps to Reproduce
-
terraform apply
-
terraform apply
Important Factoids
This is not reproducible on the below example.
resource "awscc_lightsail_disk" "example" {
disk_name = "example-disk"
size_in_gb = "32"
add_ons = [{
add_on_type = "AutoSnapshot"
auto_snapshot_add_on_request = {
snapshot_time_of_day = "06:00"
}
}]
availability_zone = "us-east-1a"
}