Skip to content

Instantly share code, notes, and snippets.

@straubt1
Last active December 2, 2020 22:40
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 straubt1/de3189fe8215c13cde600ccd24142a12 to your computer and use it in GitHub Desktop.
Save straubt1/de3189fe8215c13cde600ccd24142a12 to your computer and use it in GitHub Desktop.
Local Terraform Provider Diffs in TF 0.12 and TF 0.13

TF 0.12.29

main.tf:

terraform {
  required_providers {
    aws = {}
  }
  required_version = "~> 0.12.29"
}

Folder Structure:

.
├── main.tf
└── terraform.d
    └── plugins
        └── darwin_amd64
            └── terraform-provider-aws_v2.57.0_x4

3 directories, 2 files

Terraform Init:

$ terraform init

* provider.aws: version = "~> 2.57"

TF 0.13.5

main.tf:

terraform {
  required_providers {
    aws = {}
  }
  required_version = "~> 0.13.5"
}

Folder Structure:

.
├── .terraform
│   └── plugins
│       └── registry.terraform.io
│           └── hashicorp
│               └── aws
│                   └── 2.57.0
│                       └── darwin_amd64
│                           └── terraform-provider-aws_v2.57.0_x4
└── main.tf

7 directories, 2 files

Terraform Init:

$ terraform init

- Using previously-installed hashicorp/aws v2.57.0

TF 0.14.0

main.tf:

terraform {
  required_providers {
    aws = {}
  }
  required_version = "~> 0.14.0"
}

Folder Structure:

.
├── main.tf
└── terraform.d
    └── plugins
        └── registry.terraform.io
            └── hashicorp
                └── aws
                    └── 2.57.0
                        └── darwin_amd64
                            └── terraform-provider-aws_v2.57.0_x4

Terraform Init:

$ terraform init

- Finding latest version of hashicorp/aws...
- Installing hashicorp/aws v2.57.0...
- Installed hashicorp/aws v2.57.0 (unauthenticated)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment