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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
Contextとはなにか
chiroruxx
1
330
Lessons from Spec-Driven Development
simas
PRO
0
200
ふつうのFeature Flag実践入門
irof
7
4k
dRuby over BLE
makicamel
2
340
PHPで使える日時の表現と、その知り方 #frontend_phpcon_do
o0h
PRO
0
240
ユニットテストの先へ:テスト技法で要求・仕様を整理するJava開発実践 / Beyond_Unit_Testing_Practical_Java_Development_Techniques_for_Organizing_Requirements_and_Specifications
shimashima35
0
400
Oxcを導入して開発体験が向上した話
yug1224
4
310
作って学ぶ、 JSX (TSX) ランタイムの基本
syumai
7
1.6k
例外の正しい扱い方 そのエラー try-catchして大丈夫?
jinwatanabe
0
240
Honoでのサプライチェーン侵害対策 〜 3つのライブラリに学ぶ
yusukebe
6
1.2k
Semantic Version 単位で戦略を柔軟に変えて、パッケージアップデートを自動化する
daitasu
1
240
気づいたらRubyで100作品 ー クリエイティブコーディングが生活の一部になるまで / 100 Ruby Sketches Later: How Creative Coding Became Part of My Life
chobishiba
3
580
Featured
See All Featured
Prompt Engineering for Job Search
mfonobong
0
340
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
25k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
54k
Designing Experiences People Love
moore
143
24k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
We Are The Robots
honzajavorek
0
250
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
580
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.3k
How STYLIGHT went responsive
nonsquared
100
6.2k
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