feat: Add Oracle Cloud Infrastructure (OCI) Linux template #675
+706
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a Terraform template for provisioning Coder workspaces on Oracle Cloud Infrastructure (OCI), addressing issue #201.
Changes
Template Structure
main.tf): Complete OCI compute instance provisioningREADME.md): Comprehensive setup and usage guidecloud-config.yaml.tftpl: System configuration and package installationuserdata.sh.tftpl: Coder agent initialization scriptFeatures
✅ Multi-Region Support: 24 OCI regions worldwide with flag icons
✅ Always Free Tier: Default configuration uses OCI's generous free tier
✅ Flexible Instance Shapes: Support for various compute shapes including:
✅ Persistent Storage: Full filesystem persistence across workspace restarts
✅ Integrated Development Tools:
✅ Resource Monitoring: CPU, memory, and disk usage tracking
✅ Cloud-init Automation: Automated instance setup and configuration
✅ Security: Proper IAM policies and security list configuration
Technical Details
Authentication Methods
The template supports multiple OCI authentication methods:
Required Variables
compartment_ocid: OCI compartment OCIDsubnet_ocid: Subnet OCID for instance networkingssh_public_key: SSH public key for instance accessResources Provisioned
Prerequisites
Users need to set up:
Documentation
The README includes:
Testing
The template has been structured following the existing AWS/GCP/Azure templates in the registry and includes:
Compliance
Related Issue
Closes #201
Additional Notes
This template enables Coder users to leverage Oracle Cloud Infrastructure's:
The template is production-ready and follows OCI best practices for security, networking, and resource management.
Bounty: This PR addresses the $100 bounty issue #201