After update terraform plan throws error

Hello,

I have updated terraform from 0.13.2 to 0.14.11

Updated the lock file and checked in for all the os compatible .

After update I am able to run it locally on macos but it fails in bitbucket pipelines ( linux Os I believe)

`Error: Get "http://localhost/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/cluster-read-only": dial tcp [::1]:80: connect: connection refused`

``

``

``

`Error: Get "http://localhost/api/v1/namespaces/monitoring": dial tcp [::1]:80: connect: connection refused`

``

``

``

`Error: Get "http://localhost/api/v1/namespaces/kubed": dial tcp [::1]:80: connect: connection refused`

``

``

``

`Error: Get "http://localhost/apis/rbac.authorization.k8s.io/v1/clusterroles/cluster-readonly": dial tcp [::1]:80: connect: connection refused`

``

``

``

`Error: Get "http://localhost/apis/rbac.authorization.k8s.io/v1/clusterroles/read_delete_access": dial tcp [::1]:80: connect: connection refused`

``

``

``

`Error: Get "http://localhost/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/read_delete_access": dial tcp [::1]:80: connect: connection refused`

``

``

``

`Error: Get "http://localhost/api/v1/namespaces/kube-system/configmaps/aws-auth": dial tcp [::1]:80: connect: connection refused`

``

``

``

`Error: Get "http://localhost/api/v1/namespaces/ingress": dial tcp [::1]:80: connect: connection refused`

``

``

``

`Error: Get "http://localhost/api/v1/namespaces/aws": dial tcp [::1]:80: connect: connection refused`

``

``

`Releasing state lock. This may take a few moments...`

I did the same update on test and develop and there were no issue at all after update but on production it is not going through.

Additional info : terraform-aws-modules/eks/aws (14.0.0)

terraform version
Terraform v0.14.11
+ provider registry.terraform.io/hashicorp/aws v3.47.0
+ provider registry.terraform.io/hashicorp/external v2.1.0
+ provider registry.terraform.io/hashicorp/helm v1.3.0
+ provider registry.terraform.io/hashicorp/kubernetes v1.13.1
+ provider registry.terraform.io/hashicorp/local v2.1.0
+ provider registry.terraform.io/hashicorp/null v3.1.0
+ provider registry.terraform.io/hashicorp/random v3.1.0
+ provider registry.terraform.io/hashicorp/template v2.2.0

Any help would be really appreciated.

Thanks,
Snehil

Hello ,

How to debug this issue as it’s coming on change in OS platform from MacOS local (running) to Linux BB pipelines (not working) ?

I don’t know how this dependency get added in .terraform.lock.hcl as part of terraform init.

Thanks for your feedback so that I will investigate futher into this issue.

Thanks,
Snehil Belekar

Thanks,
Snehil Belekar

Dears,

I had gone through terraform provider of aws and got the solution there as part of the issues listed .

But for me it’s strange behaviour as it was working with local MacOS and not with Linux machine.

https://github.com/terraform-aws-modules/terraform-aws-eks/issues/1280

replied to thread so in case someone face issue can refer the above thread .

Thanks,
Snehil Belekar