AWS Certified Developer - Associate (DVA-C01)に合格した
AWS Certified Developer - Associate (DVA-C01)に合格しましたので、その記録を書いておきます。
AWS Certified Developer - Associate (DVA-C01)に合格しましたので、その記録を書いておきます。
SAMのハンズオンをやってみた。
SAMとは、Serverless Application Modelの接頭辞で、サーバレスアプリケーションを素早く開発するためのツールセットです。CloudFormationにより、必要なリソースのデプロイが行われます。今回は、Cloud9環境を用いてハンズオンを行いました。
大きな流れは以下の通りです。
sam init)sam build)sam local start-api)sam deploy)sam init
今回は、以下のような構成を取りました。
sam init
以下のとおり選択していきます。
You can preselect a particular runtime or package type when using the `sam init` experience.
Call `sam init --help` to learn more.
Which template source would you like to use?
1 - AWS Quick Start Templates
2 - Custom Template Location
Choice: 1
Choose an AWS Quick Start application template
1 - Hello World Example
2 - Multi-step workflow
3 - Serverless API
4 - Scheduled task
5 - Standalone function
6 - Data processing
7 - Infrastructure event management
8 - Lambda EFS example
9 - Machine Learning
Template: 3
Which runtime would you like to use?
1 - dotnet6
2 - dotnetcore3.1
3 - nodejs16.x
4 - nodejs14.x
5 - nodejs12.x
Runtime: 3
Based on your selections, the only Package type available is Zip.
We will proceed to selecting the Package type as Zip.
Based on your selections, the only dependency manager available is npm.
We will proceed copying the template using npm.
Would you like to enable X-Ray tracing on the function(s) in your application? [y/N]: N
Project name [sam-app]: sam-app
Cloning from https://github.com/aws/aws-sam-cli-app-templates (process may take a moment)
-----------------------
Generating application:
-----------------------
Name: sam-app
Runtime: nodejs16.x
Architectures: x86_64
Dependency Manager: npm
Application Template: quick-start-web
Output Directory: .
Next steps can be found in the README file at ./sam-app/README.md
Commands you can use next
=========================
[*] Create pipeline: cd sam-app && sam pipeline init --bootstrap
[*] Validate SAM template: sam validate
[*] Test Function in the Cloud: sam sync --stack-name {stack-name} --watch
SAM CLI update available (1.70.0); (1.57.0 installed)
To download: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html
ディレクトリ構成を確認しておきます。
DVA試験(AWS Certified Developper - Associate)対策のため、Beanstalkをハンズオンしてみたので記録しておきました。
2023年最初の「やってみた」は、Amazon WorkSpacesの検証でした。
今までは、静的CMSであるHexoを使ってローカル環境で各ページを生成し、生成されたページをGitHub Pagesで公開する、という構成を取っていました。
この構成を取っていた理由は以下の2つです。
gitで管理できるためgit pushさえすればページが公開され、かつ無料で気軽に使うことができるためしかし思うところがあり、今回、この構成をAWSに移行することにしました。