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
750
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
Pythonの実行はどこまで賢くなったのか? CPythonとPyPyから見る最適化のしくみ
curekoshimizu
3
1.3k
AWS DevOps AgentのAzure接続機能を検証して見えた活用法/Use Cases Verified for the AWS DevOps Agent's Azure Connectivity Feature
masakiokuda
1
260
Claude Code全社展開のためにやったことn選~プラグイン302個・コミッター271人を支えるために~
kenchan
5
1.6k
VibeCodingからAgenticWorkflowへ
starfish719
0
740
Go 1.27 における memory allocation の高速化
andpad
0
290
KotlinConf Extended South Korea 2026 Keynote
l2hyunwoo
0
120
Loosening the Reins: Go Generics Get More Flexible
kuro_kurorrr
0
150
「つくるAI」だけではバグは見つからない ~テストに必要な「見つけるAI」を分離させる戦略~
mfunaki
0
140
片田舎のおっさん、 Swift Buildのダイアモンド問題解決の不具合修正PRを出すが、解決方法がキャッシュをしないようにすることであり、ビルド時間が伸びると言われてマージされないので高速化もする/swiftbuild
yimajo
0
230
【デモ】Kiroで体験する仕様駆動開発|設計からコーディングまでAIと進める開発フロー
cmkudo
0
310
リアルな遅延を測る仕様
kota_yata
1
120
まだ間に合う!今年の夏こそSchemeのマクロ展開器を完全理解!
omasanori
0
330
Featured
See All Featured
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
A Modern Web Designer's Workflow
chriscoyier
698
190k
The Language of Interfaces
destraynor
162
27k
Color Theory Basics | Prateek | Gurzu
gurzu
0
430
Git: the NoSQL Database
bkeepers
PRO
432
67k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
66
57k
Making the Leap to Tech Lead
cromwellryan
135
10k
Paper Plane
katiecoart
PRO
2
53k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.1k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
380
Paper Plane (Part 1)
katiecoart
PRO
1
10k
The Cost Of JavaScript in 2023
addyosmani
55
10k
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