-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps): update terraform cloudposse/s3-bucket/aws to v4 (main) - abandoned #30
Conversation
Could this be reviewed please as this issue is causing us some problems in our pipelines |
edaa739
to
a8e241d
Compare
/terratest |
@griff92 does using this branch from renovate work to fix your issue? |
@griff92 we can't merge this PR without tests passing and we're having an issue with the tests due to an old version of our VPC module being used in the examples/complete test case. See the below screenshot. Would you be interested in working on this, fixing those tests, and we'll work on getting this merged? |
Thanks for getting onto this so quick. Yeah, I wouldn’t mind contributing. Leave it with me and I’ll look at it when I can. Thanks. |
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. ⚠ Warning: custom changes will be lost. |
Good stuff @griff92 -- thanks for taking it on. Check out this PR which is going through the same issue with regard to the VPC causing our tests to fail. The fixes from that contributor's PRs should help with providing a roadmap of what you need to do. |
Autoclosing SkippedThis PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error. |
f4118cc
to
54b8bde
Compare
Tests fixed in main, rebasing this now |
/terratest |
This PR contains the following updates:
2.0.0
->4.0.0
Release Notes
cloudposse/terraform-aws-s3-bucket (cloudposse/s3-bucket/aws)
v4.0.0
Compare Source
Bug fixes and enhancements combined into a single breaking release @aknysh (#202)
Breaking Changes
Terraform version 1.3.0 or later is now required.
policy
input removedThe deprecated
policy
input has been removed. Usesource_policy_documents
instead.Convert from
to
Do not use list modifiers like
sort
,compact
, ordistinct
on the list, or it will trigger anError: Invalid count argument
. The length of the list must be known at plan time.Logging configuration converted to list
To fix #182, the
logging
input has been converted to a list. If you have a logging configuration, simply surround it with brackets.Replication rules brought into alignment with Terraform resource
Previously, the
s3_replication_rules
input had some deviations from the aws_s3_bucket_replication_configuration Terraform resource. Via the use of optional attributes, the input now closely matches the resource while providing backward compatibility, with a few exceptions.source_selection_criteria.sse_kms_encrypted_objects
was documented as an object with one member,enabled
, of typebool
. However, it only worked when set to thestring
"Enabled". It has been replaced with the resource's choice ofstatus
of type String.replication_time
. To enable Metrics without Replication Time Control, you must setreplication_time.status = "Disabled"
.These are not changes, just continued deviations from the resources:
existing_object_replication
cannot be set.token
to allow replication to be enabled on an Object Lock-enabled bucket cannot be set.what
local.source_policy_documents
and deprecated variablepolicy
(because of that, pump the module to a major version)lifecycle_configuration_rules
ands3_replication_rules
from loosely typed objects to fully typed objects with optional attributes.bucket_id
variablewhy
policy
was empty, meaning it had to be removed based on content, which would not be known at plan time if thepolicy
input was being generated.explanation
Any list manipulation functions should not be used in
count
since it can lead to the error:Using the local like this
would not work either if
var.policy
depends on apply-time resources from other TF modules.General rules:
When using
for_each
, the map keys have to be known at plan time (the map values are not required to be know at plan time)When using
count
, the length of the list must be know at plan time, the items inside the list are not. That does not mean that the list must be static with the length known in advance, the list can be dynamic and come from a remote state or data sources which Terraform evaluates first during plan, it just can’t come from other resources (which are only known after apply)When using
count
, no list manipulating functions can be used incount
- it will lead to theThe "count" value depends on resource attributes that cannot be determined until apply
error in some casesv3.1.3
Compare Source
Unfortunately, this change makes
count
unknown at plan time in certain situations. In general, you cannot use the output ofcompact()
incount
.The solution is to stop using the deprecated
policy
input and revert to 3.1.2 or upgrade to 4.0.🚀 Enhancements
Fix `source_policy_documents` combined with `var.policy` being ignored @johncblandii (#201)
what
var.source_policy_documents
tolocal.source_policy_documents
sovar.policy
usage was still supportedwhy
var,source_policy_documents
sovar.policy
being combined withvar.source_policy_documents
intolocal.source_policy_documents
does not providetrue
for the ternary to executereferences
v3.1.2
: Fix Public Bucket CreationCompare Source
What's Changed
New Contributors
Full Changelog: cloudposse/terraform-aws-s3-bucket@3.1.1...3.1.2
v3.1.1
Compare Source
🐛 Bug Fixes
Revert change to Transfer Acceleration from #178 @Nuru (#180)
what
why
v3.1.0
: Support new AWS S3 defaults (ACL prohibited)Compare Source
Note: this version introduced drift detection and correction for Transfer Acceleration. Unfortunately, that change prevents deployment of buckets in regions that do not support Transfer Acceleration. Version 3.1.1 reverts that change so that S3 buckets can be deployed by this module in all regions. It does, however, mean that when
var.transfer_acceleration_enabled
isfalse
, Terraform does not track or revert changes to Transfer Acceleration made outside of this module.Make compatible with new S3 defaults. Add user permissions boundary. @Nuru (#178)
what
aws_s3_bucket_accelerate_configuration
andaws_s3_bucket_versioning
resources even when the feature is disabled, to enable drift detectionwhy
references
Always include `aws_s3_bucket_versioning` resource @mviamari (#172)
what
aws_s3_bucket_versioning
resource to track changes made to bucket versioning configurationwhy
aws_s3_bucket_versioning
, the expectation is that the bucket versioning is disabled/suspend for the bucket. If bucket versioning is turned on outside of terraform (e.g. through the console), the change is not detected by terraform unless theaws_s3_bucket_versioning
resource exists.references
Add support for permission boundaries on replication IAM role @mchristopher (#170)
what
why
references
🤖 Automatic Updates
Update README.md and docs @cloudpossebot (#164)
what
This is an auto-generated PR that updates the README.md and docs
why
To have most recent changes of README.md and doc from origin templates
v3.0.0
: Static Website Support, remove awsutils providerCompare Source
Breaking changes
This release has what can be considered breaking changes, but mostly because it either reverts breaking changes introduced in v2.0.2 or fixes features that were previously broken and unusable.
website_inputs
input is replaced bywebsite_configuration
andwebsite_redirect_all_requests_to
. Thecors_rule_inputs
input is replaced bycors_configuration
. Thanks to @jurgen-weber-deltatre for helping with this. If you were not using these inputs, then this is not a breaking change.If neither of the above issues affects you, then there are no breaking changes between v2.0.0 and this release and you can safely upgrade without making any changes to your code.
New Features
cloudposse/awsutils
Terraform provider with the AWS region and been reverted. This module no longer uses that provider.website_configuration
andcors_configuration
, or withwebsite_redirect_all_requests_to
. The website endpoint and base domain are now available as outputs.store_access_key_in_ssm
. When stored in SSM, the secret key is not output by this module as a Terraform output, preventing it from being stored unencrypted in the Terraform state file.access_key_enabled = false
. You can also use this feature to rotate an access key by setting it tofalse
and applying to delete the key, then setting it totrue
and applying to create a new one.Note that in general we now recommend against creating an IAM user, and recommend using AWS OIDC to create an authentication path for users and systems that do not have native IAM credentials. Also note that you can assign permissions to existing AWS users and roles via
grants
orprivileged_principal_arns
.what && why
terraform-aws-s3-user
to v1.0.0 and add inputsaccess_key_enabled
,store_access_key_in_ssm
, andssm_base_path
in order tocloudposse/awsutils
Terraform provider. Seeterraform-aws-iam-system-user
v1.0.0 Release Notes for further details and justification.website_inputs
(which never worked) withwebsite_configuration
andwebsite_redirect_all_requests_to
. See #142 for further details and justification.cors_rule_inputs
withcors_configuration
to match resource name.references
v2.0.3
Compare Source
Deprecated
The changes introduce in v2.0.2 were problematic and have been removed in v3.0.0. It is not recommended to use this version or version 2.0.2.
🤖 Automatic Updates
Update Terraform cloudposse/iam-s3-user/aws to v0.15.10 @renovate (#153)
This PR contains the following updates:
0.15.9
->0.15.10
v2.0.2
: minor breaking change (awsutils provider config)Compare Source
Deprecated
The changes introduce in this release were problematic and have been removed in v3.0.0. It is not recommended to use this version or version 2.0.3.
🤖 Automatic Updates
NOTE: This release requires the
cloudposse/awsutils
Terraform provider to be defined with a region. This can and should be the same region you have configured in youraws
provider. The reason for this new provider is due to new functionality with a dependent module (which uses this module which requirescloudposse/awsutils
) in this repo. (The new feature allows configuring S3 user AWS access keys to expire.)Update Terraform cloudposse/iam-s3-user/aws to v0.15.9 @renovate (#119)
This PR contains the following updates:
0.15.7
->0.15.9
v2.0.1
Compare Source
git.io->cloudposse.tools update @dylanbannon (#149)
what and why
Change all references to
git.io/build-harness
intocloudposse.tools/build-harness
, sincegit.io
redirects will stop working on April 29th, 2022.References
🚀 Enhancements
Use object lock enabled @nitrocode (#148)
what
why
object_lock_configuration
forobject_lock_enabled
references
object_lock_enabled
and only removed the dynamic)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.