Deploy your infrastructure via a CircleCI pipeline using the Terraform orb. Integrate Infrastructure-as-Code (IaC) to help provision and manage any cloud, infrastructure, or service of your choice.
Describe the bugImport blocks available from Terraform v1.5.0 and later are valid when terraform validate is ran locally, but the latest orb doesn't recognise it.
To Reproduce
create a terraform configuration with a simple resource and an import {} block that imports that resource that already exists remotely
run terraform validate locally on your configuration
make CircleCI run the terraform/validate job from the circleci/terraform@3.2.1 orb on your configuration
Expected behavior
Locally:
$ terraform validate
Success! The configuration is valid.
In CircleCI job output:
Success! The configuration is valid.
Actual behavior
Locally:
$ terraform validate
Success! The configuration is valid.
In CircleCI job output:
Error: Unsupported block type
│
│ on main.tf line 112:
│ 112: import {
│
│ Blocks of type "import" are not expected here.
Orb Version 3.2.1
Describe the bug Import blocks available from Terraform v1.5.0 and later are valid when
terraform validate
is ran locally, but the latest orb doesn't recognise it.To Reproduce
import {}
block that imports that resource that already exists remotelyterraform validate
locally on your configurationterraform/validate
job from thecircleci/terraform@3.2.1
orb on your configurationExpected behavior
Locally:
In CircleCI job output:
Actual behavior
Locally:
In CircleCI job output:
Additional context
Example configuration: