Releases: cloudposse/terraform-aws-s3-website
Releases · cloudposse/terraform-aws-s3-website
0.10.0: Updates to ChatOps - Automated commit (#39)
## 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
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
what
- Port module to Terraform 0.12
- Pin all providers
- Add example for testing
- Add
bats
andterratest
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
what
- Add
delimiter
tolog
module
why
- Missing
0.6.0: Add option to redirect all requests (#24)
* 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
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)
* Migrate readme yaml * Move link to reference section * Regenerate README.md * Minor fixes
0.5.2
0.5.1
0.5.0
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"
}
}
]
}