Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
.awsにあるファイルには何が書かれているのか
Search
Yasuharu Sawada
August 27, 2021
Programming
740
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
.awsにあるファイルには何が書かれているのか
Yasuharu Sawada
August 27, 2021
More Decks by Yasuharu Sawada
See All by Yasuharu Sawada
SRE@FOLIO
yasuharu519
1
1.4k
Other Decks in Programming
See All in Programming
LLM本来の能力を解き放つサンドボックス技術とAI民主化への適用
yukukotani
3
4.1k
生成AI時代にこそ効くGo | Why Go Works in the Age of Generative AI
mom0tomo
8
3.2k
Semantic Version 単位で戦略を柔軟に変えて、パッケージアップデートを自動化する
daitasu
1
240
Claspは野良GASの夢をみるか
takter00
0
190
3Dシーンの圧縮
fadis
1
770
さぁV100、メモリをお食べ・・・
nilpe
0
140
ふつうのFeature Flag実践入門
irof
7
4k
セキュリティの専門家じゃなくてもできる。「セキュリティ意識」をアップデートして サプライチェーン攻撃への耐性を高めよう。
tk3fftk
5
770
Make SRE Operations Easier with Azure SRE Agent
kkamegawa
0
6.2k
ローカルLLMを使ってB2Bサービスを作っていての学び
yaotti
0
170
AIだと陥りがちなJakarta EE最新技術への移行時の落とし穴と解決策
tnagao7
0
110
JavaDoc 再入門
nagise
1
350
Featured
See All Featured
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
840
We Have a Design System, Now What?
morganepeng
55
8.2k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
160
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.7k
We Are The Robots
honzajavorek
0
250
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.5k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.4k
How GitHub (no longer) Works
holman
316
150k
Transcript
.aws Yasuharu Sawada
.aws AWS SSO AWS
AWS ~/.aws ~/.aws/config ~/.aws/credentials ` ` $ ls ~/.aws/ cli
config credentials sso ` ` ` `
~/.aws/config ~/.aws/credentials ` ` $ cat ~/.aws/config [default] region =
ap-northeast-1 [profile profile-custodian] region = ap-northeast-1 sso_start_url = https://a-0123456789.awsapps.com/start sso_region = ap-northeast-1 sso_account_id = 123456789012 sso_role_name = BaseRole output = json ... [profile other-profile] region = ap-northeast-1 sso_start_url = https://a-0123456789.awsapps.com/start sso_region = ap-northeast-1 sso_account_id = 123456789012 sso_role_name = OtherRole output = json ` ` $ cat ~/.aws/credentials [default] aws_access_key_id = AAAAAAAAAAAAAAAAAAAA aws_secret_access_key = *************** [other-profile] aws_access_key_id = BBBBBBBBBBBBBBBBBBBB aws_secret_access_key = *************** aws_session_token = ****
.aws/credentials
.aws/credentials AWS AWS aws_access_key_id , aws_secret_access_key , aws_session_token ` `
` ` ` ` [default] aws_access_key_id = AAAAAAAAAAAAAAAAAAAA aws_secret_access_key = *************** [other-credential] aws_access_key_id = BBBBBBBBBBBBBBBBBBBB aws_secret_access_key = *************** aws_session_token = ****
.aws/con g
.aws/con g AWS aws_access_key_id , aws_secret_access_key AWS credentials ` `
` `
[default] region = ap-northeast-1 [profile profile-custodian] region = ap-northeast-1 sso_start_url
= https://a-0123456789.awsapps.com/start sso_region = ap-northeast-1 sso_account_id = 123456789012 sso_role_name = BaseRole output = json ... [profile profile-other] source_profile = profile-custodian role_arn = arn:aws:iam::123456789012:role/SampleRole
.aws/con g pro le AWS --profile sourece_profile role_arn Role switch
Role ` ` $ aws s3 list → [default] $ aws s3 list --profile profile-other → [profile-other] ` ` ` `
Role source_profile role_arn SSO SSO aws_access_key_id aws_secret_access_key ` ` `
` ` ` ` ` [profile profile-custodian] region = ap-northeast-1 sso_start_url = https://a-0123456789.awsapps.com/start sso_region = ap-northeast-1 sso_account_id = 123456789012 sso_role_name = BaseRole output = json
Switch Role source_profile role_arn source_profile role_arn switch Role ` `
` ` ` ` ` ` [profile profile-other] source_profile = profile-custodian role_arn = arn:aws:iam::123456789012:role/SampleRole
.aws/credential .aws/con g ? aws_access_key_id aws_secret_access_key con g aws configure
.aws/credential ` ` ` ` ` ` ` `
SSO MFA SSO Role Switch role $ aws sso login
--profile profile-custodian
~/.aws/config ! AWS con g AWS ` `
( ) v2 AWS CLI aws CLI v2 ! !
--cli-auto-prompt ` ` ❯ aws --cli-auto-prompt > aws sso login --profile profile-custodian ────────────────────────────────────────────────────────────────────────────────────────────────────────────────── [ENTER] Autocomplete Choice/Execute Command [F1] Show Shortkey Help [F2] Focus on next panel [F3] Hide/Sh ow Docs [F5] Hide/Show Output
Appendix https://docs.aws.amazon.com/ja_jp/cli/latest/userguide/cli-con gure- les.html
END