IAM Roles for Services
IAM Roles
- Some AWS services will need to perform actions on your behalf.
- To do so, we will assign permissions to AWS services with IAM Roles
- Common roles:
- EC2 Instance Roles
- Lambda Function Roles
- Roles for CloudFormation
IAM Security Tools:
- IAM Credentials Report (account-level)
- a report that lists all your account's users and the status of their various credentials.
- IAM Access Advisor (user-level)
- Access advisor shows the service permissions granted to a user and when those services were last accessed.
- You can use this information to revise your policies.
Credential Reports:
It will provide complete detail of users and permissions associated to them.
Access Advisor is renamed as Last access and it is present for every user created in IAM.
IAM Guidelines and Best Practices
- Don't use the root account except for AWS account setup.
- Assign users to groups and assign permissions to groups
- Create a strong password policy
- Use and enforce the use of Multi Factor Authentication (MFA)
- Create and use Roles for giving permissions to AWS services
- Use Access Keys for Programmatic Access (CLI/SDK)
- Audit permissions for your account using IAM Credentials Report & IAM Access Advisor
- Never share IAM users and Access Keys
Shared Responsibility Model for IAM
- AWS
- Infrastructure (global network security)
- Configuration and vulnerability analysis
- Compliance validation
- You
- Users, Groups, Roles, Policies management and monitoring
- Enable MFA on all accounts
- Rotate all your keys often
- Use IAM tools to apply appropriate permissions
- Analyze access patterns and review permissions
IAM Section - Summary
- Users : Mapped to a physical user, has a password for AWS console
- Groups : contains only users
- Policies : JSON document that outlines permissions for users or groups
- Roles : AWS services
- Security : MFA + Password Policy
- AWS CLI : manage your AWS services using the command line
- AWS SDK : manage your AWS services using a programming language
- Access Keys : access AWS using the CLI or SDK
- Audit : IAM Credential Reports and IAM Access Advisor (Last Accessed)
Comments
Post a Comment