cycloidio / terracognita

Reads from existing public and private cloud providers (reverse Terraform) and generates your infrastructure as code on Terraform configuration
MIT License
2.17k stars 163 forks source link

tag flag is not working #331

Closed pawanbahuguna closed 1 year ago

pawanbahuguna commented 1 year ago

General information:

Trying to create tf file with tag flag, but it is not taking tag and creating file with all the resources. I want to get only particular ASG

Thanks!

Describe the bug:

Not able to create terraform file with tag option.

I'm running the below command:

# terracognita aws --aws-default-region us-east-1 --aws-profile default --hcl asg_pb.tf --tags Name:ec2-client -i aws_autoscaling_group
Starting Terracognita with version v0.8.1
Importing with filters: 
        Tags:    [],
        Include: [aws_autoscaling_group],
        Exclude: [],
        Targets: [],
Importing aws_autoscaling_group [64/64] Done!
Writing HCL Done!
# terracognita aws --aws-default-region us-east-1 --aws-profile default --hcl asg_pb.tf --tags 'Name:ec2-client' -i aws_autoscaling_group
Starting Terracognita with version v0.8.1
Importing with filters: 
        Tags:    [],
        Include: [aws_autoscaling_group],
        Exclude: [],
        Targets: [],
Importing aws_autoscaling_group [64/64] Done!
Writing HCL Done!

Log message

Additional context

Add any other context about the problem here.

xescugc commented 1 year ago

We fixed this issue on https://github.com/cycloidio/terracognita/releases/tag/v0.8.2 with https://github.com/cycloidio/terracognita/issues/322