Tag: aws s3

  • Prettifying AWS S3 Bucket public index list

    Prettifying AWS S3 Bucket public index list

    Sometimes it’s useful to have a index listing on a AWS S3 bucket. Here are some solutions to configure it with nice template. If having a public index list on a S3 Bucket is a good idea or not I’m not saying yay or nay.

    First set the correct Bucket Policy

    {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Sid": "PublicReadGetObject",
                "Effect": "Allow",
                "Principal": "*",
                "Action": "s3:GetObject",
                "Resource": "arn:aws:s3:::tmfg-tiesaahistoria/*"
            }
        ]
    }

    Next set Permissions

    Everyone, List objects Yes

    Create a index.htmlJatka lukemista