Closed akingscote closed 3 years ago
Thanks for reporting the issue @akingscote! If possible, would you mind posting the actual ACL of the affected bucket so we can recreate the issue, removing anything potentially
So it was a real basic infrastructure, i was just playing around with the tool. I wanted to see what happened when i had a bucket with the following:
resource "aws_s3_bucket" "xxxx" {
bucket = format("%s-xxxx", var.company)
acl = "private"
}
Then with object(s) with a different acls.
Like i said, public-read
seems to be ok, but just not public-read-write
.
The tool is fantastic btw! Really cool - hopefully I find some time to add support for more services.
Thats great to hear and would be fantastic!
I've tried to replicate the issue using the following terraform template, which include a public-read-write object acl:
provider "aws" {
region = "eu-west-1"
profile = "default"
}
resource "aws_s3_bucket" "b" {
bucket = "issue-48"
acl = "private"
}
resource "aws_s3_bucket_object" "object" {
bucket = "issue-48"
key = "object.txt"
source = "/tmp/object.txt"
acl = "public-read-write"
}
However, this did not produce any errors while ingesting. Can you confirm the offending Object ACL resembles the following:
{
"Owner": {
"DisplayName": "**********",
"ID": "****************************************************************"
},
"Grants": [
{
"Grantee": {
"DisplayName": "**********",
"ID": "****************************************************************",
"Type": "CanonicalUser"
},
"Permission": "FULL_CONTROL"
},
{
"Grantee": {
"Type": "Group",
"URI": "http://acs.amazonaws.com/groups/global/AllUsers"
},
"Permission": "READ"
},
{
"Grantee": {
"Type": "Group",
"URI": "http://acs.amazonaws.com/groups/global/AllUsers"
},
"Permission": "WRITE"
}
]
}
Thanks for looking into this, that looks about right!
I suspect i know the problem, which I probably should have mentioned from the beginning... I had made some modifications (hacks) to get the tool to run against localstack - so it must be a problem there. The terraform you posted is basically the same as what i was using. I hope you didnt spend too much time looking into this - thanks.
Fantastic, glad we got to the bottom of it and absolutely no problem at all!
Im deploying my infrastructure with terraform:
Switching to just
public-read
, the ingestion dosent have any problems.Ingestion fails with the following:
Thanks