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
2
votes
4 answers

Using the Pulumi Automation API without the Pulumi Service

I am trying to build a CLI utilizing the Pulumi Automation API and would like to store the required Pulumi state in a GCP Storage Bucket (using the Pulumi CLI I can do this using pulumi login gs://some-bucket). In the documentation I could not find…
Nils
  • 1,755
  • 3
  • 13
  • 25
2
votes
2 answers

pulumi Go SDK for GCP: failed to destroy sql server

I am using Pulumi GO SDK: When I try to destroy stack where I provisioned a new SQL DatabaseInstance, Database, password and user I get this error message: 21:00:33 [2022-07-05T18:00:33.872Z] Diagnostics: 21:00:33 [2022-07-05T18:00:33.874Z] …
2
votes
3 answers

How to stop gracefully a Pulumi up command

I am trying to develop a couple of Helm Charts on Minikube. To do that I am running pulumi up on a Minikube environment. import pulumi from pulumi_kubernetes.helm.v3 import Chart, ChartOpts, FetchOpts, RepositoryOptsArgs import pulumi_kubernetes…
Cr4zyTun4
  • 625
  • 7
  • 18
2
votes
1 answer

New Line character in Pulumi as a secret/value

I would like to store a key as a secret in Pulumi in the configuration. The key has the following structure -----BEGIN PRIVATE KEY----- xxxxx xxxxx xxxxx -----END PRIVATE KEY----- But, when adding it into the configuration, I face 2 problems: A…
HouKaide
  • 127
  • 1
  • 7
2
votes
2 answers

Pulumi and Pulumi Azure Native not recognised in VS Code

Problem VS Code doesn't seem to have recognised either of the following python libraries + no intellisense. import pulumi from pulumi_azure_native import resources from pulumi_azure_native import storage ... VS Code highlights them with the Import…
2
votes
1 answer

How to create a Host key in Function App through Pulumi

How can i create a host key in Function APp through Pulumi in C# ? I dont find any documentation in the Pulumi docs. Sample Host key in Function App through GUI
Amaresh
  • 31
  • 3
2
votes
1 answer

Debugging Pulumi "ResourceNotReady: exceeded wait attempts"

I am trying to deploy a fargate service on AWS ECS with Pulumi as IaC. Everything works as expected when deploying my Fargate service with: deploymentController: { type: "ECS" }, But changing it to: deploymentController: { type:…
sitick
  • 86
  • 8
2
votes
1 answer

How to prevent Pulumi cli from shuffling configurations in stack settings file

I am trying to organize configuration values in stack settings file (Pulumi.dev.yaml) from top to bottom sequentially i.e. first Resource Group, then Storage Account, then Virtual Network, AKS and so on as following: secretsprovider:…
MD TAREQ HASSAN
  • 1,188
  • 20
  • 46
2
votes
1 answer

Receive an error when I using F-string for creating a connection string with Python in the Pulumi

I want to create a storage connection string with F-String in my code (Pulumi). The scenario and sample code are: for example, My storage name is test I received the storage name with: storage_name = storage_account.name I received the storage key…
Shadi
  • 193
  • 2
  • 12
2
votes
0 answers

How to handle resources that must be created by Pulumi but afterwards are managed elsewhere?

For instance, to implement a Blue/Green deployment pipeline with CodeDeploy on AWS ECS, I first use Pulumi to provision Load Balancer, Listeners and Target Groups (among other resources). But after I supply the Listeners to create the…
Diogo Melo
  • 1,735
  • 3
  • 20
  • 29
2
votes
1 answer

Pulumi InputMap - how can I use resource outputs as the keys?

When creating some Azure resources such as MetricAlert (https://www.pulumi.com/docs/reference/pkg/azure-native/insights/metricalert/) I have come across the the InputMap type. As you can see from the MetricAlert documentation, in some scenarios you…
DaveBeta
  • 447
  • 1
  • 5
  • 11
2
votes
0 answers

Creation of resource cert-manager/letsencrypt failed because the Kubernetes API server reported that the apiVersion for this resource does not exist

I am having issues installing the cert-manager Helm chart and setting up a LetsEncrypt cluster issuer using Pulumi in our Azure Kubernetes cluster. We are using Kubernetes version 1.21.2 and cert-manager. 1.5.3. When running pulumi up before any…
Dave New
  • 38,496
  • 59
  • 215
  • 394
2
votes
2 answers

F# async lambda interop with C# async model

I have such a piece of code (C#, Pulumi), which I want to translate to F#: var registryInfo = repo.RegistryId.Apply(async (id) => { var creds = await GetCredentials.InvokeAsync(new GetCredentialsArgs {RegistryId = id}); …
user1658223
  • 715
  • 7
  • 15
2
votes
1 answer

Object of type Output is not JSON serializable

stack_name = "test-stack" bucket = aws.s3.Bucket( f"{stack_name}", acl="private", ) firehose_s3_policy = aws.iam.Policy( f"{stack_name}-firehose-s3-access-policy", policy=json.dumps( { "Version": "2012-10-17", …
Roman Newaza
  • 11,405
  • 11
  • 58
  • 89
2
votes
1 answer

How to configure AWS ECS Fargate Tasks/Cluster to access private Docker Container Registry (like GitHub Container Registry) with Pulumi?

I'am working on a AWS Fargate Cluster setup with Pulumi and my current program already successfully creates a Cluster incl. Fargate Tasks that run a public accessible container image. My image is based on Spring Boot (project code on GitHub): import…
jonashackt
  • 12,022
  • 5
  • 67
  • 124