liveBook · Manning

Aws_iam_instance_profile

As explained in Build Python Web Apps with Streamlit

An instance profile is an AWS container for an IAM role that can be attached to an EC2 instance.

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

How Build Python Web Apps with Streamlit covers it

How deep it goes
Explains the console configuration and required policy, but stops short of implementation details beyond deployment setup.
Examples
Uses the aws-elasticbeanstalk-ec2-role and AWSElasticBeanstalkWebTier policy for a Streamlit deployment.
What it assumes
Assumes an AWS account and IAM console access while teaching the EC2 trust relationship and permission policy choices.
What you can do after
Operate/configure an EC2 instance profile through the IAM console for deployment access.
How it connects
Connects IAM roles with EC2, S3, Elastic Beanstalk, and AWS permission policies.

Also explained in

Compare how 2 books explain aws_iam_instance_profile →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build Python Web Apps with Streamlit. The section links point to the parts of the book it draws on.