{"id":26084069,"url":"https://github.com/idvoretskyi/terraform-oci-k8s","last_synced_at":"2025-03-09T04:12:40.152Z","repository":{"id":280640084,"uuid":"942673224","full_name":"idvoretskyi/terraform-oci-k8s","owner":"idvoretskyi","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-04T13:56:50.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T14:33:24.037Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/idvoretskyi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-04T13:40:53.000Z","updated_at":"2025-03-04T13:56:54.000Z","dependencies_parsed_at":"2025-03-04T14:44:50.578Z","dependency_job_id":null,"html_url":"https://github.com/idvoretskyi/terraform-oci-k8s","commit_stats":null,"previous_names":["idvoretskyi/terraform-oci-k8s"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idvoretskyi%2Fterraform-oci-k8s","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idvoretskyi%2Fterraform-oci-k8s/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idvoretskyi%2Fterraform-oci-k8s/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idvoretskyi%2Fterraform-oci-k8s/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idvoretskyi","download_url":"https://codeload.github.com/idvoretskyi/terraform-oci-k8s/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242640907,"owners_count":20162054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-09T04:12:39.601Z","updated_at":"2025-03-09T04:12:40.140Z","avatar_url":"https://github.com/idvoretskyi.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform OCI Kubernetes\n\nThis project sets up a Kubernetes cluster on Oracle Cloud Infrastructure.\n\n## Prerequisites\n\n1. Install OCI CLI and Terraform\n2. Configure OCI credentials\n\n## OCI CLI Configuration\n\nBefore running Terraform, ensure your OCI CLI is configured with proper authentication:\n\n```bash\n# Install OCI CLI\nbash -c \"$(curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh)\"\n\n# Configure OCI CLI\noci setup config\n```\n\nThis will create a config file at `~/.oci/config` with your credentials.\n\nEnsure your config contains the following for the DEFAULT profile:\n\n```\n[DEFAULT]\nuser=ocid1.user.oc1..example\nfingerprint=aa:bb:cc:dd:ee:ff:gg:hh:ii:jj:kk:ll:mm:nn:oo:pp\nkey_file=~/.oci/oci_api_key.pem\ntenancy=ocid1.tenancy.oc1..example\nregion=uk-london-1\n```\n\n## Authentication\n\nTerraform can use your OCI configuration automatically without explicitly setting credentials in the provider block. The terraform-oci-k8s project is set up to use:\n\n1. The **DEFAULT** profile from `~/.oci/config` (simplest approach)\n2. Environment variables if present (override config file)\n\n### Verifying Your Configuration\n\nRun the verification script to ensure your OCI config is complete:\n\n```bash\nchmod +x ./scripts/verify_config.sh\n./scripts/verify_config.sh\n```\n\n### Using Environment Variables\n\nIf your configuration file isn't working, you can use environment variables instead:\n\n```bash\nchmod +x ./scripts/set_env_vars.sh\neval \"$(./scripts/set_env_vars.sh)\"\n```\n\n## Usage\n\n```bash\ncd tf\nterraform init\nterraform plan\nterraform apply\n```\n\n## Troubleshooting\n\nIf you encounter authentication issues:\n\n1. **Verify OCI CLI works**: Run `oci iam region list` to verify your CLI configuration works\n2. **Check key permissions**: Run `chmod 600 ~/.oci/oci_api_key.pem` to set correct permissions\n3. **Use environment variables**: If config file doesn't work, use the environment variable approach\n4. **Check your keys**: Ensure your API key is properly generated and uploaded to OCI console\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidvoretskyi%2Fterraform-oci-k8s","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidvoretskyi%2Fterraform-oci-k8s","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidvoretskyi%2Fterraform-oci-k8s/lists"}