Skip to content

Filtering

With the CLI, you can filter the resources you want to generate Terraform code for, by providing the --filter flag. The filter flag accepts a comma-separated list of tag=value. For example, to generate Terraform code for the EC2 instance with the tag Name=bastion, you can run:

Terminal window
finisterra -p aws -m ec2 --filters="Name=bastion" -o /tmp/code