Skip to content

Commit

Permalink
Merge pull request #20 from binbashar/enhancement/provider-version
Browse files Browse the repository at this point in the history
Upgrade provider version
  • Loading branch information
damianleys committed Sep 14, 2022
2 parents 2786ea5 + fd2adeb commit cce4ddb
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 42 deletions.
18 changes: 8 additions & 10 deletions examples/s3-tfstate-backend-crr-ssl/config.tf
Expand Up @@ -2,17 +2,15 @@
# AWS Provider Settings #
#=============================#
provider "aws" {
alias = "main_region"
region = var.region
profile = var.profile
shared_credentials_file = "~/.aws/${var.namespace}/config"
alias = "main_region"
region = var.region
profile = var.profile
}

provider "aws" {
alias = "secondary_region"
region = var.region_secondary
profile = var.profile
shared_credentials_file = "~/.aws/${var.namespace}/config"
alias = "secondary_region"
region = var.region_secondary
profile = var.profile
}

variable "region" {
Expand All @@ -37,9 +35,9 @@ variable "profile" {
# Backend Config (partial) #
#=============================#
terraform {
required_version = ">= 1.0.9"
required_version = ">= 1.1.9"

required_providers {
aws = "~> 3.0"
aws = "~> 4.0"
}
}
18 changes: 8 additions & 10 deletions examples/s3-tfstate-backend-crr-vpce/config.tf
Expand Up @@ -2,17 +2,15 @@
# AWS Provider Settings #
#=============================#
provider "aws" {
alias = "main_region"
region = var.region
profile = var.profile
shared_credentials_file = "~/.aws/${var.namespace}/config"
alias = "main_region"
region = var.region
profile = var.profile
}

provider "aws" {
alias = "secondary_region"
region = var.region_secondary
profile = var.profile
shared_credentials_file = "~/.aws/${var.namespace}/config"
alias = "secondary_region"
region = var.region_secondary
profile = var.profile
}

variable "region" {
Expand All @@ -37,9 +35,9 @@ variable "profile" {
# Backend Config (partial) #
#=============================#
terraform {
required_version = ">= 1.0.9"
required_version = ">= 1.1.9"

required_providers {
aws = "~> 3.0"
aws = "~> 4.0"
}
}
18 changes: 8 additions & 10 deletions examples/s3-tfstate-backend-crr/config.tf
Expand Up @@ -2,17 +2,15 @@
# AWS Provider Settings #
#=============================#
provider "aws" {
alias = "main_region"
region = var.region
profile = var.profile
shared_credentials_file = "~/.aws/${var.namespace}/config"
alias = "main_region"
region = var.region
profile = var.profile
}

provider "aws" {
alias = "secondary_region"
region = var.region_secondary
profile = var.profile
shared_credentials_file = "~/.aws/${var.namespace}/config"
alias = "secondary_region"
region = var.region_secondary
profile = var.profile
}

variable "region" {
Expand All @@ -37,9 +35,9 @@ variable "profile" {
# Backend Config (partial) #
#=============================#
terraform {
required_version = ">= 1.0.9"
required_version = ">= 1.1.9"

required_providers {
aws = "~> 3.0"
aws = "~> 4.0"
}
}
18 changes: 8 additions & 10 deletions examples/s3-tfstate-backend/config.tf
Expand Up @@ -2,17 +2,15 @@
# AWS Provider Settings #
#=============================#
provider "aws" {
alias = "main_region"
region = var.region
profile = var.profile
shared_credentials_file = "~/.aws/${var.namespace}/config"
alias = "main_region"
region = var.region
profile = var.profile
}

provider "aws" {
alias = "secondary_region"
region = var.region_secondary
profile = var.profile
shared_credentials_file = "~/.aws/${var.namespace}/config"
alias = "secondary_region"
region = var.region_secondary
profile = var.profile
}

variable "region" {
Expand All @@ -37,9 +35,9 @@ variable "profile" {
# Backend Config (partial) #
#=============================#
terraform {
required_version = ">= 1.0.9"
required_version = ">= 1.1.9"

required_providers {
aws = "~> 3.0"
aws = "~> 4.0"
}
}
4 changes: 2 additions & 2 deletions versions.tf
@@ -1,10 +1,10 @@
terraform {
required_version = ">= 1.0.9"
required_version = ">= 1.1.9"

required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
version = "~> 4.0"
configuration_aliases = [aws.primary, aws.secondary]
}
}
Expand Down

0 comments on commit cce4ddb

Please sign in to comment.