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
TerraformでS3バケット削除後、再作成するとApplyが終わらない!
Search
haruko_tanabe
February 08, 2025
150
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
TerraformでS3バケット削除後、再作成するとApplyが終わらない!
haruko_tanabe
February 08, 2025
More Decks by haruko_tanabe
See All by haruko_tanabe
ELB vs API Gateway vs CloudFront / 結局何を選べばいいの?
harukotanabe
1
470
ELB vs API Gateway vs CloudFront / 結局何を選べばいいの?
harukotanabe
1
350
エンジニア歴1年未満の初心者が3か月でAWS認定試験を全冠した話
harukotanabe
1
7.8k
クラウド未経験者が3か月でAWS認定試験を全冠した話
harukotanabe
0
350
エンジニア歴1年未満の初心者が3か月でAWS認定試験を全冠した話
harukotanabe
0
200
Featured
See All Featured
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
The Pragmatic Product Professional
lauravandoore
37
7.5k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
390
エンジニアに許された特別な時間の終わり
watany
109
250k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
270
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
880
The browser strikes back
jonoalderson
0
1.7k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
3
4.3k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
340
Paper Plane
katiecoart
PRO
4
53k
Design in an AI World
tapps
1
330
Transcript
TerraformでS3バケット削除後、 再作成するとApplyが終わらない! 2025/2/8 tanabe haruko
• 外資系コンサルティング企業のエンジニア • 2024 Japan AWS All Certifications Engineers •
Google Cloud認定資格 12種保有 tanabe haruko https://zenn.dev/haruko_tanabe @hrsaaaam
1 Apply失敗の発生経緯
Apply失敗の発生経緯 Terraform ソースコード の準備 S3バケットを Apply Applyした S3バケットを Destroy 別リージョンに
S3バケットを 再Apply 発生 ap-northeast-1 us-east-1
• 通常は数秒で完了するApplyが永遠に終わらない。 Apply失敗の発生経緯
2 Apply失敗の原因調査
Apply失敗の原因調査 S3バケット名を変更して再Applyしてみる ⇒ Apply成功 調査1 同じ名前のS3バケットを同一リージョンで再Applyしてみる ⇒ Apply成功 調査2
Apply失敗の原因調査 直前のApply・Destroyから、時間をあけて異なるリージョン に同じ名前のS3バケットを再Applyしてみる 調査3 1回目Destroyと2回目Applyの間隔 Apply結果 10分 失敗 30分 失敗
60分 成功
Apply失敗の原因調査 AWSマネジメントコンソールのS3管理画面での挙動を確認 してみる ⇒ エラー発生 調査4
3 結論
結論 • AWS内部で、S3の情報がリージョン間で同期される際、60分前後のタイム ラグがある。 • したがって、S3バケットを一度作成・削除し、直後に同名のS3バケットを再 度別リージョンで作成しようとすると失敗する。
結論(後日談) • AWS公式サイトに当該現象に対する解説が掲載されていることを発見。 変更の整合性が取れるまでには 48~72 時間かかる場合があります。S3 バケットを再作 成するには、少なくとも 48 時間待つことをお勧めします。
https://repost.aws/ja/knowledge-center/s3-conflicting-conditional-operation
Thank you!