這個直播簡單示範如何在Github Actions裡面直接部署一個CDK應用。
0:00 Greetings
1:28 Why cdk deploy with Github Actions?
2:12 Built with jsii/superchain as the base container
4:02 先分享我的治感冒技巧^_^
9:25 Introducing pahud/awscdk-action
10:24 Dockerfile
11:04 entrypoint.sh
11:58 action.yml
13:35 develop the action in a private repository
14:05 workflow_dispatch
14:37 jobs and steps
18:25 use the pahud/github-codespace as a template
20:25 open our new project with Codespaces
21:47 Idea - Live virtual workshop with AWS Heroes
24:38 configure AWS CLI with AWS SSO
28:08 create a new CDK app with projen
32:20 Let's look into the cdkdeploy.yml
41:17 Prepare your AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
47:13 QA time - Neil
55:02 Let's see our `cdk deploy` in action
57:39 Closing
#cdk
#github
#actions
#codespaces
...
https://www.youtube.com/watch?v=BO_JHc_ovRs
The script I used to setup the AWS SSO environment: https://gist.github.com/pahud/1b932d905549851a6f5d0385712da275
...
https://www.youtube.com/watch?v=cGUNf1FMNvI
This video walks you through the aws-cdk #PR #22312 to add metadata options support to the launchTemplate L2 construct.
This video is recorded in 4K 2160p quality. Make sure you select the best quality for best watching experience.
https://github.com/aws/aws-cdk/pull/22312
0:00:00 Introduction
0:02:58 Install the Gitpod browser extension
0:04:56 read the issue
0:06:08 read the source code of launch-template.ts
0:07:30 check the cloudformation doc for MetadataOptions
0:09:36 open a Gitpod workspace for this PR
0:11:16 connect local VSCode to the Gitpod workspace
0:13:02 yarn install
0:14:23 run `buildup` for aws-ec2
0:15:59 open the launch-template.ts and start coding
0:32:07 write a integ.launch-template.ts to test the new feature
0:36:44 alias `cdk` CLI to the correct path
0:37:30 yarn watch
0:38:24 `cdk synth` for the first time and check the YAML
0:39:55 configure your AWS account
0:40:16 option 1 - add credentials as persisting env vars in Gitpod
0:42:10 option 2 - use AWS SSO
0:42:24 install AWS CLI V2 for AWS SSO
0:43:38 add ~/.aws/config
0:44:01 aws sso login
0:44:28 run `aws sts get-caller-identity` to validate the current identity
0:44:59 run `cdk diff` first
0:45:47 run `cdk deploy`
0:46:11 check the cloudformation console
0:49:10 commit current progress to our branch in the fork repo
0:51:36 submit a draft PR
0:54:36 continue our development and open a new workspace from PR
0:57:57 complete our integ testing and generate the snapshot
1:00:13 yarn test to validate the snapshot
1:01:46 git commit
1:02:05 add unit tests
1:05:23 run `yarn test` to check all tests
1:05:50 git commit
1:06:08 update README
1:06:48 yarn awslint
1:07:35 git commit and check the PR
1:08:22 debug the failed CodeBuild CI build
1:09:25 refactor our design
1:11:32 commit and push again
1:11:43 CI passed
1:11:54 ready for review
1:12:08 closing
AWS CDK Contributing Guide
https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md
Gitpod - Instant Development Environment Setup
https://www.youtube.com/watch?v=QV1fYt-7SLU
Amazon Web Service - Replace IAM Users with AWS SSO
https://youtu.be/L3xoiabmcO0
...
https://www.youtube.com/watch?v=JjAMvBzSrEQ