Deploying a Complete DuploCloud Stack with Pulumi

Deploy a full DuploCloud infrastructure stack using Pulumi

This page demonstrates how to deploy a full infrastructure stack using the DuploCloud Pulumi provider. It includes setting up the infrastructure, creating a Tenant, provisioning an EKS node, deploying a web application, and configuring a load balancer. Code samples are provided in Python, Go, TypeScript, and C#.

Prerequisites

Before you begin, make sure you have completed the steps in the Getting Started with Pulumi and DuploCloud guide.

You must also have:

  • A valid AWS certificate ARN to use for the HTTPS load balancer.

  • An active DuploCloud API token set in your environment or configuration.

What This Example Does

This example Pulumi project will:

  • Create DuploCloud infrastructure (VPC, subnets, region)

  • Create a DuploCloud tenant

  • Provision an EKS worker node using AwsHost

  • Deploy an nginx service inside Kubernetes

  • Expose the service using a DuploCloud-managed load balancer

Example: Deploying a Full Stack in Multiple Languages

An example demonstrating the deployment of DuploCloud infrastructure, tenant, EKS node, and web application on Kubernetes using the DuploCloud Pulumi provider across multiple language SDKs. Replace any placeholder values with values from your actual environment.

Go

Python

TypeScript

C#

Outputs

Each example exports the following Pulumi outputs:

  • vpcId: The ID of the created VPC

  • tenantId: The ID of the DuploCloud tenant

These outputs can be used in other Pulumi stacks, referenced in CI/CD workflows, or passed into downstream infrastructure, for example, to attach additional services to the same VPC or to deploy applications into the created tenant.

Additional Resources

Last updated

Was this helpful?