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

How to use asynchronously subnet id in pulumi which is know after 'VirtualNetwork' object created?

How to correctly use 'apply' in order to build 'ip_configurations' list using subnet id known after virtual network created ? Below gives AttributeError: 'VirtualNetwork' object has no attribute 'subnet_id' virtual_network =…
irom
  • 3,316
  • 14
  • 54
  • 86
0
votes
1 answer

Cannot pass two Output callback values in Pulumi

Im having trouble passing two Output callback values into a container definition. I am doing this: redis_url = redis.cache_nodes.apply(lambda cache_nodes: cache_nodes[0].get('address')) task_definition = aws.ecs.TaskDefinition('task', …
DaBeeeenster
  • 1,481
  • 3
  • 16
  • 20
0
votes
1 answer

How can I achieve Pulumi EKS RoleMappings with C#

There are Kubernetes RBAC in Amazon EKS with Pulumi instructions for TypeScript. const vpc = new awsx.ec2.Vpc("vpc", {}); const cluster = new eks.Cluster("eks-cluster", { vpcId : vpc.id, subnetIds : vpc.publicSubnetIds, …
guitarrapc
  • 534
  • 5
  • 9
0
votes
1 answer

How to get Group in Azure AD in Pulumi?

I'm trying to get a group in the Azure AD. var group = Output.Create( GetGroup.InvokeAsync( new GetGroupArgs { Name = "Administrators" })); PS C:\dev\___> pulumi preview Previewing update (dev): Type …
Fabio Milheiro
  • 8,100
  • 17
  • 57
  • 96
0
votes
1 answer

How to set Key Vault access policies using Pulumi?

I'm trying to set up an Azure infrastructure with Pulumi. So far I have used pulumi preview command and it seems that most things are in place. I've been able to sort out most things but not the parts associated with the Azure AD. For example, the…
Fabio Milheiro
  • 8,100
  • 17
  • 57
  • 96
0
votes
1 answer

How to run a golang application in interactive mode

I am trying to run a golang application in interactive mode (so that it will prompt users for information it needs) from nodejs, like so: childprocess.execFileSync(pulumiExecutable, ["stack", "select"], { encoding: "utf-8", shell: true, stdio:…
d_inevitable
  • 4,381
  • 2
  • 29
  • 48
0
votes
1 answer

How do I export a Pulumi stack output in Python?

I'd like to add an "output property" to my Pulumi program, which is written in Python. But I cannot find a snippet or example of how to do that. What is the method or syntax for exposing an output property of a Python-based Pulumi program?
Chris Smith
  • 18,244
  • 13
  • 59
  • 81
0
votes
1 answer

Pulumi - 'AWS_PROXY' currently only supports Lambda function

I want to create API Gateway connected to Lambda function with Alias, I have IntegrationRouteTargetProvider which is providing integration routes to the API. I got the URI from the lambda so I think it is correct. Also I checked number of SO…
0
votes
1 answer

Pulumi Azure: Get Service Principal ObjectId

I'm running pulumi inside an azure devops pipeline. I need to find the the pipeline Service Principal ObjectId var clientConfig = Output.Create(Pulumi.Azure.Core.Invokes.GetClientConfig()); var clientId = clientConfig.Apply(c => c.ObjectId); This…
JuChom
  • 5,717
  • 5
  • 45
  • 78
0
votes
0 answers

Add mapping in AWS API Gateway to DynamoDB query with Pulumi

I'm reading https://www.pulumi.com/docs/guides/crosswalk/aws/api-gateway/ documentation and its not quite clear how to use custom integrations, since AWS requires their proprietary template. I need to map HTTP GET request to DynamoDB query and want…
Alex Michel
  • 416
  • 3
  • 13
0
votes
1 answer

Pulumi modify kubernetes resource based on selected stack

what is the best way to modify kubernetes containers based on which stack is selected? I see that Input types cannot be modified. I've found the spread operator eg: const ledgerDeployment = new k8s.extensions.v1beta1.Deployment("ledger", { …
Paymahn Moghadasian
  • 9,301
  • 13
  • 56
  • 94
0
votes
1 answer

Pulumi kubernetes secret not creating all data keys

I've declared a kubernetes secret in pulumi like: const tlsSecret = new k8s.core.v1.Secret('tlsSecret', { metadata: { name: 'star.builds.qwil.co' }, data: { 'tls.crt': tlsCert, 'tls.key': tlsKey } }); However, I'm finding that…
Paymahn Moghadasian
  • 9,301
  • 13
  • 56
  • 94
0
votes
1 answer

Creating a Kubernetes Service with Pulumi up results in error Could not create watcher for Endpoint objects associated with Service

I'm trying to use Pulumi to create a Deployment with a linked Service in a Kubesail cluster. The Deployment is created fine but when Pulumi tries to create the Service an error is returned: kubernetes:core:Service (service): error: Plan apply…
0
votes
2 answers

Pulumi: how to create a CloudWatch event rule for a repository

I am trying to capture PutImage event from a specific ECR repository using Cloudwatch to trigger a Lambda. My problem is with eventPattern being typed as 'string': export const myTestRepo = ECRTemplate('my-test-repo'); export const eventRule = new…
pbn
  • 2,406
  • 2
  • 26
  • 39
0
votes
0 answers

What's the difference between deleteBeforeReplace passed into the constructor vs diff?

pulumi.dynamic.ResourceProvider's constructor takes a deleteBeforeReplace option but so does its diff() method. What is the difference between the two options? Why is the user asked to specify this twice? Do they do different things?
Gili
  • 86,244
  • 97
  • 390
  • 689