LePhenix47 / Lahouiti_Younes_P3_05112023

This repo contains the code for the 3rd project of the Java-Angular OpenClassrooms traineeship where I have to code a Back-End using Java + Spring
2 stars 0 forks source link

AWS S3 bucket authorizations #2

Open LePhenix47 opened 1 week ago

LePhenix47 commented 1 week ago

Here's the required AWS S3 bucket authorization object:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "AddPerm",
            "Effect": "Allow",
            "Principal": "*",
            "Action": [
                "s3:PutObject",
                "s3:PutObjectAcl",
                "s3:GetObject",
                "s3:GetObjectAcl"
            ],
            "Resource": "arn:aws:s3:::oc-p3-chatop/*"
        }
    ]
}
LePhenix47 commented 1 week ago

For CORS:

[
    {
        "AllowedHeaders": [
            "*"
        ],
        "AllowedMethods": [
            "POST",
            "GET",
            "PUT",
            "DELETE"
        ],
        "AllowedOrigins": [
            "*"
        ],
        "ExposeHeaders": [
            "ETag"
        ]
    }
]