-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
r/s3_bucket_replication_configuration: make event_threshold
optional in destination
metrics
config block
#21901
Conversation
…panic in s3 bucket
38f8113
to
429b2a3
Compare
event_threshold
optional in destination
config blockevent_threshold
optional in destination
metrics
config block
"status": aws.StringValue(v.Destination.Metrics.Status), | ||
"status": aws.StringValue(v.Destination.Metrics.Status), | ||
} | ||
if v.Destination.Metrics.EventThreshold != nil { |
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.
Prevents panic when event_threshold
isn't configured in new acctest
I've done manual tests with provider built from this branch and can confirm it fixes #21895 |
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.
LGTM 🚀.
% make testacc TESTARGS="-run=TestAccS3BucketReplicationConfiguration_schemaV2DestinationMetrics\|TestAccS3BucketReplicationConfiguration_multipleDestinationsEmptyFilter" PKG_NAME="./internal/service/s3"
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ././internal/service/s3/... -v -count 1 -parallel 20 -run=TestAccS3BucketReplicationConfiguration_schemaV2DestinationMetrics\|TestAccS3BucketReplicationConfiguration_multipleDestinationsEmptyFilter -timeout 180m
=== RUN TestAccS3BucketReplicationConfiguration_multipleDestinationsEmptyFilter
=== PAUSE TestAccS3BucketReplicationConfiguration_multipleDestinationsEmptyFilter
=== RUN TestAccS3BucketReplicationConfiguration_schemaV2DestinationMetrics
=== PAUSE TestAccS3BucketReplicationConfiguration_schemaV2DestinationMetrics
=== CONT TestAccS3BucketReplicationConfiguration_multipleDestinationsEmptyFilter
=== CONT TestAccS3BucketReplicationConfiguration_schemaV2DestinationMetrics
--- PASS: TestAccS3BucketReplicationConfiguration_multipleDestinationsEmptyFilter (272.63s)
--- PASS: TestAccS3BucketReplicationConfiguration_schemaV2DestinationMetrics (273.64s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/s3 276.922s
This functionality has been released in v3.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. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Closes #21895
Output from acceptance testing: