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歴1年の初心者がAWS Console-to-Codeを使ってみた話
Search
せのお
December 21, 2023
Technology
650
0
Share
AWS歴1年の初心者がAWS Console-to-Codeを使ってみた話
AWS re:Invent 2023に現地参加してないけど、新しいサービスを使ってみました。
せのお
December 21, 2023
More Decks by せのお
See All by せのお
社内勉強会運営のコツ
senoo
6
1.8k
AWS歴1年の視点で_CLFとSAAを比較.pdf
senoo
2
950
Other Decks in Technology
See All in Technology
Do Ruby::Box dream of Modular Monolith?
joker1007
1
350
国内外の生成AIセキュリティの最新動向 & AIガードレール製品「chakoshi」のご紹介 / Latest Trends in Generative AI Security (Domestic & International) & Introduction to AI Guardrail Product "chakoshi"
nttcom
3
1.2k
EBS暗号化に失敗してEC2が動かなくなった話
hamaguchimmm
2
200
20260423_執筆の工夫と裏側 技術書の企画から刊行まで / From the planning to the publication of technical book
nash_efp
3
410
Azure Static Web Apps の自動ビルドがタイムアウトしやすくなった状況に対応した件/global-azure2026
thara0402
0
420
AWS認定資格は本当に意味があるのか?
nrinetcom
PRO
2
280
エージェントスキルを作って自分のインプットに役立てよう
tsubakimoto_s
0
380
AgentCore×VPCでの設計パターンn選と勘所
har1101
3
280
PicoRuby as a Multi-VM Operating System
kishima
1
100
EarthCopilotに学ぶマルチエージェントオーケストレーション
nakasho
0
300
マルチプロダクトの信頼性を効率良く保っていくために
kworkdev
PRO
0
160
AWS Agent Registry の基礎・概要を理解する/aws-agent-registry-intro
ren8k
3
380
Featured
See All Featured
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
350
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.4k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.2k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
100
How Software Deployment tools have changed in the past 20 years
geshan
0
33k
Rails Girls Zürich Keynote
gr2m
96
14k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.8k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
770
Context Engineering - Making Every Token Count
addyosmani
9
830
Abbi's Birthday
coloredviolet
2
7.1k
Transcript
© NEC Solution Innovators, Ltd. 2022 NEC Solution Innovators Internal
Use Only AWS歴1年の初心者が AWS Console-to-Codeを使ってみた話 2023年12月12日 NECソリューションイノベータ株式会社 妹尾歩美
© NEC Solution Innovators, Ltd. 2022 NEC Solution Innovators Internal
Use Only 2 自己紹介 妹尾 歩美 (Ayumi Senoo) ◆ NECソリューションイノベータ株式会社 社会人2年目 AWS歴1年 AWSリセールの販促支援をしています ◆ 好きなAWSサービス:Lambda 一番AWSを使っていたのは新人研修のハッカソン 一番使っていたサービスがLambda
© NEC Solution Innovators, Ltd. 2022 NEC Solution Innovators Internal
Use Only 3 AWS re:Inventで発表されたサービスを使ってみる ◆ まずはサービス選び 発表されたサービスを順番に確認 自分が理解できそうなサービスを探す ◆ AWS Console-to-Codeを発見 EC2は立ち上げられるが、CloudFormationを使ったことない自分にぴったり! CloudFormationのテンプレートの書き方を コンソール操作と繋げながら学習できることに期待
© NEC Solution Innovators, Ltd. 2022 NEC Solution Innovators Internal
Use Only 4 AWS Console-to-Code (以下略:Console-to-Code) ◆ コンソールで実行されたアクションを記録し、再利用可能なコードに変化させる ◆ 以下のコードへの変換に対応 CDK - Java/Python/TypeScript CloudFormation - JSON/YAML AWS CLI ◆ 現在はEC2、そしてバージニア北部リージョン(us-east-1)のみ対応 現時点での情報はあまりない。 習うより慣れよ。まずやってみよう。
© NEC Solution Innovators, Ltd. 2022 NEC Solution Innovators Internal
Use Only 5 よし、Console-to-Code使ってみよう ◆ まずはポチポチとEC2を立ち上げる。 WordPressがインストールされたWebサーバを想定。 問題なく成功。
© NEC Solution Innovators, Ltd. 2022 NEC Solution Innovators Internal
Use Only 6 さあ、Console-to-Codeの出番 失敗
© NEC Solution Innovators, Ltd. 2022 NEC Solution Innovators Internal
Use Only 7 目標はConsole-to-Codeを使ってみること ◆ 余計な情報は削ぎ落そう。WordPressは諦める。 ユーザーデータ削除して再チャレンジ。 成功
© NEC Solution Innovators, Ltd. 2022 NEC Solution Innovators Internal
Use Only 8 本当に使えるかどうかの保証はない 実際に使ってみる 失敗×6回
© NEC Solution Innovators, Ltd. 2022 NEC Solution Innovators Internal
Use Only 9 最後は成功 成功
© NEC Solution Innovators, Ltd. 2022 NEC Solution Innovators Internal
Use Only 10 生成されたコードは修正が必要 Before { "Resources": { "EC2Instance": { "Type": "AWS::EC2::Instance", "Properties": { "ImageId": "ami-0fa1ca9559f1892ec", "InstanceType": "t2.micro", "NetworkInterfaces": [ { "AssociatePublicIpAddress": true, "DeviceIndex": 0, "SubnetId": "subnet-07759d01b6da89c28", "GroupSet": ["sg-026b62d8ca3f59b73"] } ], "TagSpecifications": [ { "ResourceType": "instance", "Tags": [ { "Key": "Name", "Value": "handson-webserver" } ] } ], "MetadataOptions": { "HttpTokens": "required", "HttpEndpoint": "enabled", "HttpPutResponseHopLimit": 2 }, "PrivateDnsNameOptions": { "HostnameType": "ip-name", "EnableResourceNameDnsARecord": false, "EnableResourceNameDnsAAAARecord": false } } } } } After { "Resources": { "EC2Instance": { "Type": "AWS::EC2::Instance", "Properties": { "ImageId": "ami-0fa1ca9559f1892ec", "InstanceType": "t2.micro", "NetworkInterfaces": [ { "SubnetId": "subnet-07759d01b6da89c28", "AssociatePublicIpAddress": true, "DeviceIndex": 0 } ], "PrivateDnsNameOptions": { "HostnameType": "ip-name", "EnableResourceNameDnsARecord": false, "EnableResourceNameDnsAAAARecord": false } } } } } スタック作成時にエラーが出ていた箇所は全削除で対応 ※コードを確認したところ、EC2の立ち上げに必須の情報には見えなかったため
© NEC Solution Innovators, Ltd. 2022 NEC Solution Innovators Internal
Use Only 11 まとめ ◆ CloudFormationの知識は間違いなく必要。 ◆ CloudFormationのテンプレートを作成できたという成功体験になった。 ◆ 今後のアップデート次第で、もっと使いやすくなりそう。 みなさんもぜひConsole-to-Codeを使って、 フィードバックをお願いします! 生成されたコード の下にあります。
© NEC Solution Innovators, Ltd. 2022 NEC Solution Innovators Internal
Use Only
None
None