Skip to content

Commit

Permalink
Remove region for AWS provider.
Browse files Browse the repository at this point in the history
This fixes the following Terraform error:

```
Error: Missing required argument

  on api_gateway.tf line 1, in provider "aws":
   1: provider "aws" {

The argument "region" is required, but no definition was found.
```
  • Loading branch information
lgarron committed May 9, 2021
1 parent 9295b0b commit 03ba099
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion api_gateway.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
provider "aws" {
region = "us-west-2"
}

provider "aws" {
Expand Down
1 change: 0 additions & 1 deletion backend.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# create an S3 bucket to store the state file in
resource "aws_s3_bucket" "terraform-state-storage-s3" {
bucket = "wca-terraform-state"
region = "us-west-2"

versioning {
# enable with caution, makes deleting S3 buckets tricky
Expand Down

0 comments on commit 03ba099

Please # to comment.