infrastructure-as-code

Provide expert guidance on OCI Infrastructure as Code with Terraform and Resource Manager.

16|3|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/acedergren/oci-agent-skills --skill infrastructure-as-code-acedergren
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: infrastructure-as-code
Source: https://github.com/acedergren/oci-agent-skills/tree/main/skills/infrastructure-as-code
Command: npx skills add https://github.com/acedergren/oci-agent-skills --skill infrastructure-as-code-acedergren

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill bridges the knowledge gap for Oracle Cloud Infrastructure (OCI) Infrastructure as Code (IaC) by providing expert guidance on Terraform, Resource Manager, and best practices, compensating for limitations in AI training data.

Core Features & Use Cases

  • Terraform Provider Expertise: Understand OCI-specific Terraform provider gotchas, authentication, and resource lifecycle management.
  • Resource Manager Guidance: Learn how to effectively use OCI Resource Manager for deploying and managing IaC.
  • OCI Landing Zones: Guidance on leveraging official OCI Landing Zone Terraform modules for compliant and secure OCI environments.
  • Cost Optimization: Strategies for cost-effective IaC, including using flexible shapes and proper tagging.
  • Use Case: Troubleshoot a Terraform deployment that fails due to an OCI provider authentication error or optimize an existing Terraform configuration to reduce cloud spend.

Quick Start

Use the infrastructure-as-code skill to help me write Terraform for OCI.

Frequently Asked Questions about infrastructure-as-code

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage Terraform state and resource lifecycle traps in Oracle Cloud Infrastructure?

Terraform state in Oracle Cloud Infrastructure is managed by understanding OCI provider-specific patterns and resource lifecycle traps. OCI Resource Manager handles state natively, ensuring reliable cloud automation and consistent infrastructure provisioning across your environments.

What are OCI Landing Zones in Terraform and when do I need them?

OCI Landing Zones are official Terraform modules for Oracle Cloud Infrastructure that establish compliant and secure environments. You need them when deploying cloud automation infrastructure requiring strict security baselines and standardized resource configurations across your organization.

How do I optimize cloud spend using Terraform with OCI flexible shapes?

Optimize cloud spend in Oracle Cloud Infrastructure by configuring Terraform to use OCI flexible shapes and applying proper resource tagging. These cost optimization strategies ensure your infrastructure as code provisions necessary compute capacity efficiently.

Why does my Terraform deployment fail with an OCI provider authentication error?

Terraform deployments fail with Oracle Cloud Infrastructure provider authentication errors due to misconfigured credentials or permissions. Resolving these OCI-specific gotchas requires verifying your authentication setup and ensuring the Terraform provider has correct access policies configured.

Can I use OCI Resource Manager for deploying infrastructure as code instead of Terraform CLI?

Yes, you can use OCI Resource Manager for deploying infrastructure as code instead of the Terraform CLI. Resource Manager is Oracle Cloud Infrastructure's managed service that handles Terraform deployments, state management, and lifecycle operations natively without local setup.