{"id":171,"date":"2022-07-07T18:07:04","date_gmt":"2022-07-07T18:07:04","guid":{"rendered":"http:\/\/wp.chaoyu.nl\/?p=171"},"modified":"2022-07-13T22:26:22","modified_gmt":"2022-07-13T22:26:22","slug":"oracle-cloud-infrastructure-terraform","status":"publish","type":"post","link":"https:\/\/chaoyu.nl\/?p=171","title":{"rendered":"Oracle Cloud Infrastructure: Terraform"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><strong>Installation of Terraform on your local machine<\/strong><\/h2>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">On Mac run <\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"bash\" class=\"language-bash line-numbers\">brew tap hashicorp\/tap\nbrew install hashicorp\/tap\/terraform<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Installation of OCI CLI on your local machine<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Official OCI CLI installation guide: <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/docs.oracle.com\/en-us\/iaas\/Content\/API\/SDKDocs\/cliinstall.htm#InstallingCLI__macos_homebrew\">https:\/\/docs.oracle.com\/en-us\/iaas\/Content\/API\/SDKDocs\/cliinstall.htm#InstallingCLI__macos_homebrew<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>After installation of OCI CLI and Terraform on your local Machine<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A guide to get start use Terraform with OCI connection to your OCI tenancy. <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>How to make connections to your OCI ( session valid for 1 hour) <\/li><li><mark style=\"background-color:#7bdcb5\" class=\"has-inline-color has-black-color\"><code>oci session refresh --profile &lt;yourprofilename&gt;<\/code> <\/mark>to  refresh<\/li><li>Start create your first Cloud Resources with Terraform<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/learn.hashicorp.com\/tutorials\/terraform\/oci-build?in=terraform\/oci-get-started\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/learn.hashicorp.com\/tutorials\/terraform\/oci-build?in=terraform\/oci-get-started<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Github Terraform OCI provider<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/oracle\/terraform-provider-oci\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/oracle\/terraform-provider-oci<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Go to Exmples to find all possible Resources that are able to be created via Terraform.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installation of Terraform on your local machine On Mac run Installation of OCI CLI on your local machine Official OCI CLI installation guide: https:\/\/docs.oracle.com\/en-us\/iaas\/Content\/API\/SDKDocs\/cliinstall.htm#InstallingCLI__macos_homebrew After installation of OCI CLI and Terraform on your local Machine A guide to get start use Terraform with OCI connection to your OCI tenancy. How to make connections to your&#8230;<\/p>\n","protected":false},"author":1,"featured_media":287,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-171","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oci"],"_links":{"self":[{"href":"https:\/\/chaoyu.nl\/index.php?rest_route=\/wp\/v2\/posts\/171","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chaoyu.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chaoyu.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chaoyu.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chaoyu.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=171"}],"version-history":[{"count":5,"href":"https:\/\/chaoyu.nl\/index.php?rest_route=\/wp\/v2\/posts\/171\/revisions"}],"predecessor-version":[{"id":181,"href":"https:\/\/chaoyu.nl\/index.php?rest_route=\/wp\/v2\/posts\/171\/revisions\/181"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chaoyu.nl\/index.php?rest_route=\/wp\/v2\/media\/287"}],"wp:attachment":[{"href":"https:\/\/chaoyu.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chaoyu.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chaoyu.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}