Skip to content

Commit

Permalink
refactor aws provider to retrieve from parent module (#3)
Browse files Browse the repository at this point in the history
* moves provider block into root module, rather than child

* remove provider from WAF resource, as inherited from parent module

* re-add providers reference now it is passed to child module

* add required providers

* add required providers

* add required providers
  • Loading branch information
beckywhitemartin authored Oct 24, 2024
1 parent 203f156 commit a49581a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ locals {
}
}

provider "aws" {
region = "us-east-1"
alias = "us-east-1"
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
configuration_aliases = [ aws.us-east-1 ]
}
}
}

0 comments on commit a49581a

Please sign in to comment.