you can create instance role that have access to s3 and give that role to your ec2 instance
w
you can create instance role that have access to s3 and give that role to your ec2 instance