Questions tagged [pulumi]

Pulumi is a platform for building and deploying cloud infrastructure and applications with code

Pulumi is a modern infrastructure as code platform that allows developers to use familiar programming languages and tools to build, deploy, and manage cloud infrastructure.

Describe your resources in code – VMs, networks, databases, containers, serverless functions – and the CLI will safely and reliably manage your cloud resources using an infrastructure-as-code approach. As a language-neutral IaC platform, Pulumi doesn't force developers to learn new programming languages, nor does it use domain-specific languages.

By using general purpose languages, developers can use IDEs, test frameworks, and package managers to build the infrastructure. The result is far less copy and paste and greater productivity, and it works the same way no matter which cloud you're targeting.

460 questions
5
votes
2 answers

How to run command on startup?

How does one instruct Pulumi to execute one or more commands on a remote host? The equivalent Terraform command is remote-exec.
Gili
  • 86,244
  • 97
  • 390
  • 689
4
votes
1 answer

How to Mock Pulumi Resources in Go Unit Tests?

I have a function that takes an input of an AWS OpenIdConnectProvider Pulumi Resource and creates a IAM Role with an AssumeRolePolicy attached that contains info from that OIDC provider. The Problem: I am trying to write a test for this function and…
4
votes
1 answer

How to set null config values in helm charts via pulumi

I'm trying to configure a helm chart via pulumi and golang. According to the helm chart documentation default components can be removed by setting the config to null. I managed to set the desired config values for the helm chart in my pulumi script,…
fabs
  • 77
  • 1
  • 1
  • 13
4
votes
2 answers

Pulumi and GCP Uptime Checks deployments failing from time to time

We added recently GCP UptimeChecks to our pulumi stack, we create the uptime check like this ucc, err := monitoring.NewUptimeCheckConfig(ctx, name, &monitoring.UptimeCheckConfigArgs{ DisplayName: pulumi.String("uptime check example"), …
Eric Nascimento
  • 381
  • 3
  • 15
4
votes
1 answer

How to get the WorkspaceKey after creating a Pulumi.AzureNative.OperationalInsights.Workspace?

I create a Pulumi.AzureNative.OperationalInsights.Workspace with the following: name = "workspace"; var workspace = new Workspace ( name, new WorkspaceArgs { Location = resourceGroup.Location, …
Steven T. Cramer
  • 1,508
  • 1
  • 18
  • 34
4
votes
1 answer

Pulumi ensure dependency order

I need a way of ensuring some services have been stood up and their URLs formalised in GCP before I craft an OpenAPI spec - using substitutions. The URLs are relatively dynamic as this environment is torn down nightly. One solution I have is import…
KnowHoper
  • 4,352
  • 3
  • 39
  • 54
4
votes
2 answers

How to define default tags with pulumi aws provider

What is the correct way to define default tags so that they are applied to all AWS resources in my stack? I have the following provider config, but none of my resources are actually tagged: config: aws:defaultTags: tags: key1: value1 …
stelmod
  • 515
  • 4
  • 7
4
votes
2 answers

Is getting Ansible to work with Pulumi possible?

I wish to create several droplets (DigitalOcean) in a loop and then run Ansible afterwards on the droplets to setup the required software and security measures. Is this possible like terraform? If so, how would this look in javascript/typescript…
Dreamystify
  • 125
  • 13
4
votes
1 answer

Deploying Localstack with Pulumi: Missing credentials in config

I am trying to deploy localstack with Pulumi. In particular I am trying to follow this example. The code is the following. import * as aws from "@pulumi/aws"; import * as pulumi from "@pulumi/pulumi"; // Create a bucket each for TPS reports and…
4
votes
1 answer

Is Pulumi that magical when compared to using Azure .NET SDK?

I'm with a dilema here about which SE site to ask this question so please help me out if it should be somewhere else. I've been looking into Infrastructure as Code solutions. Didn't like Terraform too much. The lack of intellisense makes…
Fabio Milheiro
  • 8,100
  • 17
  • 57
  • 96
4
votes
3 answers

How to access Cloud Run service IPs from Terraform / Pulumi to dynamically create A records?

I am using Google Cloud Run with Pulumi (similar to Terraform). My setup for Cloud Run's domain mapping is: new gcp.cloudrun.DomainMapping( `${prefix}-domain-mapping`, { location, name: 'xxx', metadata: { …
Kai Sellgren
  • 27,954
  • 10
  • 75
  • 87
4
votes
1 answer

How to edit a pulumi resource after it's been declared

I've declared a kubernetes deployment like: const ledgerDeployment = new k8s.extensions.v1beta1.Deployment("ledger", { spec: { template: { metadata: { labels: {name: "ledger"}, name: "ledger", // namespace:…
Paymahn Moghadasian
  • 9,301
  • 13
  • 56
  • 94
4
votes
2 answers

Random Suffix added to S3 Bucket name with Pulumi

When I create an S3 bucket with Pulumi, a random suffix is added to the specified bucket name. How can I avoid that? import * as aws from "@pulumi/aws"; // Create an AWS resource (S3 Bucket) const bucket = new aws.s3.Bucket("my-bucket"); // Export…
Aydrian Howard
  • 379
  • 1
  • 8
4
votes
1 answer

Using image from private docker registry in pulumi on ECS

I want to use pulumi to set up ECS with an image from a private docker registry (GitLab). Is there a way to specify the secret in the container defintion? I'm trying to set up a new ECS cluster (awsx.ecs.Cluster) with a Service (awsx.ecs.EC2Service)…
Markus
  • 79
  • 1
  • 9
3
votes
1 answer

How can I provision a Postgres Database using Pulumi & Docker with secret password?

Using Pulumi, how do I provision a Postgres database using Docker without exposing the postgres password? Currently, I can view the password when inspecting the container's environment variables. import * as docker from '@pulumi/docker' import * as…
Ryan Prentiss
  • 1,492
  • 2
  • 25
  • 46
1
2
3
30 31