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
1 answer

The code generated from "pulumi import" lacks a lot of details

I want to use pulumi to import one of my existing resources on AWS. So I ran pulumi import aws:elasticache/cluster:Cluster my-redis my-redis command and got the following details in the output: = aws:elasticache/cluster:Cluster: (import) …
Brian
  • 12,145
  • 20
  • 90
  • 153
2
votes
0 answers

How can I import existing password into Pulumi?

I'm trying to import an existing system into Pulumi, in particular I wish to support generating passwords for any new stacks, but using the existing password for the existing stack. Is this possible? I've tried the following as per…
2
votes
2 answers

Retrieve AccountKey or ConnectionString from DocumentDB-Account using Pulumi

I create a CosmosDB/DocumentDB - Account using AzureNextGen: var databaseAccount=new Pulumi.AzureNextGen.DocumentDB.Latest.DatabaseAccount(accountName, new Pulumi.AzureNextGen.DocumentDB.Latest.DatabaseAccountArgs { // parameters } ); To…
Ole Albers
  • 8,715
  • 10
  • 73
  • 166
2
votes
1 answer

Convert Output to string for AssumeRolePolicy

I am trying to get my head around pulumi using F# but I am unable to understand how to use Output values issued from one resource eventually into another resource. Here my specific case : let infra() = let adminsName = "admins" let…
Yoann
  • 546
  • 4
  • 11
2
votes
2 answers

Authenticate with Azure using service principle in Pulumi

I have a Pulumi - program which works fine on my Dev-Machine. Configuarion is stored in Azure, also the Resources created are being stored in Azure. To run this I set the following environment variables: SET ARM_SUBSCRIPTION_ID= Locally I login…
Ole Albers
  • 8,715
  • 10
  • 73
  • 166
2
votes
1 answer

Define Azure-Subscription to be used in Pulumi

I use the following (standard)-Pulumi - Code to create a simple resource: public MyStack() { var current = Output.Create(GetSubscription.InvokeAsync()); this.CurrentSubscriptionDisplayName = current.Apply(current =>…
Ole Albers
  • 8,715
  • 10
  • 73
  • 166
2
votes
1 answer

How do you create an Azure Hybrid Connection using Pulumi?

Pre-requisite: Cannot have a duplicate App Service Hybrid Connection within the same App Service Plan configured on your app services Using the example provided from their website…
Eric Tijerina
  • 186
  • 1
  • 6
2
votes
1 answer

Cannot read global configuration string

I am using Pulumi's typescript SDK to set up azure infrastructure for my project. I have been trying to get some configuration values in my index.ts, as shown in the following code: import * as pulumi from "@pulumi/pulumi"; const config = new…
aochagavia
  • 5,887
  • 5
  • 34
  • 53
2
votes
1 answer

How do I retrieve property a of Pulumi resource using python?

I'm creating a GCP storage bucket and aggregated log sink using Pulumi and Python. To create the sink I need the value of the bucket id from Pulumi. bucket = storage.Bucket(resource_name=bucket_name, location="us-central1",…
Charles Brown
  • 25
  • 1
  • 3
2
votes
1 answer

In pulumi, how can I get the fully qualified resource type name?

I'd like to be able to generate an urn based on the current stack, project and resource type. This would be handy when renaming resources, where the aliases options requires a full urn to make the link between resources. I've got the…
Sebastian Nemeth
  • 5,505
  • 4
  • 26
  • 36
2
votes
1 answer

How to set container port and load balancer for aws fargate using pulumi?

I am trying to deploy simple flask python app on aws fargate using Pulumi. The dockerfile of python app exposes port 8000 from container. How could I set it up with load balancer using pulumi? I have tried the following so far, with index.ts…
Maverick
  • 2,738
  • 24
  • 91
  • 157
2
votes
1 answer

Pulumi get kubernetes context at runtime

Is there a way to get the current kubernetes context at runtime to prevent calling pulumi up with the incorrect context? I'd specifically like to make sure my local kubernetes deployment logic doesn't end up in anything other than a local…
Paymahn Moghadasian
  • 9,301
  • 13
  • 56
  • 94
2
votes
1 answer

Pulumi AD Application and Azure Function circular dependency when configuring ADAL

I'm setting up an azure function with ADAL authentication and I have one issue with pulumi because the function app needs the ad app to be created and then the ad app needs the function app to be created in order to set the reply url. const…
JuChom
  • 5,717
  • 5
  • 45
  • 78
2
votes
3 answers

gcp ingress fail to be created - Error during sync: Error running backend syncing routine: googleapi: got HTTP response code 404 with body: Not Found

I'm trying a simple ingress in gke. Following the example from https://cloud.google.com/kubernetes-engine/docs/how-to/load-balance-ingress the pods are up and running, services are active. When I create ingress I'm getting Events: Type …
2
votes
3 answers

Pulumi: retrieve kubernetes secret value

I have a service with an inline plaintext config that requires certain information that is stored in Kubernetes secrets. What @pulumi/kubernetes API method can be used to access raw kubernetes secret values?
Korede Aderele
  • 157
  • 3
  • 9