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
開発者体験を変えるInfrastructure as Codeの新機能6選!
Search
Kenji Kono
March 02, 2024
Programming
9
1.7k
開発者体験を変えるInfrastructure as Codeの新機能6選!
AWSにおける最近のInfrastructure as Code (IaC) のアップデートからピックアップしてご紹介します。
JAWS Days 2024 のLT資料 (4分枠) です。
Kenji Kono
March 02, 2024
Tweet
Share
More Decks by Kenji Kono
See All by Kenji Kono
AI Agent 時代のソフトウェア開発を支える AWS Cloud Development Kit (CDK)
konokenj
6
1.2k
ご注文の差分はこちらですか? 〜 AWS CDK のいろいろな差分検出と安全なデプロイ
konokenj
6
910
AWS Step Functions は CDK で書こう!
konokenj
8
1.6k
AWS IaCの注目アップデート 2024年10月版
konokenj
3
4k
Infrastructure as Code でセキュリティを楽にしよう!
konokenj
8
2.1k
初心者がおさえておきたいAWS CDKのベストプラクティス 2024
konokenj
31
20k
AWS Infrastructure as Code の新機能を総まとめ! 2023.1-2024.5
konokenj
13
7.1k
Infrastructure as Codeで壁を越える技術を身につけよう!
konokenj
4
1.3k
BLEA開発チームが学んだAWS CDKの開発プラクティス 2023年版
konokenj
13
6.3k
Other Decks in Programming
See All in Programming
AIでLINEスタンプを作ってみた
eycjur
1
230
Kiroで始めるAI-DLC
kaonash
2
620
私の後悔をAWS DMSで解決した話
hiramax
4
210
Navigating Dependency Injection with Metro
zacsweers
3
2.5k
個人開発で徳島大学生60%以上の心を掴んだアプリ、そして手放した話
akidon0000
1
140
ファインディ株式会社におけるMCP活用とサービス開発
starfish719
0
2k
AIを活用し、今後に備えるための技術知識 / Basic Knowledge to Utilize AI
kishida
22
5.9k
go test -json そして testing.T.Attr / Kyoto.go #63
utgwkk
3
310
アセットのコンパイルについて
ojun9
0
130
MCPでVibe Working。そして、結局はContext Eng(略)/ Working with Vibe on MCP And Context Eng
rkaga
5
2.3k
The Past, Present, and Future of Enterprise Java with ASF in the Middle
ivargrimstad
0
160
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
410
Featured
See All Featured
A Modern Web Designer's Workflow
chriscoyier
696
190k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
131
19k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.9k
Into the Great Unknown - MozCon
thekraken
40
2k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
Rails Girls Zürich Keynote
gr2m
95
14k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Making Projects Easy
brettharned
117
6.4k
Facilitating Awesome Meetings
lara
55
6.5k
BBQ
matthewcrist
89
9.8k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
61k
Code Review Best Practice
trishagee
71
19k
Transcript
© 2024, Amazon Web Services, Inc. or its affiliates. All
rights reserved. 開発者体験を変える Infrastructure as Code の新機能 6選︕ J A W S D A Y S 2 0 2 4 - B - 1 1 ⾼野 賢司 シニア ソリューション アーキテクト アマゾン ウェブ サービス ジャパン合同会社 2024/3/2 1
© 2024, Amazon Web Services, Inc. or its affiliates. All
rights reserved. ⾼野 賢司 シニア ソリューション アーキテクト @名古屋 アマゾン ウェブ サービス ジャパン合同会社 • ⽇本における IaC の普及や技術⽀援を担う バーチャルチームのリード • Baseline Environment on AWS (BLEA) 開発者 https://github.com/aws-samples/baseline-environment-on-aws こ う の け ん じ
© 2024, Amazon Web Services, Inc. or its affiliates. All
rights reserved. IaC は ⽣成AI とクラウドをつなぐ鍵 • AWS CloudFormation, AWS CDK (TypeScript, Python), HashiCorp Terraform (HCL) をサポート • セキュリティスキャンにも対応 3 Amazon CodeWhisperer が IaC をサポート 2023/12/4 ⼀般提供開始 AWS CDK の例 AWS CloudFormation の例 Amazon CodeWhisperer にて AI を活⽤した新しいコード修正、 IaC サポート、および Visual Studio との統合提供を開始 https://aws.amazon.com/jp/blogs/news/amazon-codewhisperer- offers-new-ai-powered-code-remediation-iac-support-and- integration-with-visual-studio/
© 2024, Amazon Web Services, Inc. or its affiliates. All
rights reserved. • AWS リソースをスキャンして CloudFormation テンプレートを ⽣成し、インポート可能 • 無料で利⽤可能 • スキャン回数やリソース数に 制限あり *1 • リソースインポート、 ドリフト検出、IaC Generator に 対応したリソースの⼀覧を提供 *2 4 IaC Generator 2024/2/5 ⼀般提供開始 *1 ... https://docs.aws.amazon.com/AWSCloudFormation/latest/ UserGuide/generate-IaC.html#generate-template-considerations *2 ... https://docs.aws.amazon.com/AWSCloudFormation/latest/ UserGuide/resource-import-supported-resources.html AWS CloudFormation にアプリケーション全体をインポート https://aws.amazon.com/jp/blogs/news/import-entire-applications- into-aws-cloudformation/
© 2024, Amazon Web Services, Inc. or its affiliates. All
rights reserved. CDK に移⾏するための CLI コマンド。 3種類の⽅法で CDK App (コード) を ⽣成し、インポートまで補助 • --from-scan は IaC Generator の リソーススキャンを使⽤ • 最⼤ 100リソースまで⽣成可能 • 関連リソースはすべて含まれる • --from-stack はデプロイ済みの CloudFormation スタックを使⽤ • --from-path はローカルの CloudFormation テンプレートを使⽤ • L1 コンストラクトで記述される • ⽣成された README.md を読もう︕ 5 CDK Migrate 2024/2/2 プレビュー開始 CDK Migrate: AWS CDK への移⾏コマンドの発表 https://aws.amazon.com/jp/blogs/news/announcing-cdk-migrate-a- single-command-to-migrate-to-the-aws-cdk/ AWS CDK v2.126.0 ... --from-scan オプションを追加 AWS CDK v2.100.0 ... migrate コマンドを追加 (experimental)
© 2024, Amazon Web Services, Inc. or its affiliates. All
rights reserved. • ドラッグ&ドロップ、リソース 間の接続で GUI で IaC を作成 • ⻑い CFn/SAM テンプレートも 簡単にリソース単位で編集 • SAM Sync ですぐにデプロイ • すべての CloudFormation リソースに対応 *1 • コード補完やリファレンス参照、 ⽣成 AI によるコード提案も可能 • CDK アプリの可視化にも有効 6 AWS Application Composer が VSCode に対応 2023/11/30 ⼀般提供開始 AWS Application Composer の IDE 拡張により、AI が⽣成する IaC を利⽤した視覚的な最新アプリケーション開発が強化されます https://aws.amazon.com/jp/blogs/news/ide-extension-for-aws-application-composer-enhances-visual-modern-applications-development-with-ai-generated-iac/ *1 ... 2023/9/23 ⼀般提供開始
© 2024, Amazon Web Services, Inc. or its affiliates. All
rights reserved. • Application Composer と Step Functions Workflow Studio を シームレスに⾏き来できる • Application Composer で 定義した Lambda 関数などを 参照可能 • VSCode でも利⽤可能 7 AWS Application Composer が Step Functions に対応 2023/11/30 ⼀般提供開始 AWS Step Functions Workflow Studio が AWS Application Composer で 利⽤可能に https://aws.amazon.com/jp/blogs/news/aws-step-functions- workflow-studio-is-now-available-in-aws-application-composer/
© 2024, Amazon Web Services, Inc. or its affiliates. All
rights reserved. • AWS マネジメントコンソールの 操作から AWS CLI コマンド、 CDK コード (Java, Python, TypeScript), CloudFormation テンプレートを ⽣成 AI を使⽤して⽣成 • ⽣成されたコードは Amazon Q や CodeWhisperer を 使⽤して改善していくのがおすすめ • us-east-1 の EC2 コンソールで プレビュー中 8 AWS Console-to-Code https://aws.amazon.com/jp/about-aws/whats-new/2023/11/aws- console-to-code-preview-generate-console-actions/ 2023/11/26 プレビュー開始
© 2024, Amazon Web Services, Inc. or its affiliates. All
rights reserved. 新しく stable になったモジュール • appconfig (v2.130.0) • apigatewayv2 (v2.112.0) • synthetics (v2.99.0) • batch (v2.96.0) • appsync (v2.60.0) 新しい L2 コンストラクト(⼀部) • ecs.ServiceManagedVolume (v2.122.0) • cloudfront.KeyValueStore (v2.118.0) • stepfunctions.DistributedMap (v2.127.0) • dynamodb.TableV2 (v2.95.0) • codedeploy.EcsDeploymentGroup (v2.50.0) 9 CDK の最新情報は X で配信しています AWS CDK の アップデート情報を つぶやいています #cdk_releases * v2.29.0 (2022年6⽉) から https://twitter.com/hashtag/ cdk_releases?src=hashtag_click&f=live
© 2024, Amazon Web Services, Inc. or its affiliates. All
rights reserved. Thank you! Kenji Kono @konokenj 10