首页 > 其他分享 >AWS Certificate SAA - Course 2.2 IAM & AWS CLI

AWS Certificate SAA - Course 2.2 IAM & AWS CLI

时间:2023-06-29 10:33:32浏览次数:42  
标签:IAM access CLI AWS Access your

AWS Access Keys, CLI and SDK

How can users access AWS?

  • To access AWS, you have the 3 optioins:
    1. AWS Management Console(password + MFA)
    2. AWS Command Line Interface(CLI): protected by access keys
    3. 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

标签:IAM,access,CLI,AWS,Access,your
From: https://www.cnblogs.com/MY1993/p/17513289.html

相关文章

  • LLM-Client一个轻量级的LLM集成工具
    大型语言模型(llm)已经彻底改变了我们与文本交互的方式,OpenAI、Google、AI21、HuggingfaceHub、Anthropic和众多开源模型提供了不同的功能和优势。但是每个模型都有其独特的体系结构、api和兼容性需求,集成这些模型是一项耗时且具有挑战性的任务。所以这时候LangChain就解决了这个......
  • F5Cloud第一期如何在AWS上部署F5 VE​
    F5Cloud第一期如何在AWS上部署F5VEF5VE初始化:配置VLAN,Selfip,LOCALDNS,NTP,创建设备组,创建信任关系peer,组建双机,同步配置......
  • Linux-修改IP地址-ifconfig-nmcli
    ifconfigifconfigens33192.168.1.64netmask255.255.255.0重启网卡servicenetworkrestart#centos6systemctlrestartnetwork#centos7NeworkManager查看NetworkManager的状态:systemctlstatusNetworkManager无线网络nmcli......
  • docker部署指定版本的mysql client
    docker部署mysqlclientdockerpullmysql:8.0.31cat>>~/.bashrc<<'EOF'##--rm表示容器退出及销毁aliasmysql-cli="dockerrun-it--rmmysql:8.0.31mysql"EOFsource~/.bashrcmysql-cli-h123.123.123.123-P23306-uxxxxxxxx-pxx......
  • Kubernetes编程——client-go基础—— TypeMeta
    TypeMetahttps://github.com/kubernetes/apimachinery/blob/release-1.27/pkg/runtime/types.go runtime.Object只是一个接口,我们想了解它具体时间怎么实现的。k8s.io/api中的Kubernetes对象通过内嵌k8s.io/apimachinery/meta/v1中的metav1.TypeMeta结构,为schema.Obj......
  • eclipse 添加.gitignore
    eclipse创建的git工程,默认在根目录下就有.gitignore文件有的eclipse没有显示.gitignore,可以通过设置过滤来显示隐藏文件。倒三角---->filters—>不要勾选.*resources##.gitignore的作用.gitignore,属于git,用于忽略某些中间文件,比如.class,.apk,.classpath等,这样在以后的git提交中......
  • ADO控件:显示数据(CListCtrl)
    //TODO:Addextrainitializationhere m_listLinkInfo.SetExtendedStyle(LVS_EX_GRIDLINES|LVS_EX_FULLROWSELECT); inti=0; m_listLinkInfo.InsertColumn(i++,"ID", LVCFMT_LEFT,90); m_listLinkInfo.InsertColumn(i++,"Name", LVCFMT_LE......
  • AWS Certificate SAA - Course 2 IAM & AWS CLI
    IAM:Users&GroupsIAM=IdentityandAccessManagement,GlobalserviceRootaccountcreatedbydefault,shouldn'tbeusedorsharedUsersarepeoplewithinyourorganization,andcanbegroupedIAM:PermisionsUsersareGroupscanbeassigne......
  • Kubernetes编程——client-go基础—— Go语言中的 Kubernetes 对象介绍
    Go语言中的Kubernetes对象介绍 我们接下来更详细了解在Go语言的语境下的Pod(或者其他任何Kubernetes资源)是什么样的? Kubernetes中的资源(或者更准确说是对象)都是某种类型的实例。我理解意思是说:在Kubernetes中,资源或对象是指由Kubernetes控......
  • jsjiami.v6版本JS解密效果代码详解
    JS加密和解密这两者的关系并不是单纯的矛和盾的关系,市面上很多的所谓完全不可逆JS加密是不怎么靠谱的说法,没有绝对的不可逆加密。当然也没有绝对的JS解密,在时间成本上来说JS加密比解密要快的多。如果你需要对一个使用jsjiami.v6加密的JavaScript代码进行修改或解析,就需要进行解密......