-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when importing AWS alb #1885
Comments
I faced the same issue while abstracting alb through terraformer. issue: terraformer import aws --resources=alb --regions=eu-west-1 --profile="" |
Downgrading the provider to 4.* is a temporary fix |
@ThiagoRGoveia , please give an exact version of 4 that works for you. I tried |
@jamiejackson version the aws provider version 4.67.0 worked for me |
having same issue. with provider 4.67.0 it doesnt work for me.. |
aws provider 4.67.0 and use terraform-aws-alb v8.7.0 tag |
having same issue. I tried with |
For me, this error triggers if any rule in the target group is missing a Provider: terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.63.1"
}
}
} Terraformer version |
Fixed completely by hashicorp/terraform-provider-aws#39039 ( v5.65.0 of the Terraform AWS Provider.) |
Command: terraformer import aws --resources=alb --regions=eu-west-1
output:
2024/06/11 16:36:22 aws importing region eu-west-1
2024/06/11 16:36:23 aws importing... alb
2024/06/11 16:36:23 aws done importing alb
2024/06/11 16:36:23 Number of resources for service alb: 3
2024/06/11 16:36:23 Refreshing state... aws_lb_target_group.tfer--test
2024/06/11 16:36:23 Refreshing state... aws_lb.tfer--test
2024/06/11 16:36:23 Refreshing state... aws_lb_listener.tfer--arn-003A-aws-003A-elasticloadbalancing-003A-eu-west-1-003A-591217560485-003A-listener-002F-app-002F-test-002F-dcab94c91c4f6e4d-002F-5b4e04fe42683b14
2024-06-11T16:36:24.002+0200 [ERROR] plugin: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/aws/5.53.0/darwin_amd64/terraform-provider-aws_v5.53.0_x5 pid=10049 error="exit status 2"
2024/06/11 16:36:24 rpc error: code = Unavailable desc = error reading from server: EOF
2024/06/11 16:36:24 WARN: Fail read resource from provider, wait 300ms before retry
2024/06/11 16:36:24 rpc error: code = Unavailable desc = error reading from server: EOF
2024/06/11 16:36:24 WARN: Fail read resource from provider, wait 300ms before retry
2024/06/11 16:36:24 rpc error: code = Unavailable desc = error reading from server: EOF
2024/06/11 16:36:24 WARN: Fail read resource from provider, wait 300ms before retry
2024/06/11 16:36:24 rpc error: code = Canceled desc = context canceled
2024/06/11 16:36:24 WARN: Fail read resource from provider, wait 300ms before retry
2024/06/11 16:36:24 rpc error: code = Canceled desc = context canceled
2024/06/11 16:36:24 WARN: Fail read resource from provider, wait 300ms before retry
2024/06/11 16:36:24 rpc error: code = Canceled desc = context canceled
2024/06/11 16:36:24 WARN: Fail read resource from provider, wait 300ms before retry
2024/06/11 16:36:24 rpc error: code = Canceled desc = context canceled
2024/06/11 16:36:24 WARN: Fail read resource from provider, wait 300ms before retry
2024/06/11 16:36:24 rpc error: code = Canceled desc = context canceled
2024/06/11 16:36:24 WARN: Fail read resource from provider, wait 300ms before retry
2024/06/11 16:36:24 rpc error: code = Canceled desc = context canceled
2024/06/11 16:36:24 WARN: Fail read resource from provider, wait 300ms before retry
2024/06/11 16:36:24 rpc error: code = Canceled desc = context canceled
2024/06/11 16:36:24 WARN: Fail read resource from provider, wait 300ms before retry
2024/06/11 16:36:24 rpc error: code = Canceled desc = context canceled
2024/06/11 16:36:24 WARN: Fail read resource from provider, wait 300ms before retry
2024/06/11 16:36:24 rpc error: code = Canceled desc = context canceled
2024/06/11 16:36:24 WARN: Fail read resource from provider, wait 300ms before retry
2024/06/11 16:36:25 rpc error: code = Canceled desc = context canceled
2024/06/11 16:36:25 WARN: Fail read resource from provider, wait 300ms before retry
2024/06/11 16:36:25 rpc error: code = Canceled desc = context canceled
2024/06/11 16:36:25 WARN: Fail read resource from provider, wait 300ms before retry
2024/06/11 16:36:25 rpc error: code = Canceled desc = context canceled
2024/06/11 16:36:25 WARN: Fail read resource from provider, wait 300ms before retry
2024/06/11 16:36:25 Fail read resource from provider, trying import command
2024/06/11 16:36:25 Fail read resource from provider, trying import command
2024/06/11 16:36:25 Fail read resource from provider, trying import command
2024/06/11 16:36:25 rpc error: code = Canceled desc = context canceled
2024/06/11 16:36:25 rpc error: code = Canceled desc = context canceled
2024/06/11 16:36:25 rpc error: code = Canceled desc = context canceled
2024/06/11 16:36:25 ERROR: Unable to refresh resource tfer--test
2024/06/11 16:36:25 ERROR: Unable to refresh resource tfer--arn-003A-aws-003A-elasticloadbalancing-003A-eu-west-1-003A-591217560485-003A-listener-002F-app-002F-test-002F-dcab94c91c4f6e4d-002F-5b4e04fe42683b14
2024/06/11 16:36:25 ERROR: Unable to refresh resource tfer--test
2024/06/11 16:36:25 Filtered number of resources for service alb: 0
2024/06/11 16:36:25 aws Connecting....
2024/06/11 16:36:25 aws save alb
2024/06/11 16:36:25 aws save tfstate for alb
The text was updated successfully, but these errors were encountered: