Implementing Pulumi on OCI: An IaC approach to deploy and manage resources

June 12, 2024 | 4 minute read
Akarsha Itigi
Cloud Architect
Maninder Flora
Cloud Architect
Text Size 100%:

In this blog post, we explore how to use Pulumi infrastructure as code (IaC) capabilities to simplify the administration of Oracle Cloud infrastructure (OCI). In a second tutorial, we also discuss an example of deploying resources using Pulumi in OCI. 

By guiding you through a simple installation and configuration process, this post ensures that Pulumi fits seamlessly into your workflow. With this comprehensive guide, you can comfortably explore the world of IaC, regardless of your experience level. Get ready to change the way you manage your infrastructure with Pulumi on OCI.

Pulumi has a user-friendly interface that makes it easy to install and manage resources with a few selections. Say goodbye to the hassle of manual configuration and hello to a simpler way to manage your OCI infrastructure.

Simplified cloud infrastructure management with Pulumi

Pulumi offers the following advantages:

  • User-friendly iInterface: Pulumi simplifies infrastructure management by providing an intuitive interface. Whether you’re a seasoned developer or new to cloud operations, Pulumi’s straightforward design ensures a smooth experience.

  • Seamless communication with OCI: Pulumi seamlessly interacts with your OCI environment. This streamlining ensures efficient resource management, allowing you to focus on building rather than wrestling with configurations.

  • Language flexibility: Pulumi supports various programming languages. Whether you prefer Python, JavaScript, or Go, you can create and manage your stack using the language you’re most comfortable with.

  • Error-reduced deployment: Pulumi streamlines the deployment process, minimizing manual errors. With automated workflows, you can confidently provision resources without worrying about missteps.

How Pulumi works

Pulumi uses a desired-state model for managing infrastructure. A language host runs a Pulumi program to compute the desired-state for a stack’s infrastructure. The deployment engine compares this desired-state with the stack’s current state and determines what resources must be created, updated, or deleted.

Installation and configuration of Pulumi on OCI

To use Pulumi with OCI, install the Pulumi library for your OS. Then install OCI Pulumi Provider, which act as the connection between the Pulumi code and the OCI services you want to oversee. OCI providers enable Pulumi to create, manage, and configure resources within your OCI environment through code. When the installation is complete, configure the environment variables for your OCI tenancy.

Now, you can create a Pulumi stack for deploying and managing the resources in OCI. You can follow this tutorial for the step-by-step installation and configuration of Pulumi on OCI.

The following screenshot shows an example of Pulumi code and its output after we configure Pulumi on OCI:

Pulumi availability domain output

Deployment of OCI resources using Pulumi

After the installation and Configuration is complete and you’ve created the stack for deploying the resources on OCI using programming language of your choice, such as TypeScript, JavaScript, Python, Go, C#, YAML, and Java, you can start working on coding your infrastructure on OCI. For example, we created a Python Pulumi stack for deploying a virtual cloud network (VCN) and a Compute Instance on our OCI tenancy. To check out how we implemented the example, you can follow this tutorial for guided instructions.

Monitoring deployments in Pulumi dashboard

You can monitor Pulumi deployments using Pulumi’s dashboard, which enhances visibility into the IaC deployments. With its easy-to-use interface and live updates, you get real-time insights into deployments and resources, enhancing collaboration and workflow efficiency. Pulumi’s dashboard simplifies infrastructure management and optimizes deployment processes for organizations. To access the Pulumi dashboard, sign up for a Pulumi account, log in, and navigate to the dashboard. On the dashboard, you can view deployments by running your Pulumi code, providing real-time insights into your OCI infrastructure.

Pulumi dashboard


In this post, we discussed using Pulumi to deploy and manage resources on OCI and the advantages of using Pulumi to manage infrastructure in OCI. We also covered how Pulumi works, how to install and configure Pulumi, and how we can deploy resources on Oracle Cloud Infrastructure using Pulumi. Using Pulumi, you can enhance efficiency, reduce errors, and maintain a better approach to managing your cloud infrastructure.

For more information, see the following resources:

Akarsha Itigi

Cloud Architect

Maninder Flora

Cloud Architect

Previous Post

Step-by-Step Guide: Interconnecting Oracle Cloud Infrastructure and Google Cloud

Srikanth Hugar | 9 min read

Next Post

Improving deliverability with OCI Email Delivery one-click unsubscribe

Allan Yeung | 3 min read