Skip to content

Instantly share code, notes, and snippets.

@exarkun
Last active March 11, 2021 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save exarkun/f8610decc0f65611747f40b136f5bc16 to your computer and use it in GitHub Desktop.
Save exarkun/f8610decc0f65611747f40b136f5bc16 to your computer and use it in GitHub Desktop.
terraform {
required_version = "~> 0.13"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 2.65"
}
}
}
$ terraform init
Initializing the backend...
Initializing provider plugins...
- Finding latest version of hashicorp/aws...
Error: Failed to query available provider packages
Could not retrieve the list of available versions for provider hashicorp/aws:
provider registry.terraform.io/hashicorp/aws was not found in any of the
search locations
- /nix/store/fam6azhh0wlpaxa27rbxkjyqzrla50xn-tf-plugin-env/bin
{ pkgs ? import <nixpkgs> { } }:
pkgs.stdenv.mkDerivation {
name = "tf";
buildInputs = with pkgs; [
awscli
(terraform_0_13.withPlugins (ps: [
# This lets us manage our VMs, DNS, etc on AWS.
ps.aws
]))
];
}
$ find /nix/store/fam6azhh0wlpaxa27rbxkjyqzrla50xn-tf-plugin-env/bin/
/nix/store/fam6azhh0wlpaxa27rbxkjyqzrla50xn-tf-plugin-env/bin/
/nix/store/fam6azhh0wlpaxa27rbxkjyqzrla50xn-tf-plugin-env/bin/terraform-provider-aws_v2.65.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment