-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
Handle single event selector in cloudtrail with non-default read_write_type #5448
Conversation
Just wondering if there was any estimate on when this might get accepted? |
The issue #3697 for this has been closed in preference of this PR, are there plans to continue work on this PR? Happy to test, I apply changes to a terraform project nearly weekly that has a cloudtrail configuration with the default event selectors that are prone to this bug. |
Bump for @rossmckelvie. Would really like this solved for the sake of #3697. Else, that issue should be re-opened. |
Related, #11712 would probably be fixed by this as well. |
Hi, I'm also experiencing this issue. I have the following event_selector configuration and it shows constant diffs: event_selector { Just wondering if anyone has plans to merge the pull request from @ts-tek? Thanks, |
Also looking for status on this. Will this also be a terraform version 12+ fix only, or also in terraform 11.x? |
Agree this would be useful. For others, we worked around this issue with:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for this @ts-tek 🚀 LGTM
Output from acceptance testing:
--- PASS: TestAccAWSCloudTrail (898.22s)
--- PASS: TestAccAWSCloudTrail/Trail (898.22s)
--- PASS: TestAccAWSCloudTrail/Trail/tags (120.93s)
--- PASS: TestAccAWSCloudTrail/Trail/cloudwatch (110.30s)
--- PASS: TestAccAWSCloudTrail/Trail/isMultiRegion (115.70s)
--- SKIP: TestAccAWSCloudTrail/Trail/isOrganization (1.68s)
--- PASS: TestAccAWSCloudTrail/Trail/kmsKey (52.65s)
--- PASS: TestAccAWSCloudTrail/Trail/eventSelector (148.11s)
--- PASS: TestAccAWSCloudTrail/Trail/basic (86.62s)
--- PASS: TestAccAWSCloudTrail/Trail/enableLogging (120.31s)
--- PASS: TestAccAWSCloudTrail/Trail/includeGlobalServiceEvents (54.87s)
--- PASS: TestAccAWSCloudTrail/Trail/logValidation (87.03s)
* origin/master: (59 commits) Update CHANGELOG for hashicorp#13935 resource/aws_batch_compute_environment: Remove resource from Terraform state when not found instead of returning error (hashicorp#13935) resource/aws_dynamodb_table: Return error instead of panic on empty CreateTable response (hashicorp#13925) Update CHANGELOG for hashicorp#13918 New Data Source: aws_efs_access_points (hashicorp#13918) tests/resource/aws_instance: Ensure sweeper has dependencies on resources that manage EC2 Instances (hashicorp#13917) Update CHANGELOG for hashicorp#13937 Update CHANGELOG for hashicorp#5448 resource/aws_cloudtrail: Handle single event selector in cloudtrail with non-default read_write_type (hashicorp#5448) Update CHANGELOG for hashicorp#13892 correct retry message to match in error handling correct import resource name accept empty string in volume_type validation Update CHANGELOG for hashicorp#4855 resource/aws_batch_compute_environment: Support fully optional desired_vcpus and wait for updates add retry error handling for SLR remove unused WebACL resource name in disappears test reference current AWS partition in iam role policy stmt remove duplicated disappears test step Update CHANGELOG for hashicorp#13926 ...
This has been released in version 2.68.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
Unfortunately this does not seem to fix #3697 for me, which was closed in preference of this PR. workaround must remain even with 2.68.0 installed: # These are defaults, and terraform will always think it needs to change https://github.com/terraform-providers/terraform-provider-aws/pull/5448
event_selector {
read_write_type = "All"
include_management_events = true
}
# TODO: remove lifecycle once above linked issue is resolved. lifecycle is a temporary workaround
lifecycle {
ignore_changes = [event_selector]
} |
…ll event_selector configuration blocks Reference: #5448 Forgot to commit this when merging the referenced PR. Output from acceptance testing: ``` --- PASS: TestAccAWSCloudTrail/Trail/eventSelector (148.09s) ```
Confirm this doesn't fix for us either - still seeing changes on each run for event selector. |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Fixes the residual issue mentioned at end of #3697
Changes proposed in this pull request:
read_write_type
Output from acceptance testing: