æ¬è¨äºã¯ AWS CDK Advent Calendar 2024 ã® 24æ¥ç®ã®è¨äºã§ãã
CDK ã³ã³ããªãã¥ã¼ããå§ãã¦ããç´8ã¶æçµã¡ã¾ããã
å¹´æ«ã¨ãããã¨ããããã®æ©ä¼ã«æ¯ãè¿ã£ã¦ã¿ããã¨æãã¾ãï¼æè¡çãªå 容ã¯ã»ã¼ç¡ãã§ãï¼ã
ç®æ¬¡
- ç®æ¬¡
- ã³ã³ããªãã¥ã¼ãéå§ããç¾å¨ã¾ã§ã®æç³»å
- PRãéè¨ãã¦ã¿ã
- å°è±¡ã«æ®ã£ã¦ããPR
- çªå¤ï¼open-constructs
- CDKã³ã³ããªãã¥ã¼ãããã£ã¦ã¿ã¦ã®å¤å
- ä»å¾ã©ããã
- ãããã«
ã³ã³ããªãã¥ã¼ãéå§ããç¾å¨ã¾ã§ã®æç³»å
ã´ã¼ã«ãã³ã¦ã£ã¼ã¯ã«ã³ã³ããªãã¥ã¼ããå§ããï¼2024/4/30ï¼
GWã¾ã¨ã¾ã£ãæéãåãããã ã£ãã®ã§ãåãããã£ã¦ã¿ããã¨æã£ã¦ããã³ã³ããªãã¥ã¼ãã«ãã£ã¬ã³ã¸ãã¦ã¿ããã¨ã«ãã¾ããã
CDKãForkãã¦ç°å¢æ´ãã¦ãã¬ã¤ããã£ã¨è¦ãã¨ããã¾ã§ã¯ããã
— mazyu36 | Matsuda (@mazyu36) 2024å¹´4æ30æ¥
ãã¨ã¯ããã ãâ¦
åã³ã³ããªãã¥ã¼ãããæã®è¨äºâã
ããããã¨ããã©ããããã¦ãæ¥ã ã³ã³ããªãã¥ã¼ãããããã«ãªãã¾ããã
3ã¶æå¾ã«50ã³ã³ããªãã¥ã¼ãï¼2024/7/30ï¼
CDKã³ã³ããªãã¥ã¼ãã«ã¯ãã¼ã¸ãããPRæ°ã§ããã¸ãä»ãã²ã¼ãã³ã°è¦ç´ ãããã¾ãã以ä¸ã®è¨äºã«è¨è¼ãããéããç¹ã«ã¡ãªãããããããã§ã¯ãªãã楽ãã¿è¦ç´ ã§ããã
æä¸ä½ã¯ 50件以ä¸ãã¼ã¸ã® distinguished-contributor
ã§ããã¡ãã¯ç´3ã¶æã»ã©ã§éæãã¾ããã
CDK 50ã³ã³ããªãã¥ã¼ãï¼
— mazyu36 | Matsuda (@mazyu36) 2024å¹´7æ30æ¥
å¼ãç¶ããã£ã¦ããã¾ã pic.twitter.com/0HM1exy4vp
4ã¶æ~5ã¶æå¾ã« Top Contributor & Community Reviewer èªå®ï¼2024/9ï¼
9æã«å ¥ã£ãããã㧠Top Contributor ã¨ã¬ãã¥ã¢ã¼ã®èªå®ãããã ãã¾ãããã¬ãã¥ã¢ã¼ã®æ¹ã¯ç®æ¨ã«ãã¦ããã®ã¨ãè²¢ç®ã§ããæ¹æ³ãå¢ããã®ã§å¬ããã£ãã§ããï¼ãã£ã¨ã¬ãã¥ã¼é å¼µããã°...ï¼
ããï¼mazyuããã¨åããã¦CDKã®Top contributorã«ãªã£ã¦ãï¼ï¼ããããï¼ï¼
— badmintoncryer (@nixieminton) 2024å¹´9æ5æ¥
çµå±PR65åãããå¿ è¦ã§ãã..https://t.co/wj8ilo29y9
CDKã®Community Reviewerã« @mazyu36 ãã㨠@nixieminton ãããèªå®ããã¾ããï¼ãäºäººã¨ã70以ä¸ã®PRããã¼ã¸ããã¦ãããçµé¨è±å¯ãªã¬ãã¥ã¢ã¼ã¨ãã¦æ´»èºãã¦ããã ããã¨ä¿¡ãã¦ãã¾ããããããããããããé¡ããã¾ãðhttps://t.co/1yoMowU8Ni
— Kenji Kono (@konokenj) 2024å¹´9æ20æ¥
6ã¶æå¾ã«100ã³ã³ããªãã¥ã¼ãï¼2024/11/1ï¼
ç´åå¹´ã§100ã³ã³ããªãã¥ã¼ãã«ãªãã¾ããã
CDK 100ã³ã³ããªãã¥ã¼ã pic.twitter.com/sHJg4uCvkq
— mazyu36 | Matsuda (@mazyu36) 2024å¹´10æ31æ¥
å·çæç¹ï¼2024/12/24ï¼
è¨äºå·çæç¹ã§ã¯å ¨ä½ã§20çªç®ã®ã³ã³ããªãã¥ã¼ãæ°ã§ããã
éå»1å¹´éã§äººéçã§ã¯ä¸çªã³ã³ããªãã¥ã¼ããã¦ããããã§ãã
PRãéè¨ãã¦ã¿ã
ãã¾ãã¾ãªè»¸ã§èµ·ç¥¨ããPRãéè¨ãã¦ã¿ããã¨æãã¾ããå·çæç¹ã§ã¯æªãã¼ã¸ã®PRãå«ãã§ãã¾ãã
æãã¨ã®éè¨
æ | ã«ã¦ã³ã |
---|---|
2024-05 | 31 |
2024-06 | 25 |
2024-07 | 11 |
2024-08 | 11 |
2024-09 | 19 |
2024-10 | 12 |
2024-11 | 10 |
2024-12 | 13 |
åè¨ | 132 |
ã©ããããããããæåã®2ã¶æã¯PR起票ãã¾ãã£ã¦ã¾ããã
PRã®ç¨®é¡ãã¨ã®éè¨
PRã®ç¨®é¡ | ã«ã¦ã³ã |
---|---|
feat | 66 |
chore | 46 |
docs | 10 |
fix | 9 |
refactor | 1 |
åè¨ | 132 |
ã¡ããã©ååã featï¼æ©è½è¿½å ï¼ã§ãããenum追å ãªã©ãçµæ§ãã£ã¦ãããã chore ãå¤ãã§ãã
ãã°ä¿®æ£ã¯é£æ度ãå人çã«ãé£æ度ãé«ãã¨æã£ã¦ãããããã¾ã§ã§ãã¦ãã¾ããããä»å¾ã¯å¢ããã¦ããããã
ãµã¼ãã¹ãã¨ã®éè¨
ãµã¼ãã¹ | ã«ã¦ã³ã |
---|---|
rds | 19 |
bedrock | 11 |
ec2 | 8 |
apprunner | 7 |
location | 7 |
stepfunctions-tasks | 6 |
cognito | 5 |
elasticloadbalancingv2 | 5 |
synthetics | 5 |
opensearch | 5 |
ãã®ä» | 4 |
ecs | 3 |
glue | 3 |
ivs | 3 |
lambda | 3 |
pipes-enrichments | 3 |
codebuild | 3 |
appsync | 2 |
amplify | 2 |
config | 2 |
dynamodb | 2 |
fsx | 2 |
neptune | 2 |
ses | 2 |
events | 2 |
custom-resource | 1 |
docdb | 1 |
appconfig | 1 |
cloudfront | 1 |
kinesis | 1 |
kinesisanalytics-flink | 1 |
kms | 1 |
logs | 1 |
pipelines | 1 |
redshift | 1 |
route53 | 1 |
scheduler | 1 |
sns | 1 |
stepfunctions | 1 |
events-target | 1 |
batch | 1 |
åè¨ | 132 |
RDSã¯ã¨ã³ã¸ã³ãã¼ã¸ã§ã³ã®enum追å ãBedrockã¯åºç¤ã¢ãã«ã®enum追å ãEC2ã¯VPCã¨ã³ããã¤ã³ãã®enum追å ãå¤ãã£ãããä¸ä½ã«æ¥ã¦ãã¾ãã
featï¼æ©è½è¿½å ï¼ãå¤ãã£ãã®ã¯ãApp Runner, Location, Step Functions, Cognito, ALB/NLB ãããã§ãããã®è¾ºãã¯ã¦ã¼ã¶ã¼ã¨ãã¦å©ç¨ãããã¨ãå¤ãã£ãã®ãããããããå¾åã¨ãã¦ç¾ãã¦ãã¾ããã
å°è±¡ã«æ®ã£ã¦ããPR
ä¸çªå¤§å¤ã ã£ãã®ã¯ ALB ã® mTLS 対å¿ã§ããã以ä¸è¨äºã«ãæ¸ãã¦ãã¾ãããinteg-test èµ°è¡ã§å·¥å¤«ãå¿ è¦ã§è¦å´ãã¾ããã ãã 使ãããã£ãæ©è½ãªã®ã§è¾ãã¯ç¹ã«ãªãã£ãã§ãã
é£ç£ã ã£ãã®ã¯ä»¥ä¸ã® Step Functions 㧠Bedrock ã® Invoke ã« Guardrail 対å¿ã追å ããPRã§ããConstruct ã®ãã¶ã¤ã³ã§ã¡ã³ããã¼ã®æ¹ã¨ã®ããã¨ããç¶ãã¬ãã¥ã¼ãé·å¼ãã¾ããããã æçµçã«ã¯è¯ãå½¢ã«ã¾ã¨ã¾ã£ãã®ã§ãã£ã¦è¯ãã£ãã¨ã¯æãã¾ãã
Step Functions ã¯ç¹ã« tasks ã®æ¹ã¯ç¡éã«ã³ã³ããªãã¥ã¼ããã£ã³ã¹ãããã®ã§ããããã¶ã¤ã³ãè¤éã§é£æ度ãé«ãã§ãã
æè¿ã®PRã§å°è±¡ã«æ®ã£ã¦ããã®ã¯ AppSync Events ã®L2対å¿ã§ãã起票ããã¨ãã並è¡ã㦠AppSyncãã¼ã ï¼ä¸ã®æ¹ã ï¼ãå®è£ ãã¦ãããããã声ãããã¦ããããäºãã®å®è£ ãåãããå½¢ã§ååããã¦ãããã¾ããã
å·çæç¹ã§ã¯æªãã¼ã¸ã®ããããã¼ã¸ããããã¾ãå¥éè¨äºã«ãã¾ãï¼ãã®L2ãAdvent Calendarãã¿ã«ãããã¨æã£ã¦ãã¾ãããããã¼ã¸ãéã«åãã...ï¼
âå ã®PR github.com
âAppSyncãã¼ã ã«èµ·ç¥¨ãã¦ããã£ãPR github.com
çªå¤ï¼open-constructs
æ°è¦L2ä½æã¨ãã¦ã³ãã¥ããã£é§åã® Open Constructs ã«ããã£ã¬ã³ã¸ãã¾ããã
åæã¨ãã¦ã¯ããããããããã¤å°ã触ã£ã¦ãã Redshift Serverless ããã£ã¦ã¿ã¾ããã
å¾ã¯èªåã欲ããããã¤ããããéè¦ããããã㪠ElastiCache Serverless ãå®è£ ãã¦ãã¾ãããã¡ãã¯å·çæç¹ã§ã¯æªãã¼ã¸ã®ããããã¼ã¸ããããå¥éè¨äºã«ãã¾ãã
CDKã³ã³ããªãã¥ã¼ãããã£ã¦ã¿ã¦ã®å¤å
1. Construct ã test ã®å®è£ ã¹ãã«ãåä¸ãã
ã³ã³ããªãã¥ã¼ããéãã¦ä»¥ä¸ã«ã¤ãã¦ç¿çãããã¨ãã§ããCDKãå©ç¨ããã¦ã¼ã¶ã¼è¦ç¹ã§ãã¡ãªãããããã¨æãã¾ãã
- Construct ã®ãã¶ã¤ã³ãå®è£ æ¹æ³ï¼ç¹ã«L2ï¼
- unit test ã®å®è£
ãã¯ããã¯ã
test.each
ã§è¤æ°ã®ãã¹ããã¾ã¨ãããããªãã¼ã·ã§ã³ã®ãã¹ãæ¹æ³ãªã©ã - integ testã®å®è£ æ¹æ³
ã¾ãå é¨å®è£ ãããããã¨ã§ãã°ã£ã½ãæåãããæã«ãå®è£ ã調æ»ã§ããããã«ãªã£ããã¨ã大ããã§ãã
2. AWS ãµã¼ãã¹ã®ä»æ§ï¼APIï¼ã®ç解ãé²ã
ã³ã³ããªãã¥ã¼ãããéã¯ãåãµã¼ãã¹ã®ä»æ§ãè¸ã¾ããå®è£ ãå¶ç´ãè¸ã¾ããããªãã¼ã·ã§ã³ãè¡ãå¿ è¦ãããã¾ãããã®ãã対象ãµã¼ãã¹ã®ä»æ§ãAPIã«é¢ããç解ãæ·±ã¾ãã¾ãã
ãã®ããèªåãå ¨ã使ããªã / èå³ããªããµã¼ãã¹ã ã¨è¦ããããããã¾ããã å®è£ ããä¸ã§ããã¥ã¡ã³ãã ãã§ã¯ããåãããå®éã«åãããªãã試ãããããã¤ã§ã¨ã©ã¼ã«ãªãããå¶ç´ã確èªãã¦ããªãã¼ã·ã§ã³ã追å ããããªã©è©¦è¡é¯èª¤ãããªããé²ãããã¨ãå¤ãã®ã§ãã¢ããã¼ã·ã§ã³ããããµã¼ãã¹ã®ã³ã³ããªãã¥ã¼ãã«ãã£ã¬ã³ã¸ããã®ãè¯ãã¨æãã¾ãã
3. AWS ã¢ãããã¼ãã«ææã«ãªã
ã³ã³ããªãã¥ã¼ããã¿æ¢ããç®çã«ã以åãããæ¥ã ã®AWS ã¢ãããã¼ãã追ãããã«ãªãã¾ãããæ°æ©è½ã®ã³ã³ããªãã¥ã¼ããè¡ãã¨ã¡ãªãã2ã¨åããã¦ä»æ§ãææ¡ãããã¨ãã§ãã¦ä¸ç³äºé³¥ã§ãã
ãã ã CFn ã®ã¢ãããã¼ãã追ãã¤ãã¦ããªããã¨ãå¤ãã®ã§ããã®å ´åã¯å¯¾å¿ãããã¾ã§å¾ ã¤å¿ è¦ãããã¾ãã
ä»å¾ã©ããã
ã³ã³ããªãã¥ã¼ãã«æ £ãã¦ããã®ããããå°è¦æ¨¡ãªæ©è½è¿½å çã¯åãªãããªããããã«ãªã£ã¦ãã¾ããããã®ãã欲ããæ©è½ã®å®è£ ããã¤ã¤ãä»å¾ã¯ä»¥ä¸ã®æ¯çãä¸ãã¦ããããã¨æãã¾ãã
1. Coreã¢ã¸ã¥ã¼ã«ã CLIã¸ã®ã³ã³ããªãã¥ã¼ã
ä»ã¾ã§ã®ã³ã³ããªãã¥ã¼ãã¯å ¨ã¦ aws-cdk-lib ï¼åãµã¼ãã¹ã®Constructï¼ã§ãããCDKèªä½ã®Coreã®é¨åãCLIã¯ã¾ã çµé¨ã§ãã¦ãã¾ããã
æ´ãªãCDKã¹ãã«åä¸ã®ããã«ãã®è¾ºãããã£ã¬ã³ã¸ãã¦ããããã¨æãã¾ãã
2. Community Review
PRã®ã³ãã¥ããã£ã¬ãã¥ã¼ãä»å¾ã¯ç©æ¥µçã«ãã£ã¦ããããã¨æãã¾ããç¹ã«èªåãæãåºããªããããªPRãã¬ãã¥ã¼ãããã¨ã§ãããããå¾ããããã¨ãå¤ãã¨æãã¦ãã¾ãã
â»æè¿ã¯ã³ãã¥ããã£ã¬ãã¥ã¼ãæ¸ãã ãã®ã¯ãã¡ã³ããã¼ã¬ãã¥ã¼ã¾ã§ã®ãªã¼ãã¿ã¤ã ãçããªã£ã¦ãã¦ãããããã³ãã¥ããã£ã¬ãã¥ã¼ã®éè¦æ§ãå¢ãã¦ãã¦ããã¨ããã®ãçç±ã¨ãã¦ã¯ããã¾ã
3. 大ããã®æ©è½è¿½å ãæ°è¦L2ã«ãã£ã¬ã³ã¸
欲ããã¨æãã¤ã¤ãå®è£ éãå¤ãã¦æãåºãã¦ããªãæ©è½è¿½å ãL2追å ãããã®ã§ãã£ã¦ãããã¨æãã¾ããOpen Constructsã¸ã®ã³ã³ããªãã¥ã¼ãããã£ã¨ãã£ã¦ããããã§ããã
ãããã«
CDKèªä½ã¯OSSã®ä¸ã§ãã³ã³ããªãã¥ã¼ããããããã¼ãã«ã¯ä½ãã¨æãã¾ãï¼ç§ãCDKãåã®OSSã³ã³ããªãã¥ã¼ãï¼ã
èå³ãããæ¹ã¯ãã²ãã£ã¬ã³ã¸ãã¦ã¿ã¦ãã ããï¼