diff --git a/README.md b/README.md index 4fbffab..52180a3 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ From module version 3.2, this replaces the use of the `aws-s3-region`.** ```hcl module "example_team_s3" { - source = "github.com/ministryofjustice/cloud-platform-terraform-s3-bucket" + source = "github.com/ministryofjustice/cloud-platform-terraform-s3-bucket?ref=4.0" team_name = "example-repo" acl = "public-read" @@ -27,7 +27,7 @@ module "example_team_s3" { # This is a new input. providers = { - aws = "aws.london" + aws = aws.london } } ``` diff --git a/example/main.tf b/example/main.tf index ed90e36..2e17398 100644 --- a/example/main.tf +++ b/example/main.tf @@ -1,5 +1,6 @@ terraform { - backend "s3" {} + backend "s3" { + } } provider "aws" { @@ -17,3 +18,4 @@ provider "aws" { alias = "ireland" region = "eu-west-1" } + diff --git a/example/s3.tf b/example/s3.tf index a3afd6a..688297e 100644 --- a/example/s3.tf +++ b/example/s3.tf @@ -5,7 +5,7 @@ * */ module "example_team_s3_bucket" { - source = "github.com/ministryofjustice/cloud-platform-terraform-s3-bucket?ref=3.3" + source = "github.com/ministryofjustice/cloud-platform-terraform-s3-bucket?ref=4.0" team_name = "cloudplatform" business-unit = "mojdigital" @@ -16,10 +16,8 @@ module "example_team_s3_bucket" { providers = { # Can be either "aws.london" or "aws.ireland" - aws = "aws.london" - } - - /* + aws = aws.london + /* * The following example can be used if you need to define CORS rules for your s3 bucket. * Follow the guidance here "https://www.terraform.io/docs/providers/aws/r/s3_bucket.html#using-cors" * @@ -80,13 +78,13 @@ module "example_team_s3_bucket" { */ - /* + /* * The following are exampls of bucket and user policies. They are treated as * templates. Currently, the only available variable is `$${bucket_arn}`. * */ - /* + /* * Allow a user (foobar) from another account (012345678901) to get objects from * this bucket. * @@ -113,7 +111,7 @@ EOF */ - /* + /* * Override the default policy for the generated machine user of this bucket. * @@ -142,6 +140,7 @@ user_policy = <