Architecture

Image description

Now create a S3 bucket to avoid errors us us-east-2 as aws account region with bucket versioning enabled

Image description

Next head to dashboard and open Iam to create a new Iam role for S3

Image description

Click next and add the following role:

AmazonSSMManagedInstanceCore

AmazonS3ReadOnlyAccess

Next create role name and click create role

Image description

Now we have successfully created a role our S3

Image description