Open Cyb3r-Jak3 opened 2 years ago
R2 has been updated. It now returns dummy responses for
I'm attempting the same thing with the same config and just get MissingRegion: could not find region configuration
Edit:
The following configs in providers.tf
shows the same issue with any combination of Terraform 1.1.7 and 1.2.4
aws = {
source = "hashicorp/aws"
version = "~> 4.36"
}
and
aws = {
source = "hashicorp/aws"
version = "4.20.1"
}
When attempted to use S3 with custom provider, Cloudflare R2, a NotImplemented error is raised when attempted to read the bucket. The GetBucketAcl command has not been implemented
When working with a Cloudflare engineer, it seems that other commands are not handled gracefully.
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v1.2.4 on linux_amd64
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
main.tf
variables.tf
Debug Output
Debug Link https://gist.github.com/Cyb3r-Jak3/9d552fe7409a0238d65626bba1510dcc
Expected Behavior
GetBucketACL NotImplemented should be handed gracefully.
Actual Behavior
An error is throw
ACL: NotImplemented: GetBucketAcl not implemented
when attemptedSteps to Reproduce
cloudflare_account_id
,cloudflare_access_key
, andcloudflare_secret_key
and fill them with the valuesterraform plan -var-file="<your variable file>" -out plan
terraform apply plan
The bucket will be created and viewable in Cloudflare dashboard, but you can not run plan again because it attempts to read the ACL and throws NotImplemented error.
Important Factoids
Using Cloudflare R2 which has some S3 API compatibility