Amazon Simple Storage Service - object storage

connect EC2 - S3

aws s3 ls -> list buckets
cd reports + ls -> list objects in bucket

bucket policy

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "Statement1",
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::655567654413:instance-profile/EC2InstanceProfileRole"
      },
      "Action": [
        "s3:GetObject",
        "s3:PutObject"
      ],
      "Resource": "arn:aws:s3:::reportbucket-655567654413/*"
    }
  ]
}

versioning