1.AWS introduction2.Course 1 Getting started with AWS3.Course 2 IAM & AWS CLI
4.Course 2.2 IAM & AWS CLI
5.Course 3 EC2 FundamentalsAWS Access Keys, CLI and SDK
How can users access AWS?
- To access AWS, you have the 3 optioins:
- AWS Management Console(password + MFA)
- AWS Command Line Interface(CLI): protected by access keys
- AWS Software Developer Kit(SDK) - for code: protected by access keys
- Access Keys are generated through the AWS Console
- Users manage their own access keys
- Access Key ID ~= username
- Secret Access Key ~= password
What`s the AWS CLI
- A tool that enables you to interact with AWS services using commands in your command-line shell
- Direct access to the public APIs of AWS services
- You can develop scripts to manage your resources
- It`s open-source https://github.com/aws/aws-cli
- Alternative to using AWS Management Console
What`s AWS SDK
- AWS Software Development Kit(AWS SDK)
- Language-specific APIs (set of libirarys)
- Enables you to access and manage AWS services programmatically
- Embedded within your application
- Supports
- SDKs (Python, JAvaScript...)
- Mobile SDKs (Android, iOS, ...)
- IoT Device SDKs (Embedded C, Arduino, ... )
- Example: AWS CLI is built on AWS SDK for Python
AWS CloudShell
IAM Roles for Services
- Some AWS service 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 crendetials
- IAM Access Advisor (user-level)
- Access advisor shows the service permissions granted to a user and when those services were last accessed.
- You can user this information to revise your policies.
IAM Guidelines & Best Practices
- Don`t use the root account except for AWS account setup
- One pyisical user = One AWS user
- Assign users to groups and assign permissions to groups
- Create a strong password policy and MFA
- Create and use Roles for giving permissions to AWS services
- Use Access Keys for Programmatic Access (CLI/ SDK)
- Audit permission of your account using IAM Credentials Report & IAM Access Advisor
合集:
AWS
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!