Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
リソース名の中にリージョン名の短縮形を入れたい!
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
きせのん
July 05, 2025
Technology
210
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
リソース名の中にリージョン名の短縮形を入れたい!
「5文字未満でなんとなくリージョンが推察できて対照表があって公式のやつ、無いかなぁ…」
きせのん
July 05, 2025
More Decks by きせのん
See All by きせのん
Billing_Transfer試してみた
xery
0
6
多分この説明が一番正確だと思います (AZマッピング編)
xery
0
130
Other Decks in Technology
See All in Technology
NDIでApple Vision Proにリアルタイム映像送信
jyouryuusui
0
120
SAENM ~Jupyterで残すPoCの試行錯誤、未来の自分と仲間を助ける記録!~
terapyon
0
110
オントロジーって 結局なにもの? AI エージェントに「意味」を渡す知識設計の話
greenmidori
0
190
しろおびから始める!ログ活用の第一歩
shumei_ito
0
950
「事実」を「計測」して、「解釈」する 〜AWS Lambdaのメモリ最適解の見つけ方〜
maimyyym
0
170
DevelopersIO 2026 知識の地図を描く ─ オントロジーとは何か?
ishikawa_satoru
1
1.7k
事業成長とデータ活用を止めないためのマネジメントへ挑戦
hiracky16
0
390
JAWS-UGグッズ職人仕事の流儀
kentapapa
0
100
自作バイナリを動かす「入口」8選
puhitaku
2
1.3k
Post AI時代のリファクタリング実践記 / Refactoring in the post AI era
kaminashi
1
230
10年後、Engineering 行為を剥奪されるとして、わたしたちは、どう、何を創ればいいだろうか。 / If Engineering Is Taken Away in 10 Years, How and What Should We Create?
bitkey
PRO
1
190
コンテナ運用におけるネットワーク・コンテナコストの削減方法/How to Reduce Network and Container Costs in Container Operations
masakiokuda
1
150
Featured
See All Featured
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.2k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
5
820
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Amusing Abliteration
ianozsvald
1
350
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
570
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.2k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
RailsConf 2023
tenderlove
30
1.6k
For a Future-Friendly Web
brad_frost
184
10k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Transcript
リソース名の中にリージョン名の 短縮形を入れたい! きせのん @2025/07/06 JAWSミートの翌日LT大会 豊橋スペシャル
自己紹介 きせのん • Twitter (X): @Xe_ry • 大阪のユーザー系SIerでCCoEとネットワーク屋さんをしています • 好きなAWSサービス
◦ AWS CloudShell (いつも一時クレデンシャルをありがとう) ◦ AWS Transit Gateway (アタッチメントにルートテーブルを複数関連付けさせてほしい) • AWS認定15冠 ◦ SAPとDOPが今年中に期限切れ…😇 • 自作キーボードとインディーゲームをつまみ食い
リソース名の中に リージョン情報を入れたい… 入れたくない?
でもリージョンコードそのままは長い • 私のリージョン情報埋め込み遍歴 ◦ リージョン名の都市 (Asia Pacific (Tokyo) → tokyo)
▪ 日本はたまたま5文字で揃ってるけど他は…? ▪ バージニア北部とかピリオド入っとるが ◦ AZ IDの前半 (apne1-az1 → apne1) ▪ 個人的にはお気に入り • AZ情報を入れたい時にも後半を使ってる ▪ でも最大5文字か…もうちょい削れない?
先行研究が無いはずもなく… • IATA空港コードがいいんじゃないか、という記事 ◦ 投稿が2016年 (!) ◦ 東京 → HND、大阪
→ KIX といった具合 • 識別子やURLに空港コードが入っているサービスもある ◦ エッジロケーション ◦ WorkSpacesのヘルスチェックサーバー • でもリージョンとの完全な対応表は無い ◦ サービスによって東京がHNDだったりNRTだったり ◦ 海外の空港なんもわからん
「5文字未満で なんとなくリージョンが推察できて 対照表があって公式のやつ、 無いかなぁ…」
そこで AWS Region billing codes ですよ AWS Region billing codes
- AWS Regions and Availability Zones • 請求コンソールでお馴染み ◦ APN3-TimedStorage-ByteHrs とか APN1-ConfigurationItemRecorded みたいに使用タイプの最初についてる4文字のやつ • 謎にアイルランドリージョンが `EU` なのを除けば今のところ全部4文字 • なんとなく分かりそう でも…
そこで AWS Region billing codes ですよ APS* が途中からカオス & 4文字維持の危機
まとめ • リソース名の中にリージョン名の短縮形を入れたい時には AWS Region billing codes が良さげですよ ◦ 若干の不安要素には目を瞑りつつ…
余談
AZ名とAZ IDのマッピングはアカウント毎に違う (かもしれない) って話があるじゃないですか • AWS RAM (Resource Access Manager)
の実装あたりでAZ IDという概念が出てき て、合わせてマッピングの話が判明した ◦ 古いアカウントを持ってる人はなんとなく察してたとか察してなかったとか ◦ 私は知らなくて驚いた方の人です • 実はAZのマッピングがアカウント毎なのは古参リージョンだけで、 大阪含む他リージョンは統一されているらしい ◦ AZ IDs - AWS Regions and Availability Zones
ご清聴ありがとうございました