Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions environments/dev/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test = test
2 changes: 2 additions & 0 deletions environments/dev/us-east-1/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
region = "us-east-1"
restrict_public_buckets = true
2 changes: 2 additions & 0 deletions environments/dev/us-west-1/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
region = "us-west-1"
restrict_public_buckets = false
1 change: 1 addition & 0 deletions environments/prod/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test = test
8 changes: 2 additions & 6 deletions examples/account-public-access/main.tf
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
provider "aws" {
region = local.region
region = var.region

# Make it faster by skipping something
skip_metadata_api_check = true
skip_region_validation = true
skip_credentials_validation = true
}

locals {
region = "eu-west-1"
}

module "account_public_access" {
source = "../../modules/account-public-access"

block_public_acls = true
block_public_policy = true
ignore_public_acls = true
restrict_public_buckets = true
restrict_public_buckets = var.restrict_public_buckets
}
7 changes: 7 additions & 0 deletions examples/account-public-access/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
variable "region" {
default = "us-east-1"
}

variable "restrict_public_buckets" {
default = true
}
2 changes: 1 addition & 1 deletion examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ provider "aws" {

locals {
bucket_name = "s3-bucket-${random_pet.this.id}"
region = "eu-west-1"
region = "us-west-2"
}

data "aws_caller_identity" "current" {}
Expand Down
Loading