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
初めてのKubernetes 本番運用でハマった話
oku053
0
130
【やさしく解説 設計編・中級 #4】ルールの寿命と、システムの年輪
panda728
PRO
2
160
生成AI導入の「期待外れ」を乗り越える ー 開発フロー改革が目指す、真の組織変革
starfish719
0
1.6k
地域 SRE コミュニティ最前線 - ホンマでっかSRE勉強会
tk3fftk
0
270
作るコストが小さくなった時代 幸せに働くために改めて考えたいこと 〜エンジニアとして価値を出し続けるために注視している二分野〜
yuppeeng
0
120
AIキャラアプリkaiwaの低遅延音声通話基盤をどう作ったか - AWS Gravitonで支える低遅延・低コストAI Agent基盤
mogamit
0
180
Terraform標準の組織で AWS CDKをどう使うか
mu7889yoon
1
330
ソフトウェア設計に溶けるインフラ ― AWS CDK のインフラ認識論
konokenj
2
600
アルゴリズムは何を圧縮しているのか ─ Haskell から育った「圧縮代数」というメンタルモデル
naoya
16
3.6k
AI時代、エンジニアはどう育つのか -未経験エンジニアの成長を間近で見て考えたこと-
thasu0123
0
140
『コードを書く以外の』エンジニアリング〜課金基盤移行プロジェクト推進のためのTips4選
yuriko1211
0
530
act2-costs.pdf
sumedhbala
0
120
Featured
See All Featured
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
150
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
190
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
72
40k
Embracing the Ebb and Flow
colly
88
5.1k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
470
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.2k
Context Engineering - Making Every Token Count
addyosmani
9
1k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
240
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
510
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
220
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.5k
Amusing Abliteration
ianozsvald
1
240
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