{"id":13387,"date":"2023-08-03T06:53:59","date_gmt":"2023-08-02T21:53:59","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=13387"},"modified":"2023-08-05T09:26:12","modified_gmt":"2023-08-05T00:26:12","slug":"cdk-for-terraform%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%ef%bc%81%ef%bc%88rocky-linux-9%ef%bc%89","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/13387","title":{"rendered":"CDK for Terraform\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01\uff08Rocky Linux 9\uff09"},"content":{"rendered":"<p>Rocky Linux 9\u306bCDK for Terraform\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>AWS CLI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01<\/h2>\n<p>\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3057\u3066\u3001AWS CLI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/13269\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u7279\u5b9a\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306eAWS CLI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01\uff08Linux\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\">\u7279\u5b9a\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306eAWS CLI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01\uff08Linux\uff09<\/div><div class=\"substr\">\u7279\u5b9a\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306eAWS CLI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002...<\/div><\/a><\/div>\n<h2>JavaScript\u304a\u3088\u3073TypeScript\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01<\/h2>\n<p>\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3057\u3066\u3001Node.js\u304a\u3088\u3073TypeScript\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/13300\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"TypeScript\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01\uff08Rocky Linux 9\uff09\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2018\/06\/fia0000001-150x150.gif\" class=\"lazyload\"><\/div><div class=\"title\">TypeScript\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01\uff08Rocky Linux 9\uff09<\/div><div class=\"substr\">Rocky Linux 9\u306bType Script\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>Terraform\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01<\/h2>\n<p>Terraform\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3066\u30011.5.2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2,3,4,5,6,7]; title: ; notranslate\" title=\"\">\r\n$ git clone https:\/\/github.com\/tfutils\/tfenv.git ~\/.tfenv\r\n$ echo 'export PATH=&quot;$HOME\/.tfenv\/bin:$PATH&quot;' &gt;&gt; ~\/.bash_profile\r\n$ source ~\/.bash_profile\r\n$ tfenv list-remote | head -5\r\n$ tfenv install 1.5.2\r\n$ tfenv list &gt;&gt; cloud9_create.log\r\n$ tfenv use 1.5.2\r\nCloning into '\/home\/usradmin\/.tfenv'...\r\nremote: Enumerating objects: 1959, done.\r\nremote: Counting objects: 100% (564\/564), done.\r\nremote: Compressing objects: 100% (150\/150), done.\r\nremote: Total 1959 (delta 463), reused 451 (delta 410), pack-reused 1395\r\nReceiving objects: 100% (1959\/1959), 416.21 KiB | 2.17 MiB\/s, done.\r\nResolving deltas: 100% (1267\/1267), done.\r\n1.6.0-alpha20230802\r\n1.6.0-alpha20230719\r\n1.5.4\r\n1.5.3\r\n1.5.2\r\nInstalling Terraform v1.5.2\r\nDownloading release tarball from https:\/\/releases.hashicorp.com\/terraform\/1.5.2\/terraform_1.5.2_linux_amd64.zip\r\n################################################################################################################# 100.0%\r\nDownloading SHA hash file from https:\/\/releases.hashicorp.com\/terraform\/1.5.2\/terraform_1.5.2_SHA256SUMS\r\nNot instructed to use Local PGP (\/home\/usradmin\/.tfenv\/use-{gpgv,gnupg}) &amp; No keybase install found, skipping OpenPGP signature verification\r\nterraform_1.5.2_linux_amd64.zip: OK\r\nArchive:  \/tmp\/tfenv_download.eAAzsS\/terraform_1.5.2_linux_amd64.zip\r\n  inflating: \/home\/usradmin\/.tfenv\/versions\/1.5.2\/terraform  \r\nInstallation of terraform v1.5.2 successful. To make this your default version, run 'tfenv use 1.5.2'\r\nSwitching default version to v1.5.2\r\nDefault version (when not overridden by .terraform-version or TFENV_TERRAFORM_VERSION) is now: 1.5.2\r\n<\/pre>\n<h2>CDK for Terraform\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01<\/h2>\n<p>CDK for Terraform\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo npm install --g cdktf-cli@latest\r\nnpm WARN deprecated @npmcli\/ci-detect@1.4.0: this package has been deprecated, use `ci-info` instead\r\n\r\nadded 474 packages, and audited 529 packages in 52s\r\n\r\n98 packages are looking for funding\r\n  run `npm fund` for details\r\n\r\nfound 0 vulnerabilities\r\n<\/pre>\n<h2>AWS CDK\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>AWS CDK\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ cdktf --version\r\n0.17.3\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>CDK for Terraform\u306f\u3001AWS CLI\u3001Node.js\u3001TypeScript\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5f8c\u3001npm\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<h2>\u53c2\u8003\u60c5\u5831<\/h2>\n<ul>\n<li><a href=\"\/\/developer.hashicorp.com\/terraform\/cdktf\" rel=\"noopener\" target=\"_blank\">CDK for Terraform<\/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>Rocky Linux 9\u306bCDK for Terraform\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\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":[845,467,469,760,52],"class_list":["post-13387","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-operation","tag-cdk","tag-rocky-linux","tag-rocky-linux-9","tag-terraform","tag-52"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/13387","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=13387"}],"version-history":[{"count":7,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/13387\/revisions"}],"predecessor-version":[{"id":13401,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/13387\/revisions\/13401"}],"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=13387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=13387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=13387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}