Terraform is a programming language to make cloud infraestruture as code and if you try to execute by example for first time the “terraform init” command, in my case i need to download the AWS provider, for sure you’?l by find this error if you are in Venezuela:
Richzendy@richzendy-terraform:~/Documents/my-terraform/01_aws_instancia$ terraform init
Initializing the backend...
Initializing provider plugins...
- Finding latest version of hashicorp/aws...
? Error: Failed to install provider
?
? Error while installing hashicorp/aws v4.35.0: could not query provider registry for registry.terraform.io/hashicorp/aws: failed to retrieve authentication checksums for provider: 404 Not Found
? returned from releases.hashicorp.com
This error is weird and poor documented in Internet, but is related with the block to Venezuela IP addresses doubt to the sanctions, the solution is to use a VPN to mask your IP address, in this case i’ve recommend TunnelBear because have a free plan, with the new IP address you can download and install the provider without any problem.
To know how to setup TunnelBear in Linux see this link: https://www.tunnelbear.com/blog/linux_support/