An instance profile is an AWS container for an IAM role that attaches to an EC2 instance. It gives EC2 permission to access services such as S3 and report to Elastic Beanstalk. section 12.3.4
Create the profile through the IAM console:
- Open IAM, choose Roles under Access Management, and select Create role. section 12.3.4
- Set the trusted entity type to AWS service and choose EC2 as the service and use case. section 12.3.4
- Attach the AWSElasticBeanstalkWebTier permission policy and name the role aws-elasticbeanstalk-ec2-role. section 12.3.4
Deployment setup
A Streamlit deployment uses the profile to let its EC2 instance interact with S3 while reporting to Elastic Beanstalk. Elastic Beanstalk permissions are created later by eb create. section 12.3.4

