dtan4 / terraforming

Export existing AWS resources to Terraform style (tf, tfstate) / No longer actively maintained
http://terraforming.dtan4.net/
MIT License
4.3k stars 658 forks source link

terraforming failing with Aws::ElasticLoadBalancing::Errors::Throttling #414

Open savankumargudaas opened 6 years ago

savankumargudaas commented 6 years ago

I tried to do

$ terraforming elb Traceback (most recent call last): 25: from /usr/local/bin/terraforming:23:in <main>' 24: from /usr/local/bin/terraforming:23:inload' ... ...Rate exceeded (Aws::ElasticLoadBalancing::Errors::Throttling)

I have lot of resources, which might be the reason. But can there be alternative implementation to avoid such errors?

jason-lang2018 commented 5 years ago

I am having this issue as well. AWS states that your application should be doing wait cycles when pulling large amounts of data via the API, yet they do not say what said limit is.

chizmw commented 5 years ago

Also seeing this:


/Library/Ruby/Gems/2.3.0/gems/aws-sdk-core-3.61.2/lib/seahorse/client/plugins/raise_response_errors.rb:15:in `call': Rate exceeded (Aws::ElasticLoadBalancingV2::Errors::Throttling)
    from /Library/Ruby/Gems/2.3.0/gems/aws-sdk-core-3.61.2/lib/aws-sdk-core/plugins/jsonvalue_converter.rb:20:in `call'
    from /Library/Ruby/Gems/2.3.0/gems/aws-sdk-core-3.61.2/lib/aws-sdk-core/plugins/idempotency_token.rb:17:in `call'
    from /Library/Ruby/Gems/2.3.0/gems/aws-sdk-core-3.61.2/lib/aws-sdk-core/plugins/param_converter.rb:24:in `call'
    from /Library/Ruby/Gems/2.3.0/gems/aws-sdk-core-3.61.2/lib/aws-sdk-core/plugins/response_paging.rb:10:in `call'
    from /Library/Ruby/Gems/2.3.0/gems/aws-sdk-core-3.61.2/lib/seahorse/client/plugins/response_target.rb:23:in `call'
    from /Library/Ruby/Gems/2.3.0/gems/aws-sdk-core-3.61.2/lib/seahorse/client/request.rb:70:in `send_request'
    from /Library/Ruby/Gems/2.3.0/gems/aws-sdk-elasticloadbalancingv2-1.33.0/lib/aws-sdk-elasticloadbalancingv2/client.rb:1849:in `describe_load_balancer_attributes'
    from /Library/Ruby/Gems/2.3.0/gems/terraforming-0.18.0/lib/terraforming/resource/alb.rb:72:in `load_balancer_attributes_of'
    from (erb):2:in `block in apply_template'
    from (erb):1:in `each'
    from (erb):1:in `apply_template'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/erb.rb:864:in `eval'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/erb.rb:864:in `result'
    from /Library/Ruby/Gems/2.3.0/gems/terraforming-0.18.0/lib/terraforming/util.rb:4:in `apply_template'
    from /Library/Ruby/Gems/2.3.0/gems/terraforming-0.18.0/lib/terraforming/resource/alb.rb:19:in `tf'
    from /Library/Ruby/Gems/2.3.0/gems/terraforming-0.18.0/lib/terraforming/resource/alb.rb:7:in `tf'
    from /Library/Ruby/Gems/2.3.0/gems/terraforming-0.18.0/lib/terraforming/cli.rb:263:in `tf'
    from /Library/Ruby/Gems/2.3.0/gems/terraforming-0.18.0/lib/terraforming/cli.rb:250:in `execute'
    from /Library/Ruby/Gems/2.3.0/gems/terraforming-0.18.0/lib/terraforming/cli.rb:15:in `alb'
    from /Library/Ruby/Gems/2.3.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
    from /Library/Ruby/Gems/2.3.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
    from /Library/Ruby/Gems/2.3.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
    from /Library/Ruby/Gems/2.3.0/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
    from /Library/Ruby/Gems/2.3.0/gems/terraforming-0.18.0/bin/terraforming:5:in `<top (required)>'
    from /usr/local/bin/terraforming:22:in `load'
    from /usr/local/bin/terraforming:22:in `<main>'```