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
A clear and concise description of what the bug is.
Description: When TerraCognita generates Terraform code for AWS EBS volume types gp2, sc1 and st1 the output includes an iops attribute which is invalid syntax for using with terraform apply.
General information:
Describe the bug:
A clear and concise description of what the bug is.
Description: When TerraCognita generates Terraform code for AWS EBS volume types gp2, sc1 and st1 the output includes an
iops
attribute which is invalid syntax for using withterraform apply
.Log message
Here you can paste the log message or paste the link to console logs. If the log message is too big, you can use a tool like https://pastebin.com/.
Additional context
Expected: Import AWS resources using TerraCognita and be able to use the resulting Terraform code without modification with
terraform apply
.Actual: TerraCognita will output invalid Terraform code that cannot be used with
terraform apply
as-is.Reproducing:
terracognita aws -i aws_instance --access-key "$(awk '/aws_access_key_id/ {print $3}' ~/.aws/credentials)" --secret-key "$(awk '/aws_secret_access_key/ {print $3}' ~/.aws/credentials)" --region us-east-2 --hcl instance.tf
)terraform apply
Error: error creating resource: iops attribute not supported for root_block_device with volume_type gp2
terrform apply
will not not launched any resources.Add any other context about the problem here.
Running
terraform plan
will not report the error in the Terraform code.The
iops = "100"
(excerpted from/instance.tf
generated above) is invalid syntax forterraform apply
:I tested with Terraform versions v0.12.29 and v0.14.2.
The text was updated successfully, but these errors were encountered: