jckuester / awsls

A list command for AWS resources
MIT License
830 stars 53 forks source link

Stuck on aws_glue_dev_endpoint #37

Open tx-kstav opened 3 years ago

tx-kstav commented 3 years ago

Doing something like awsls "*" gets stuck at trying to list aws_glue_dev_endpoint resources.

Try with: awsls "aws_glue_*" --debug:

$ awsls "aws_glue_*" --debug                                                                                                                                                                            [11:19:51]

   • resource type not (yet) supported: aws_glue_catalog_database
   • resource type not (yet) supported: aws_glue_catalog_table
   • resource type not (yet) supported: aws_glue_classifier
   • resource type not (yet) supported: aws_glue_connection
   • resource type not (yet) supported: aws_glue_data_catalog_encryption_settings
   • resource type not (yet) supported: aws_glue_partition
   • resource type not (yet) supported: aws_glue_resource_policy
   • resource type not (yet) supported: aws_glue_user_defined_function
   • created new instance of AWS client region=eu-west-1
   • found already installed Terraform provider name=aws path=/home/xxx/.awsls/terraform-provider-aws_v3.42.0_x5 version=3.42.0
   • start launching new instance of Terraform AWS Provider profile= region=eu-west-1
   • launched new instance of Terraform AWS Provider profile= region=eu-west-1
   • start listing resources   profile= region=eu-west-1 type=aws_glue_crawler
   • start listing resources   profile= region=eu-west-1 type=aws_glue_dev_endpoint

Gets stuck at that point, never goes on.

Edit: For now I am excluding it via awsls "aws_[!glue_dev*]*" --debug

jckuester commented 3 years ago

Thanks for reporting this issue @tx-kstav. I also got surprised recently by the blocking glue_dev_endpoint, but didn't see yet what could be the problem. I am just calling the AWS SDK to list the dev endpoints 🤷

If you have any ideas let me know. I will work on this when I have more time.

tx-kstav commented 3 years ago

I'll try to take a look too if time allows, your code looks clean of course :)