Hey there,
I am trying to upgrade from version 0.14 to 1.0.2 and during this process terraform seems to add some optional parameters for the AWS resources.
For example, after the plan command, I have this output:
*# module.output_bucket.aws_s3_bucket.default[0] will be updated in-place*
* ~ resource "aws_s3_bucket" "default" {*
* + acceleration_status = ""*
The acceleration_status was not added by me in the code.
If I try to add it in the code, exactly like shown above: acceleration_status = “”, with no other value, the terraform plan command is giving the following error (which is in line with the documentation of course):
│ Error: expected acceleration_status to be one of [Enabled Suspended], got
│
│ with module.output_bucket.aws_s3_bucket.default,
│ on ../../modules/bucket/s3.tf line 28, in resource "aws_s3_bucket" "default":
│ 28: acceleration_status = ""
It is a problem that it adds random optional parameters, and it is a bigger problem that it adds them with a wrong value.
Anyone have had this issue before? Any idea how to fix it (other than the work around to add the optional parameters with a value from documentation)?
Thanks,
Andra