Commit 3328007
authored
fix: Don't error on S3 buckets with Object Lock disabled (
#### Summary
When syncing `aws_s3_bucket_object_lock_configurations` we call [GetObjectLockConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectLockConfiguration.html) on every bucket in an AWS account.
However, unless Object Lock is enabled on an S3 bucket this endpoint will return a 404 which Cloudquery interprets as an error. As this is an optional feature that I don't think most people will have enabled I believe cloudquery shouldn't treat this as an error.
```
2:19PM ERR table resolver finished with error error="operation error S3: GetObjectLockConfiguration, https response error StatusCode: 404, RequestID: (redacted), HostID: (redacted), api error ObjectLockConfigurationNotFoundError: Object Lock configuration does not exist for this bucket" client=(redacted) module=aws-src table=aws_s3_bucket_object_lock_configurations`
```
Part of #14652aws_s3_bucket_object_lock_configurations ) (#14726)1 parent 1c7ee1d commit 3328007
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments