Skip to content

S3 Browser - Rendre un bucket accessible en lecture publique #29

@zoometh

Description

@zoometh

J'essaie de changer les permissions du AWS S3 bucket my-new-bucket-tom pour rendre toutes les images qu'il contient visible sur internet

  1. depuis l'interface graphique S3 Bucket, j'ai cette erreur:

Image

Cette erreur dans le fichier Event Log:

[I] [2025-06-20 12:26:50] Updating permissions for my-new-bucket-tom/img/ppa_kripley.png TaskID: 235
[I] [2025-06-20 12:26:50] InvalidArgument: Invalid group uri TaskID: 235
[W] [2025-06-20 12:26:51] Task failed (InvalidArgument: Invalid group uri) TaskID: 235
  1. depuis AWS CLI
PS > ./aws s3api put-bucket-policy --bucket my-new-bucket-tom --policy C:\Users\TH282424\Rprojects\iramat-dev\credentials\aws_credentials.json   --endpoint-url http://rgw-covado.mesocentre.universite-paris-saclay.fr:8080

Avec aws_credentials.json :

{
	"Version": "2012-10-17",
	"Statement": [
	  {
		"Sid": "PublicRead",
		"Effect": "Allow",
		"Principal": "*",
		"Action": ["s3:GetObject"],
		"Resource": "arn:aws:s3:::my-new-bucket-tom/*"
	  }
	]
  }

Cette erreur

Connection was closed before we received a valid response from endpoint URL: "http://rgw-covado.mesocentre.universite-paris-saclay.fr:8080/my-new-bucket-tom?policy".

On note que c'est la même chose quand on veut juste toucher le endpoint http://rgw-covado.mesocentre.universite-paris-saclay.fr:8080 :

PS > ./aws s3 ls --endpoint-url http://rgw-covado.mesocentre.universite-paris-saclay.fr:8080                  
                                                                                                              
Connection was closed before we received a valid response from endpoint URL: "http://rgw-covado.mesocentre.universite-paris-saclay.fr:8080/".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions