Skip to content

Commit 816e61a

Browse files
Bump module versions and update GitHub workflows (#125)
* Updates * Auto Format * Updates * Updates * Updates * Updates Co-authored-by: cloudpossebot <[email protected]>
1 parent 6947cac commit 816e61a

File tree

11 files changed

+1045
-209
lines changed

11 files changed

+1045
-209
lines changed

.github/auto-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ template: |
4747
4848
replacers:
4949
# Remove irrelevant information from Renovate bot
50-
- search: '/(?<=---\s+)+^#.*(Renovate configuration|Configuration)(?:.|\n)*?This PR has been generated .*/gm'
50+
- search: '/(?<=---\s)\s*^#.*(Renovate configuration|Configuration)(?:.|\n)*?This PR has been generated .*/gm'
5151
replace: ''
5252
# Remove Renovate bot banner image
5353
- search: '/\[!\[[^\]]*Renovate\][^\]]*\](\([^)]*\))?\s*\n+/gm'

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2019-2021 Cloud Posse, LLC
189+
Copyright 2019-2022 Cloud Posse, LLC
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.
413413

414414
## Copyright
415415

416-
Copyright © 2017-2021 [Cloud Posse, LLC](https://cpco.io/copyright)
416+
Copyright © 2017-2022 [Cloud Posse, LLC](https://cpco.io/copyright)
417417

418418

419419

examples/complete/outputs.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ output "bucket_domain_name" {
55

66
output "bucket_id" {
77
value = module.s3_bucket.bucket_id
8-
description = "Bucket Name (aka ID)"
8+
description = "Bucket ID"
99
}
1010

1111
output "bucket_arn" {
@@ -15,12 +15,12 @@ output "bucket_arn" {
1515

1616
output "replication_bucket_id" {
1717
value = local.replication_enabled ? join("", module.s3_bucket_replication_target.*.bucket_id) : null
18-
description = "Bucket Name (aka ID)"
18+
description = "Replication bucket ID"
1919
}
2020

2121
output "replication_bucket_arn" {
2222
value = local.replication_enabled ? join("", module.s3_bucket_replication_target.*.bucket_arn) : null
23-
description = "Bucket ARN"
23+
description = "Replication bucket bucket ARN"
2424
}
2525

2626
output "replication_role_arn" {

examples/complete/privileged-principals.tf

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
locals {
22
account_id = data.aws_caller_identity.current.account_id
3+
34
principal_names = [
45
"arn:aws:iam::${local.account_id}:role/${join("", module.deployment_principal_label.*.id)}",
56
"arn:aws:iam::${local.account_id}:role/${join("", module.additional_deployment_principal_label.*.id)}"
67
]
8+
79
privileged_principal_arns = var.privileged_principal_enabled ? {
810
(local.principal_names[0]) = [""]
911
(local.principal_names[1]) = ["prefix1/", "prefix2/"]
@@ -43,7 +45,8 @@ resource "aws_iam_policy" "deployment_iam_policy" {
4345

4446
module "deployment_principal_label" {
4547
source = "cloudposse/label/null"
46-
version = "0.24.1"
48+
version = "0.25.0"
49+
4750
enabled = var.privileged_principal_enabled
4851

4952
attributes = ["deployment"]
@@ -60,10 +63,10 @@ resource "aws_iam_role" "deployment_iam_role" {
6063
tags = module.deployment_principal_label.tags
6164
}
6265

63-
6466
module "additional_deployment_principal_label" {
6567
source = "cloudposse/label/null"
66-
version = "0.24.1"
68+
version = "0.25.0"
69+
6770
enabled = var.privileged_principal_enabled
6871

6972
attributes = ["deployment", "additional"]

examples/complete/replication.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
locals {
22
replication_enabled = length(var.s3_replication_rules) > 0
3+
34
extra_rule = local.replication_enabled ? {
45
id = "replication-test-explicit-bucket"
56
status = "Enabled"
67
prefix = "/extra"
78
priority = 5
89
destination_bucket = module.s3_bucket_replication_target_extra[0].bucket_arn
910
} : null
11+
1012
s3_replication_rules = local.replication_enabled ? concat(var.s3_replication_rules, [local.extra_rule]) : null
1113
}
1214

examples/complete/replication.us-east-2.tfvars

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
# Do not set "enabled", will be set by test framework
22
# enabled = true
3-
region = "us-east-2"
4-
namespace = "eg"
5-
stage = "test"
6-
name = "s3-replication-test"
7-
acl = "private"
8-
force_destroy = true
9-
versioning_enabled = true
3+
4+
region = "us-east-2"
5+
6+
namespace = "eg"
7+
8+
stage = "test"
9+
10+
name = "s3-replication-test"
11+
12+
acl = "private"
13+
14+
force_destroy = true
15+
16+
versioning_enabled = true
17+
1018
allow_encrypted_uploads_only = true
19+
1120
allowed_bucket_actions = [
1221
"s3:PutObject",
1322
"s3:PutObjectAcl",
@@ -26,4 +35,4 @@ s3_replication_rules = [
2635
status = "Enabled"
2736
prefix = "/main"
2837
}
29-
]
38+
]

examples/complete/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ variable "grants" {
1818

1919
variable "lifecycle_rules" {
2020
type = list(object({
21-
prefix = string
2221
enabled = bool
22+
prefix = string
2323
tags = map(string)
2424

2525
enable_glacier_transition = bool

test/src/examples_complete_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,4 +372,4 @@ func TestExamplesCompleteDisabled(t *testing.T) {
372372

373373
// Verify we're getting back the outputs we expect
374374
assert.Empty(t, s3ReplicationBucketId, "When disabled, module should have no outputs.")
375-
}
375+
}

test/src/go.mod

Lines changed: 83 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,88 @@
11
module github.com/cloudposse/terraform-aws-s3-bucket
22

3-
go 1.14
3+
go 1.17
44

55
require (
6-
github.com/gruntwork-io/terratest v0.28.10
7-
github.com/stretchr/testify v1.5.1
6+
github.com/gruntwork-io/terratest v0.38.8
7+
github.com/stretchr/testify v1.7.0
8+
)
9+
10+
require (
11+
cloud.google.com/go v0.83.0 // indirect
12+
cloud.google.com/go/storage v1.10.0 // indirect
13+
github.com/agext/levenshtein v1.2.3 // indirect
14+
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
15+
github.com/aws/aws-sdk-go v1.40.56 // indirect
16+
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
17+
github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect
18+
github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect
19+
github.com/davecgh/go-spew v1.1.1 // indirect
20+
github.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c // indirect
21+
github.com/go-errors/errors v1.0.2-0.20180813162953-d98b870cc4e0 // indirect
22+
github.com/go-logr/logr v0.2.0 // indirect
23+
github.com/go-sql-driver/mysql v1.4.1 // indirect
24+
github.com/gogo/protobuf v1.3.2 // indirect
25+
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
26+
github.com/golang/protobuf v1.5.2 // indirect
27+
github.com/golang/snappy v0.0.3 // indirect
28+
github.com/google/gofuzz v1.1.0 // indirect
29+
github.com/google/uuid v1.2.0 // indirect
30+
github.com/googleapis/gax-go/v2 v2.0.5 // indirect
31+
github.com/googleapis/gnostic v0.4.1 // indirect
32+
github.com/gruntwork-io/go-commons v0.8.0 // indirect
33+
github.com/hashicorp/errwrap v1.0.0 // indirect
34+
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
35+
github.com/hashicorp/go-getter v1.5.9 // indirect
36+
github.com/hashicorp/go-multierror v1.1.0 // indirect
37+
github.com/hashicorp/go-safetemp v1.0.0 // indirect
38+
github.com/hashicorp/go-version v1.3.0 // indirect
39+
github.com/hashicorp/hcl/v2 v2.9.1 // indirect
40+
github.com/hashicorp/terraform-json v0.12.0 // indirect
41+
github.com/imdario/mergo v0.3.11 // indirect
42+
github.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect
43+
github.com/jmespath/go-jmespath v0.4.0 // indirect
44+
github.com/json-iterator/go v1.1.11 // indirect
45+
github.com/jstemmer/go-junit-report v0.9.1 // indirect
46+
github.com/klauspost/compress v1.13.0 // indirect
47+
github.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326 // indirect
48+
github.com/mitchellh/go-homedir v1.1.0 // indirect
49+
github.com/mitchellh/go-testing-interface v1.0.0 // indirect
50+
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
51+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
52+
github.com/modern-go/reflect2 v1.0.1 // indirect
53+
github.com/pmezard/go-difflib v1.0.0 // indirect
54+
github.com/pquerna/otp v1.2.0 // indirect
55+
github.com/russross/blackfriday/v2 v2.1.0 // indirect
56+
github.com/spf13/pflag v1.0.5 // indirect
57+
github.com/tmccombs/hcl2json v0.3.3 // indirect
58+
github.com/ulikunitz/xz v0.5.8 // indirect
59+
github.com/urfave/cli v1.22.2 // indirect
60+
github.com/zclconf/go-cty v1.8.1 // indirect
61+
go.opencensus.io v0.23.0 // indirect
62+
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a // indirect
63+
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect
64+
golang.org/x/mod v0.4.2 // indirect
65+
golang.org/x/net v0.0.0-20210614182718-04defd469f4e // indirect
66+
golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c // indirect
67+
golang.org/x/sys v0.0.0-20210603125802-9665404d3644 // indirect
68+
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect
69+
golang.org/x/text v0.3.6 // indirect
70+
golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect
71+
golang.org/x/tools v0.1.2 // indirect
72+
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
73+
google.golang.org/api v0.47.0 // indirect
74+
google.golang.org/appengine v1.6.7 // indirect
75+
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c // indirect
76+
google.golang.org/grpc v1.38.0 // indirect
77+
google.golang.org/protobuf v1.26.0 // indirect
78+
gopkg.in/inf.v0 v0.9.1 // indirect
79+
gopkg.in/yaml.v2 v2.4.0 // indirect
80+
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
81+
k8s.io/api v0.20.6 // indirect
82+
k8s.io/apimachinery v0.20.6 // indirect
83+
k8s.io/client-go v0.20.6 // indirect
84+
k8s.io/klog/v2 v2.4.0 // indirect
85+
k8s.io/utils v0.0.0-20201110183641-67b214c5f920 // indirect
86+
sigs.k8s.io/structured-merge-diff/v4 v4.0.3 // indirect
87+
sigs.k8s.io/yaml v1.2.0 // indirect
888
)

0 commit comments

Comments
 (0)