How to configure Terraform to use Local Providers from Nexus

If your organization has blocked registry.terraform.io and has instead downloaded the provider binaries to Nexus, then you can do the following to still make your Terraform execute correctly. Step 1 - Download the Required Providers In our example, we need the following providers: AWS Archive These commands below are running directly from the pipeline that executes the Terraform: # Download the providers from the Nexus repository - curl -u ${Nexus_REPO_USER}:${Nexus_REPO_PASS} -o terraform-provider-aws4....

May 29, 2023 · 2 min · 234 words · AO