4.2
Providers are now defined outside of the module, resolving issue with resource deletion.
This version deprecates the use of the aws_region
, in profit of the providers
input.
providers
expect an existing provider. The example contains two providers, which can then be passed down to the module, as follow:
provider "aws" {
alias = "london"
region = "eu-west-2"
}
provider "aws" {
alias = "ireland"
region = "eu-west-1"
}
module "example_team_rds" {
...
providers = {
# Can be either "aws.london" or "aws.london"
aws = "aws.london"
}
}```