Example of S3 permissionsΒΆ

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::905418438643:root"
            },
            "Action": "s3:*",
            "Resource": [
                "arn:aws:s3:::BUCKET_NAME/iceberg/*",
                "arn:aws:s3:::BUCKET_NAME"
            ],
            "Sid": "AllowRunnerToWriteToBucket"
        },
        {
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::610983193292:user/nessie.team-system.us-east-1"
            },
            "Action": [
                "s3:ListBucket",
                "s3:GetBucketLocation"
            ],
            "Resource": "arn:aws:s3:::BUCKET_NAME",
            "Sid": "AllowDataCatalogToListTheBucket"
        },
        {
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::610983193292:user/nessie.team-system.us-east-1"
            },
            "Action": [
                "s3:GetObject",
                "s3:GetObject*",
                "s3:PutObject",
                "s3:PutObject*"
            ],
            "Resource": "arn:aws:s3:::BUCKET_NAME/iceberg/*.metadata.json",
            "Sid": "AllowDataCatalogToWriteMetadataToBucket"
        }
    ]
}