Skip to content

Releases: cloudposse/terraform-aws-s3-website

0.10.0: Updates to ChatOps - Automated commit (#39)

14 Jul 05:19
c789362
Compare
Choose a tag to compare
## What
* Adds chatops commands
  - '/test all'
  - '/test bats'
  - '/test readme'
  - '/test terratest'
* Drops codefresh
* Drops slash-command-dispatch
* Removes codefresh badge
* Rebuilds README

## Why
* Change over from codefresh to GH Actions
* Facilitate testing of PRs from forks

0.9.0 fix type and formatting of deployment_arns variable

04 Mar 19:08
ee9e513
Compare
Choose a tag to compare

what

  • fix type and formatting of deployment_arns variable
  • fix typos

why

  • The current type of var.deployment_arns is set as map(string). This expects both the key and value to be of type string. The proper type is map(string, list(string))

0.8.0 Convert to TF 0.12. Add tests. Add Codefresh test pipeline

03 Jul 19:48
cb66688
Compare
Choose a tag to compare

what

  • Port module to Terraform 0.12
  • Pin all providers
  • Add example for testing
  • Add bats and terratest for the example
  • Add Codefresh badge to point to the test pipeline in terraform-modules project
  • Update README

why

  • Module currently does not work with 0.12. Much easier syntax
  • Better regression control
  • Automatically test the example on every commit and pull request
  • Provision resources on AWS in the test account and check the outputs for the correct values
  • terraform-modules project contains pipelines for all terraform modules

0.7.0 Add `delimiter` to `log` module

26 Apr 16:33
Compare
Choose a tag to compare

what

  • Add delimiter to log module

why

  • Missing

0.6.0: Add option to redirect all requests (#24)

15 Jan 03:42
Compare
Choose a tag to compare
* add redirect_all_requests_to

* dynamic website config

* terraform fmt

* regen readme

* remove unncessary quotes and interpolations

* properly regen README using yaml

0.5.4: Update readme yaml file and rebuild md

10 Dec 09:46
769ba9c
Compare
Choose a tag to compare

what

  • updated README.yaml file
  • add tags and categories
  • rebuild README.md file

why

  • need to add categories and tags so we can pull them into the documentation

0.5.3: Migrate readme yaml (#19)

31 Jul 19:48
Compare
Choose a tag to compare
* Migrate readme yaml

* Move link to reference section

* Regenerate README.md

* Minor fixes

0.5.2

10 May 22:48
fd49440
Compare
Choose a tag to compare

what

  • Add website_endpoint output
  • Add TravisCI

why

  • Since the module creates S3-backed websites, the website URL output is needed (to be used in other Terraform modules, e.g. as an Origin for CloudFront distribution)
  • To lint Terraform code and monitor builds

0.5.1

27 Oct 01:29
Compare
Choose a tag to compare

Remove sid from aws_iam_policy_document, let AWS generate them

what

  • Remove sid from aws_iam_policy_document, let AWS generate them

why

  • To prevent sid duplication

0.5.0

26 Oct 16:46
Compare
Choose a tag to compare

Change format of deployment_arns to Map of ARNs to lists of S3 prefixes

what

  • Changed format of deployment_arns to map of ARNs to lists of S3 prefixes

why

  • To be able to grant an ARN the deployment actions permissions on more than one S3 path

test

given the following deployment_arns map

variable "deployment_arns" {
  default     = {
    "arn:aws:s3:::principal3" = ["/prefix1", "/prefix2"]
    "arn:aws:s3:::principal4" = [""]
  }
}

the generated policy looks like this:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowGetObject",
      "Effect": "Allow",
      "Action": "s3:GetObject",
      "Resource": "arn:aws:s3:::bucket1/*",
      "Principal": "*"
    },
    {
      "Sid": "AllowReplication",
      "Effect": "Allow",
      "Action": [
        "s3:ReplicateObject",
        "s3:ReplicateDelete",
        "s3:PutBucketVersioning",
        "s3:GetBucketVersioning"
      ],
      "Resource": [
        "arn:aws:s3:::bucket1/*",
        "arn:aws:s3:::bucket1"
      ],
      "Principal": {
        "AWS": [
          "arn:aws:s3:::principal2",
          "arn:aws:s3:::principal1"
        ]
      }
    },
    {
      "Sid": "AllowDeployment",
      "Effect": "Allow",
      "Action": [
        "s3:PutObjectAcl",
        "s3:PutObject",
        "s3:ListBucketMultipartUploads",
        "s3:ListBucket",
        "s3:GetObject",
        "s3:GetBucketLocation",
        "s3:DeleteObject",
        "s3:AbortMultipartUpload"
      ],
      "Resource": [
        "arn:aws:s3:::bucket1/prefix2/*",
        "arn:aws:s3:::bucket1/prefix2",
        "arn:aws:s3:::bucket1/prefix1/*",
        "arn:aws:s3:::bucket1/prefix1"
      ],
      "Principal": {
        "AWS": "arn:aws:s3:::principal3"
      }
    },
    {
      "Sid": "AllowDeployment",
      "Effect": "Allow",
      "Action": [
        "s3:PutObjectAcl",
        "s3:PutObject",
        "s3:ListBucketMultipartUploads",
        "s3:ListBucket",
        "s3:GetObject",
        "s3:GetBucketLocation",
        "s3:DeleteObject",
        "s3:AbortMultipartUpload"
      ],
      "Resource": [
        "arn:aws:s3:::bucket1/*",
        "arn:aws:s3:::bucket1"
      ],
      "Principal": {
        "AWS": "arn:aws:s3:::principal4"
      }
    }
  ]
}