SlideShare a Scribd company logo
AWS IAM
AWS Identity and Access Management
Document Version: 2013-04-03
API Version: 2010-05-08
AWS ⼋八⼈人壯⼠士團 讀書會
Ernest Chiang
@dwchiang
dwchiang@gmail.com
http://talk.ernestchiang.com
Thursday, September 26, 13
Entities
Resource
Permission/Policy
Thursday, September 26, 13
Thank you!
Thursday, September 26, 13
Outline
Before we start.
Getting started.
Thursday, September 26, 13
Before we start.
Thursday, September 26, 13
WHO IAM
What’s IAM
AWS Identity and Access Management is a web service
that enables AWS customers to manage users and user
permissions in AWS.
Without IAM:
multiple AWS accounts...
employees must all share the security credentials
have no control over the tasks a particular user
or system can do...
etc...
Thursday, September 26, 13
Video Introduction to IAM
http://www.youtube.com/watch?v=ySl1gdH_7bY
Thursday, September 26, 13
Features of IAM
Central control of users and security credentials
(e.g access keys)
Central control of user access
Shared AWS resources
Permissions based on organizational groups
Central control of AWS resources
Control over resource creation
Networking controls
Single AWS bill
Thursday, September 26, 13
Migration to IAM
1. Your organization has just a single AWS
account.
2. Your organization has multiple AWS
accounts that don't represent logical
boundaries between divisions.
--> Consolidated Billing
3. Your organization has multiple AWS
accounts, with each AWS account belonging to
a division in the organization.
Thursday, September 26, 13
IAM Concepts
Concepts Related to AWS Account
Entities
Concepts Related to Permissions
Thursday, September 26, 13
Concepts Related to
AWS Account Entities
AWS Account
User (IAM User)
Multi-Factor Authentication (MFA) for IAM Users
http://aws.amazon.com/mfa/
Group
A group can contain many users, and a user can belong to
multiple groups.
Groups can't be nested; they can contain only users.
Role
an entity that has a set of permissions
differ from users or groups
Thursday, September 26, 13
Concepts Related to
Permissions
Resource
Resources typically have a friendly name (such as
example_bucket), and then an Amazon Resource Name (ARN),
which uses a standardized format and uniquely identifies
the resource in AWS.
Permission
User-based
Resource-based
Policy
A policy is a document that provides a formal statement
of one or more permissions.
Thursday, September 26, 13
Entities
Resource
Permission/Policy
Thursday, September 26, 13
IAM ARNs
arn:aws:service:region:account:resource
service identifies the AWS product. For IAM
resources, this is always iam.
region is the region the resource resides in.
For IAM resources, this is always left blank.
account is the AWS account ID with no hyphens
(for example, 123456789012)
resource is the portion that identifies the
specific resource
Thursday, September 26, 13
ARN Examples
Example 1: iam-ug.pdf Page.14
Example 2: iam-ug.pdf Page.15
Thursday, September 26, 13
Unique IDs
The unique ID for an IAM entity is not available in the IAM
console.
To get the unique ID, you can use the following CLI or API
calls.
Limitations on IAM Entities
Following are restrictions on names
(Page.16)
Following are the default maximums for your entities
(Page.17)
Groups per AWS account: 100
Users per AWS account: 5000
--> temporary security credentials
Thursday, September 26, 13
Type of Access
Access for users under your AWS account
Non-AWS user access via identity
federation between your authorization
system and AWS
--> Using Temporary Security Credentials.
Cross-account access between AWS accounts
-->Cross-Account Access: Sharing Resources Between AWS
Accounts (p. 159).
Thursday, September 26, 13
Getting started.
Thursday, September 26, 13
Topics
Creating an Admins Group Using the Console (p. 22)
Creating an Administrators Group Using the CLI or
API (p. 26)
How Users Sign Into Your Account (p. 31)
https://account-number.signin.aws.amazon.com/
console
Using an Alias for Your AWS Account ID (p. 192)
Where to Go Next (p. 32)
Thursday, September 26, 13
IAM Best Practices
Lock away your AWS account access keys
we recommend that you do not use your AWS account
access keys.
Use groups to assign permissions to IAM users
Grant least privilege
Enable MFA for privileged users
Use roles for applications that run on Amazon EC2
instances (p. 155)
Delegate by using roles instead of by sharing credentials
Rotate credentials regularly
Thursday, September 26, 13
Integration with a
Third-Party Business
Organizations often work with partner
companies, consultants, and
contractors.
Create a group for 3rd-party, and
create a policy for the group.
Thursday, September 26, 13
Adding an IAM User to
Your AWS Account
screenshots: p.44 ~ 48
1. Create user
2. Give user security credentials
access key ID & secret access key
password and/or MFA
3. Put user in one or more groups
4. Give user a login profile (optional)
Thursday, September 26, 13
Using a Virtual
MFA Device
screenshots: p.79 ~ 82
IAM
--> User
--> Security Credentials
--> Manage MFA Device
--> QR Code
Thursday, September 26, 13
Using MFA-Protected
APIs Programmatically
AWS Security Token Service (STS)
An application can use the STS API
and custom code to prompt the user to
provide the MFA code and serial
number in the application.
MFA-protected API policies include a
condition statement (or statements)
with the aws:MultiFactorAuthAge key.
Thursday, September 26, 13
Permissions and
Policies
Permissions
User-Based
Resource-Based
Policies
Actions: e.g Amazon S3 ListBucket action,
Resources: e.g specific Amazon S3 buckets
Effect: allow / deny
the default is that resources are denied to
users
Thursday, September 26, 13
Policy Example
{
"Version":"2012-10-17",
"Statement":[{
"Effect":"Allow",
"Action":"s3:ListBucket",
"Resource":"arn:aws:s3:::example_bucket"
}]
}
More examples: p. 117 ~ 123
Thursday, September 26, 13
Roles
(Delegation and Federation)
Scenarios for Using Roles for Delegation
Applications running on Amazon EC2 instances
that need to access AWS resources (p.155)
Cross-account access (p.160)
Federation identity (e.g your corporate
directory.)
-->Using Temporary Security Credentials
Web identity federation (e.g your mobile or
web app)
-->Using Temporary Security Credentials
Thursday, September 26, 13
Roles
for EC2 instances
"Action":"iam:PassRole",
Thursday, September 26, 13
Reference
IAM Documentation
http://aws.amazon.com/documentation/iam/
PDF:Using Temporary Security
Credentials
Thursday, September 26, 13
Thank you!
AWS ⼋八⼈人壯⼠士團 讀書會
Ernest Chiang
@dwchiang
dwchiang@gmail.com
http://talk.ernestchiang.com
Thursday, September 26, 13

More Related Content

ODP
Introduction to AWS IAM
Knoldus Inc.
 
PPTX
Introduction to AWS KMS
Akesh Patil
 
PPTX
Introduction of AWS KMS
Ricardo Schmidt
 
PPTX
Aws IAM
Chamali Liyanage
 
PPTX
AWS IAM and security
Erik Paulsson
 
PPTX
AWS core services
Nagesh Ramamoorthy
 
PPTX
AWS Monitoring & Logging
Jason Poley
 
PDF
Amazon EC2 notes.pdf
yididya3
 
Introduction to AWS IAM
Knoldus Inc.
 
Introduction to AWS KMS
Akesh Patil
 
Introduction of AWS KMS
Ricardo Schmidt
 
AWS IAM and security
Erik Paulsson
 
AWS core services
Nagesh Ramamoorthy
 
AWS Monitoring & Logging
Jason Poley
 
Amazon EC2 notes.pdf
yididya3
 

What's hot (20)

PDF
AWS와 함께하는 클라우드 컴퓨팅 (강철 AWS 매니저) :: AWS 기초 교육 온라인 세미나
Amazon Web Services Korea
 
PDF
Iam presentation
AWS UG PK
 
PDF
AWS Control Tower를 통한 클라우드 보안 및 거버넌스 설계 - 김학민 :: AWS 클라우드 마이그레이션 온라인
Amazon Web Services Korea
 
PDF
데브옵스 엔지니어를 위한 신규 운영 서비스 - 김필중, AWS 개발 전문 솔루션즈 아키텍트 / 김현민, 메가존클라우드 솔루션즈 아키텍트 :...
Amazon Web Services Korea
 
PDF
서버리스 앱 배포 자동화 (김필중, AWS 솔루션즈 아키텍트) :: AWS DevDay2018
Amazon Web Services Korea
 
PPTX
Introduction to AWS VPC, Guidelines, and Best Practices
Gary Silverman
 
PDF
Amazon CloudWatch Tutorial | AWS Certification | Cloud Monitoring Tools | AWS...
Edureka!
 
PDF
마이크로서비스를 위한 AWS 아키텍처 패턴 및 모범 사례 - AWS Summit Seoul 2017
Amazon Web Services Korea
 
PDF
AWS 클라우드 기반 확장성 높은 천만 사용자 웹 서비스 만들기 - 윤석찬
Amazon Web Services Korea
 
PDF
Enterprise Single Sign-On - SSO
Oliver Mueller
 
PPTX
Introduction to DevOps on AWS
Shiva Narayanaswamy
 
PPTX
AWS Lambda Tutorial For Beginners | What is AWS Lambda? | AWS Tutorial For Be...
Simplilearn
 
PDF
AWS Lambda Tutorial | Introduction to AWS Lambda | AWS Tutorial | AWS Trainin...
Edureka!
 
PDF
AWS Fargate on EKS 실전 사용하기
AWSKRUG - AWS한국사용자모임
 
PDF
AWS Black Belt Techシリーズ AWS Directory Service
Amazon Web Services Japan
 
PDF
AWS Black Belt Online Seminar 2017 AWS Elastic Beanstalk
Amazon Web Services Japan
 
PPT
10월 웨비나 - AWS에서 Active Directory 구축 및 연동 옵션 살펴보기 (김용우 솔루션즈 아키텍트)
Amazon Web Services Korea
 
PPTX
AWS Storage - S3 Fundamentals
Piyush Agrawal
 
PPTX
Azure App Service
BizTalk360
 
PPTX
Azure Identity and access management
Dinusha Kumarasiri
 
AWS와 함께하는 클라우드 컴퓨팅 (강철 AWS 매니저) :: AWS 기초 교육 온라인 세미나
Amazon Web Services Korea
 
Iam presentation
AWS UG PK
 
AWS Control Tower를 통한 클라우드 보안 및 거버넌스 설계 - 김학민 :: AWS 클라우드 마이그레이션 온라인
Amazon Web Services Korea
 
데브옵스 엔지니어를 위한 신규 운영 서비스 - 김필중, AWS 개발 전문 솔루션즈 아키텍트 / 김현민, 메가존클라우드 솔루션즈 아키텍트 :...
Amazon Web Services Korea
 
서버리스 앱 배포 자동화 (김필중, AWS 솔루션즈 아키텍트) :: AWS DevDay2018
Amazon Web Services Korea
 
Introduction to AWS VPC, Guidelines, and Best Practices
Gary Silverman
 
Amazon CloudWatch Tutorial | AWS Certification | Cloud Monitoring Tools | AWS...
Edureka!
 
마이크로서비스를 위한 AWS 아키텍처 패턴 및 모범 사례 - AWS Summit Seoul 2017
Amazon Web Services Korea
 
AWS 클라우드 기반 확장성 높은 천만 사용자 웹 서비스 만들기 - 윤석찬
Amazon Web Services Korea
 
Enterprise Single Sign-On - SSO
Oliver Mueller
 
Introduction to DevOps on AWS
Shiva Narayanaswamy
 
AWS Lambda Tutorial For Beginners | What is AWS Lambda? | AWS Tutorial For Be...
Simplilearn
 
AWS Lambda Tutorial | Introduction to AWS Lambda | AWS Tutorial | AWS Trainin...
Edureka!
 
AWS Fargate on EKS 실전 사용하기
AWSKRUG - AWS한국사용자모임
 
AWS Black Belt Techシリーズ AWS Directory Service
Amazon Web Services Japan
 
AWS Black Belt Online Seminar 2017 AWS Elastic Beanstalk
Amazon Web Services Japan
 
10월 웨비나 - AWS에서 Active Directory 구축 및 연동 옵션 살펴보기 (김용우 솔루션즈 아키텍트)
Amazon Web Services Korea
 
AWS Storage - S3 Fundamentals
Piyush Agrawal
 
Azure App Service
BizTalk360
 
Azure Identity and access management
Dinusha Kumarasiri
 
Ad

Similar to AWS IAM -- Notes of 20130403 Doc Version (20)

PPTX
Aws iam best practices to live by
John Varghese
 
PPTX
AWS deployment and management Services
Nagesh Ramamoorthy
 
PDF
Aws security Fundamentals
Christopher Caplan
 
PPTX
IAM_part1.pptx
Shawshank Redemption
 
PPTX
AWS Security - An Engineer’s Introduction to AWS Security Auditing using CIS ...
😸 Richard Spindler
 
PPTX
Aws education interest to enhance career IAM.pptx
Minionjaipur
 
PDF
Advanced Security Masterclass - Tel Aviv Loft
Ian Massingham
 
PPTX
Identity access management (iam)
Parag Patil
 
PDF
AWS Identity Access Management
Richard Harvey
 
PPTX
Identity and Access Management-CLOUD.pptx
muthulakshmi279332
 
PPTX
AWSM2C3.pptx
RahulDange13
 
PPTX
AWS Identity and access management for users
StephenEfange3
 
PPTX
Identity Access Management presented by Techserverglobal
HarpalGohil4
 
PPTX
AWS Users Authentication
chandrasen Reddy
 
PPTX
Identity Access Management by Techserverglobal.pptx
HarpalGohil4
 
PPTX
cLASE 3 DE 40 Es por esoque debes teber 40 c.pptx
CarlosGil57586
 
PPTX
Windsor AWS UG Deep dive IAM 2 - no json101
Goran Karmisevic
 
PPTX
AWS Windsor User Group - June 7th 2018 - Amazon Web Services IAM
Brandon Wells
 
PPTX
Aws security best practices
Sundeep Roxx
 
PPTX
Null Bangalore | Pentesters Approach to AWS IAM
Divyanshu
 
Aws iam best practices to live by
John Varghese
 
AWS deployment and management Services
Nagesh Ramamoorthy
 
Aws security Fundamentals
Christopher Caplan
 
IAM_part1.pptx
Shawshank Redemption
 
AWS Security - An Engineer’s Introduction to AWS Security Auditing using CIS ...
😸 Richard Spindler
 
Aws education interest to enhance career IAM.pptx
Minionjaipur
 
Advanced Security Masterclass - Tel Aviv Loft
Ian Massingham
 
Identity access management (iam)
Parag Patil
 
AWS Identity Access Management
Richard Harvey
 
Identity and Access Management-CLOUD.pptx
muthulakshmi279332
 
AWSM2C3.pptx
RahulDange13
 
AWS Identity and access management for users
StephenEfange3
 
Identity Access Management presented by Techserverglobal
HarpalGohil4
 
AWS Users Authentication
chandrasen Reddy
 
Identity Access Management by Techserverglobal.pptx
HarpalGohil4
 
cLASE 3 DE 40 Es por esoque debes teber 40 c.pptx
CarlosGil57586
 
Windsor AWS UG Deep dive IAM 2 - no json101
Goran Karmisevic
 
AWS Windsor User Group - June 7th 2018 - Amazon Web Services IAM
Brandon Wells
 
Aws security best practices
Sundeep Roxx
 
Null Bangalore | Pentesters Approach to AWS IAM
Divyanshu
 
Ad

More from Ernest Chiang (20)

PDF
SUPPORT, A ROLE OF
 AN OPEN SOURCE PROJECT
Ernest Chiang
 
PDF
(zh-TW) MOPCON 2014: 如何面對 O2O 線上與實體的挑戰
Ernest Chiang
 
PDF
MozTW About SUMO 20140315
Ernest Chiang
 
PDF
MOPCON 2013: Industry Hacking -- 聊,健身器材產業; 玩,軟硬體整合
Ernest Chiang
 
PDF
Ideas into Action (Santa Clara Edition)
Ernest Chiang
 
PDF
Introduction to SUMO and ReMo
Ernest Chiang
 
PPT
Translation Process for SUMO New Website (zh_TW) 2013/05
Ernest Chiang
 
KEY
MozTW SUMO Introduction 2012 Aug
Ernest Chiang
 
KEY
MozTW SUMO Introduction 2012
Ernest Chiang
 
PPT
Translation Process for SUMO New Website (zh_TW) 2012/05
Ernest Chiang
 
PPTX
AWS Boot Camp in Taipei
Ernest Chiang
 
PPTX
新人訓練:歡迎來到網路業練功
Ernest Chiang
 
PPT
Translation Process for SUMO New Website (zh_TW)
Ernest Chiang
 
PDF
TYIA Project Simulation Phase3
Ernest Chiang
 
PDF
TYIA Project Simulation Phase2
Ernest Chiang
 
PDF
TYIA Project Simulation Phase1
Ernest Chiang
 
PDF
TYIA Project Simulation Phase4
Ernest Chiang
 
PDF
TYIA Project Simulation Preparation
Ernest Chiang
 
PDF
Web Collaboration
Ernest Chiang
 
PDF
For YBP Lecture Sharing, Life Photography
Ernest Chiang
 
SUPPORT, A ROLE OF
 AN OPEN SOURCE PROJECT
Ernest Chiang
 
(zh-TW) MOPCON 2014: 如何面對 O2O 線上與實體的挑戰
Ernest Chiang
 
MozTW About SUMO 20140315
Ernest Chiang
 
MOPCON 2013: Industry Hacking -- 聊,健身器材產業; 玩,軟硬體整合
Ernest Chiang
 
Ideas into Action (Santa Clara Edition)
Ernest Chiang
 
Introduction to SUMO and ReMo
Ernest Chiang
 
Translation Process for SUMO New Website (zh_TW) 2013/05
Ernest Chiang
 
MozTW SUMO Introduction 2012 Aug
Ernest Chiang
 
MozTW SUMO Introduction 2012
Ernest Chiang
 
Translation Process for SUMO New Website (zh_TW) 2012/05
Ernest Chiang
 
AWS Boot Camp in Taipei
Ernest Chiang
 
新人訓練:歡迎來到網路業練功
Ernest Chiang
 
Translation Process for SUMO New Website (zh_TW)
Ernest Chiang
 
TYIA Project Simulation Phase3
Ernest Chiang
 
TYIA Project Simulation Phase2
Ernest Chiang
 
TYIA Project Simulation Phase1
Ernest Chiang
 
TYIA Project Simulation Phase4
Ernest Chiang
 
TYIA Project Simulation Preparation
Ernest Chiang
 
Web Collaboration
Ernest Chiang
 
For YBP Lecture Sharing, Life Photography
Ernest Chiang
 

Recently uploaded (20)

PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PPTX
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
The Future of Artificial Intelligence (AI)
Mukul
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 

AWS IAM -- Notes of 20130403 Doc Version

  • 1. AWS IAM AWS Identity and Access Management Document Version: 2013-04-03 API Version: 2010-05-08 AWS ⼋八⼈人壯⼠士團 讀書會 Ernest Chiang @dwchiang [email protected] http://talk.ernestchiang.com Thursday, September 26, 13
  • 4. Outline Before we start. Getting started. Thursday, September 26, 13
  • 5. Before we start. Thursday, September 26, 13
  • 6. WHO IAM What’s IAM AWS Identity and Access Management is a web service that enables AWS customers to manage users and user permissions in AWS. Without IAM: multiple AWS accounts... employees must all share the security credentials have no control over the tasks a particular user or system can do... etc... Thursday, September 26, 13
  • 7. Video Introduction to IAM http://www.youtube.com/watch?v=ySl1gdH_7bY Thursday, September 26, 13
  • 8. Features of IAM Central control of users and security credentials (e.g access keys) Central control of user access Shared AWS resources Permissions based on organizational groups Central control of AWS resources Control over resource creation Networking controls Single AWS bill Thursday, September 26, 13
  • 9. Migration to IAM 1. Your organization has just a single AWS account. 2. Your organization has multiple AWS accounts that don't represent logical boundaries between divisions. --> Consolidated Billing 3. Your organization has multiple AWS accounts, with each AWS account belonging to a division in the organization. Thursday, September 26, 13
  • 10. IAM Concepts Concepts Related to AWS Account Entities Concepts Related to Permissions Thursday, September 26, 13
  • 11. Concepts Related to AWS Account Entities AWS Account User (IAM User) Multi-Factor Authentication (MFA) for IAM Users http://aws.amazon.com/mfa/ Group A group can contain many users, and a user can belong to multiple groups. Groups can't be nested; they can contain only users. Role an entity that has a set of permissions differ from users or groups Thursday, September 26, 13
  • 12. Concepts Related to Permissions Resource Resources typically have a friendly name (such as example_bucket), and then an Amazon Resource Name (ARN), which uses a standardized format and uniquely identifies the resource in AWS. Permission User-based Resource-based Policy A policy is a document that provides a formal statement of one or more permissions. Thursday, September 26, 13
  • 14. IAM ARNs arn:aws:service:region:account:resource service identifies the AWS product. For IAM resources, this is always iam. region is the region the resource resides in. For IAM resources, this is always left blank. account is the AWS account ID with no hyphens (for example, 123456789012) resource is the portion that identifies the specific resource Thursday, September 26, 13
  • 15. ARN Examples Example 1: iam-ug.pdf Page.14 Example 2: iam-ug.pdf Page.15 Thursday, September 26, 13
  • 16. Unique IDs The unique ID for an IAM entity is not available in the IAM console. To get the unique ID, you can use the following CLI or API calls. Limitations on IAM Entities Following are restrictions on names (Page.16) Following are the default maximums for your entities (Page.17) Groups per AWS account: 100 Users per AWS account: 5000 --> temporary security credentials Thursday, September 26, 13
  • 17. Type of Access Access for users under your AWS account Non-AWS user access via identity federation between your authorization system and AWS --> Using Temporary Security Credentials. Cross-account access between AWS accounts -->Cross-Account Access: Sharing Resources Between AWS Accounts (p. 159). Thursday, September 26, 13
  • 19. Topics Creating an Admins Group Using the Console (p. 22) Creating an Administrators Group Using the CLI or API (p. 26) How Users Sign Into Your Account (p. 31) https://account-number.signin.aws.amazon.com/ console Using an Alias for Your AWS Account ID (p. 192) Where to Go Next (p. 32) Thursday, September 26, 13
  • 20. IAM Best Practices Lock away your AWS account access keys we recommend that you do not use your AWS account access keys. Use groups to assign permissions to IAM users Grant least privilege Enable MFA for privileged users Use roles for applications that run on Amazon EC2 instances (p. 155) Delegate by using roles instead of by sharing credentials Rotate credentials regularly Thursday, September 26, 13
  • 21. Integration with a Third-Party Business Organizations often work with partner companies, consultants, and contractors. Create a group for 3rd-party, and create a policy for the group. Thursday, September 26, 13
  • 22. Adding an IAM User to Your AWS Account screenshots: p.44 ~ 48 1. Create user 2. Give user security credentials access key ID & secret access key password and/or MFA 3. Put user in one or more groups 4. Give user a login profile (optional) Thursday, September 26, 13
  • 23. Using a Virtual MFA Device screenshots: p.79 ~ 82 IAM --> User --> Security Credentials --> Manage MFA Device --> QR Code Thursday, September 26, 13
  • 24. Using MFA-Protected APIs Programmatically AWS Security Token Service (STS) An application can use the STS API and custom code to prompt the user to provide the MFA code and serial number in the application. MFA-protected API policies include a condition statement (or statements) with the aws:MultiFactorAuthAge key. Thursday, September 26, 13
  • 25. Permissions and Policies Permissions User-Based Resource-Based Policies Actions: e.g Amazon S3 ListBucket action, Resources: e.g specific Amazon S3 buckets Effect: allow / deny the default is that resources are denied to users Thursday, September 26, 13
  • 27. Roles (Delegation and Federation) Scenarios for Using Roles for Delegation Applications running on Amazon EC2 instances that need to access AWS resources (p.155) Cross-account access (p.160) Federation identity (e.g your corporate directory.) -->Using Temporary Security Credentials Web identity federation (e.g your mobile or web app) -->Using Temporary Security Credentials Thursday, September 26, 13
  • 30. Thank you! AWS ⼋八⼈人壯⼠士團 讀書會 Ernest Chiang @dwchiang [email protected] http://talk.ernestchiang.com Thursday, September 26, 13