{"id":13310,"date":"2023-07-29T14:01:43","date_gmt":"2023-07-29T05:01:43","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=13310"},"modified":"2023-08-01T07:27:30","modified_gmt":"2023-07-31T22:27:30","slug":"aws-cdk%e3%81%ae%e3%83%97%e3%83%ad%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%ef%bc%81%ef%bc%88typescript%ef%bc%89","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/13310","title":{"rendered":"AWS CDK\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\uff01\uff08TypeScript\uff09"},"content":{"rendered":"<p>TypeScript\u3092\u4f7f\u7528\u3059\u308bAWS CDK\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u30ea\u30dd\u30b8\u30c8\u30ea\u306f\u3001AWS CodeCommit\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>AWS CodeCommit\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b\uff01<\/h2>\n<p>\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u4f5c\u6210\u3057\u305f\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/13249\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"AWS CodeCommit\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b\uff01\uff08AWS CLI\uff0fCloudShell\uff09\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2022\/04\/eyecatch_aws_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">AWS CodeCommit\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b\uff01\uff08AWS CLI\uff0fCloudShell\uff09<\/div><div class=\"substr\">AWS CLI\u3067AWS CodeCommit\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u74b0\u5883\u306f\u3001AWS CloudShell\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/13257\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"AWS CodeCommit\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092Clone\u3059\u308b\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2022\/04\/eyecatch_aws_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">AWS CodeCommit\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092Clone\u3059\u308b\uff01<\/div><div class=\"substr\">AWS CodeCommit\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092Clone\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>Clone\u3057\u305f\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3059\u308b\uff01<\/h2>\n<p>Clone\u3057\u305f\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ cd sample-repo\r\n<\/pre>\n<h2>TypeScript\u3092\u4f7f\u7528\u3059\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\uff01<\/h2>\n<p>TypeScript\u3092\u4f7f\u7528\u3059\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ cdk init app --language typescript\r\nApplying project template app for typescript\r\n# Welcome to your CDK TypeScript project\r\n\r\nThis is a blank project for CDK development with TypeScript.\r\n\r\nThe `cdk.json` file tells the CDK Toolkit how to execute your app.\r\n\r\n## Useful commands\r\n\r\n* `npm run build`   compile typescript to js\r\n* `npm run watch`   watch for changes and compile\r\n* `npm run test`    perform the jest unit tests\r\n* `cdk deploy`      deploy this stack to your default AWS account\/region\r\n* `cdk diff`        compare deployed stack with current state\r\n* `cdk synth`       emits the synthesized CloudFormation template\r\n\r\nExecuting npm install...\r\nnpm notice \r\nnpm notice New major version of npm available! 8.19.3 -&gt; 9.8.1\r\nnpm notice Changelog: https:\/\/github.com\/npm\/cli\/releases\/tag\/v9.8.1\r\nnpm notice Run npm install -g npm@9.8.1 to update!\r\nnpm notice \r\n\u2705 All done!\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001Cloud9\u306e\u74b0\u5883\u306e\u5834\u5408\u306fCloud9\u306e\u30a8\u30c7\u30a3\u30bf\u3001\u30ed\u30fc\u30ab\u30eb\u306e\u74b0\u5883\u306e\u5834\u5408\u306fVisual Studio Code\u3092\u4f7f\u7528\u3057\u3066\u3001AWS CDK\u306e\u958b\u767a\u3092\u958b\u59cb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u53c2\u8003\u60c5\u5831<\/h2>\n<ul>\n<li><a href=\"https:\/\/docs.aws.amazon.com\/cdk\/v2\/guide\/home.html\" rel=\"noopener\" target=\"_blank\">AWS Cloud Development Kit (AWS CDK) v2<\/a><\/li>\n<\/ul>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/12112\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011AWS\u3092\u64cd\u4f5c\u3059\u308b\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2022\/04\/eyecatch_aws_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011AWS\u3092\u64cd\u4f5c\u3059\u308b\uff01<\/div><div class=\"substr\">AWS\u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TypeScript\u3092\u4f7f\u7528\u3059\u308bAWS CDK\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u30ea\u30dd\u30b8\u30c8\u30ea\u306f\u3001AWS CodeCommit\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":8172,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[370],"tags":[288,844,833,759,834,368,847,630],"class_list":["post-13310","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-operation","tag-aws","tag-aws-cdk","tag-aws-codecommit","tag-cloud9","tag-codecommit","tag-visual-studio-code","tag-847","tag-630"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/13310","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=13310"}],"version-history":[{"count":8,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/13310\/revisions"}],"predecessor-version":[{"id":13378,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/13310\/revisions\/13378"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/8172"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=13310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=13310"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=13310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}