Files
terraform/oracle/kr/SETUP_GUIDE.md

32 lines
1.3 KiB
Bash

#!/bin/bash
# Script to help configure OCI environment variables
echo "=== OCI Environment Setup Guide ==="
echo ""
echo "Before proceeding with Terraform operations, you need to set up your OCI environment."
echo ""
echo "1. Ensure you have configured your OCI CLI with proper credentials:"
echo " - ~/.oci/config file with proper profile"
echo " - ~/.oci/oci_api_key.pem file with your private key"
echo ""
echo "2. Find your compartment OCID:"
echo " - Log into Oracle Cloud Console"
echo " - Navigate to Identity & Security -> Compartments"
echo " - Copy the OCID of the compartment you want to use"
echo ""
echo "3. Find your availability domain:"
echo " - In Cloud Console, go to Compute -> Instances"
echo " - Check the region you're working in"
echo " - Note the availability domains (usually look like: 'Uocm:AP-SINGAPORE-1-AD-1')"
echo ""
echo "4. Find your image ID:"
echo " - In Cloud Console, go to Compute -> Images"
echo " - Select an appropriate image for your region"
echo " - Copy the OCID"
echo ""
echo "5. Edit terraform.tfvars file with your actual values:"
echo " compartment_id = \"ocid1.compartment.oc1......\""
echo " availability_domain = \"Uocm:AP-SEOUL-1-AD-1\" # example for Seoul region"
echo " image_id = \"ocid1.image.oc1......\""
echo ""
echo "After updating these values, you can proceed with Terraform operations."