Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
terraform_initialization [2023/04/28 08:41] – created andonovj | terraform_initialization [2023/04/28 08:49] (current) – andonovj | ||
---|---|---|---|
Line 20: | Line 20: | ||
- | < | + | < |
+ | [DEFAULT] | ||
+ | user=ocid1.user.oc1..**************************** | ||
+ | fingerprint=***************************** | ||
+ | tenancy=ocid1.tenancy.oc1..********************** | ||
+ | region=us-******-1 | ||
+ | key_file=< | ||
+ | </ | ||
+ | |||
+ | These values are important for us. So choose a folder, where you want to have your terraform repository initialized and created the following file: | ||
+ | |||
+ | < | ||
+ | julien.andonov@julienaonovsMBP adi_redis % cat provider.tf | ||
+ | provider " | ||
+ | tenancy_ocid = " | ||
+ | user_ocid = " | ||
+ | private_key_path = "/ | ||
+ | fingerprint = " | ||
+ | region = " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | After that, we need to initiliza the environment: | ||
+ | |||
+ | < | ||
+ | julien.andonov@julienaonovsMBP adi_redis % terraform init | ||
+ | |||
+ | Initializing the backend... | ||
+ | |||
+ | Initializing provider plugins... | ||
+ | - Finding latest version of hashicorp/ | ||
+ | - Installing hashicorp/ | ||
+ | - Installed hashicorp/ | ||
+ | |||
+ | Terraform has created a lock file .terraform.lock.hcl to record the provider | ||
+ | selections it made above. Include this file in your version control repository | ||
+ | so that Terraform can guarantee to make the same selections by default when | ||
+ | you run " | ||
+ | |||
+ | ╷ | ||
+ | │ Warning: Additional provider information from registry | ||
+ | │ | ||
+ | │ The remote registry returned warnings for registry.terraform.io/ | ||
+ | │ - For users on Terraform 0.13 or greater, this provider has moved to oracle/oci. Please update your source in required_providers. | ||
+ | ╵ | ||
+ | |||
+ | Terraform has been successfully initialized! | ||
+ | |||
+ | You may now begin working with Terraform. Try running " | ||
+ | any changes that are required for your infrastructure. All Terraform commands | ||
+ | should now work. | ||
+ | |||
+ | If you ever set or change modules or backend configuration for Terraform, | ||
+ | rerun this command to reinitialize your working directory. If you forget, other | ||
+ | commands will detect it and remind you to do so if necessary. | ||
+ | julien.andonov@julienaonovsMBP adi_redis % | ||
</ | </ |