Controlling the version of terraform provider

Add version argument in the provider block of terraform init to control the terraform provider from automatic version upgrades.

The value of the version can be a single version or a range of versions. You can use the following formats to specify a range of versions:

Example:

provider "aws" {
  version = "~> 1.0"
  access_key = "${var.aws_access_key}"
  secret_key = "${var.aws_secret_key}"
  region     = "${var.aws_region}"
}