-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
S3 Changes not reflect because of ignore lifecycle #147
Comments
Hi @RafPe ! I have just verified it, and it works as expected. The main changes are happening in the resources related to the attribute you are changing, for example (changing
Once the change is applied and another |
Ok - let me give it another try from 2.15 into 3.0.1 and come back to you shortyl |
Starting with bucket configuration on 2.15. Running plan before any changes
This goes as planned 👍 Removing the .terraform folder and lock file and running terraform init to get the newest s3 module
Running plan after upgrading module which produces the following changesWhat is worth noticing here is that the lifecycle rule created does not have a prefix which I require ( created on the original bucket)
ACLs are fixed by doing import of resources ( as per upgrade document )👍 To fix the prefix we need to update to new syntax based on the updated module - so in instead of plain
|
If possible, upgrade the AWS provider to the latest v4 to prevent some bugs fixed in the initial minor releases of the AWS provider v4. If there is anything else, please open another issue. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
Please provide a clear and concise description of the issue you are encountering, and a reproduction of your configuration (see the
examples/*
directory for references that you can copy+paste and tailor to match your configs if you are unable to copy your exact configuration). The reproduction MUST be executable by runningterraform init && terraform apply
without any further changes.If your request is for a new feature, please use the
Feature request
template.Before you submit an issue, please perform the following first:
.terraform
directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!):rm -rf .terraform/
terraform init
Versions
Module version 3.0.1:
Terraform version:
1.1.7
Provider version(s):
Reproduction Code [Required]
Steps to reproduce the behavior:
Yes
Yes - multiple times
Expected behavior
Changes are planned and applied to target bucket
Actual behavior
Due to ignoring lifecycle rule updates on most of the resources changes to those are not picked up by TF!
Additional context
Recent PR has been merged where we ignore changes to most of the items that are managed for the s3 buckets rendering this module to be setup-only.
PR merged was #145
If I downgrade to 3.0.0 I have no problems applying my change.
The text was updated successfully, but these errors were encountered: