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

fine grained ACLs in pulumi cloud

It seems that by default a lambda function created by Pulumi has an AWSLambdaFullAccess permissions. This type of access is too wide and I'd like to replace it with fine-grained ACLs. For instance, assuming I am creating a cloud.Table in my index.js…
Itay Maman
  • 30,277
  • 10
  • 88
  • 118
1
vote
0 answers

How to authenticate with GitHub using Pulumi Flux package in Go

I want to bootstrap FluxCD on Kubernetes through a Pulumi inline program written in Go but am unable to give it access to GitHub. As seen in the code below, I first create a new Pulumi provider then pass it to flux.NewFluxBootStrapGit just like the…
nusantara
  • 1,109
  • 1
  • 15
  • 38
1
vote
1 answer

How to apply rate-based throttling in Google Cloud Armor for a specific URL?

I want to apply rate-based throttling using Google Cloud Armor. In the configuration for rules, there is a match parameter but that is for matching the IP ranges. I could not find a way to filter and then apply rate-based throttling for specific URL…
1
vote
0 answers

Unable to attach a rule to a security policy in Google Cloud Armor using Pulumi

I want to attach a rate-based throttling rule to a security policy, all via Pulumi, in Google Cloud Armor, on Google Cloud Platform. I am facing an error: Diagnostics: gcp:compute:SecurityPolicy (ddos-layer7-defense-policy): error:…
1
vote
0 answers

How to get result of Pulumi remote command in Go?

I want to run two commands in a remote server. The first checks if a service is active. I want to run the second only if the service is active, but I don’t know how to get the status from the first command. import ( …
nusantara
  • 1,109
  • 1
  • 15
  • 38
1
vote
1 answer

How to unmarshal Pulumi auto.Result object struct or map

I'm deploying servers to Hetzner using Pulumi's automation API in Go, but can't figure out how to get the resulting connection information out of the deployment result. Here's the truncated code: import ( ... …
nusantara
  • 1,109
  • 1
  • 15
  • 38
1
vote
1 answer

How do I convert the Output into str, to used as inputs in Pulumi resources of the second project?

I'm trying to use the outputs of one project via stack reference as input of a second project, but it seems I'm missing the last piece as I'm getting an error as shown below that Output can't be converted into str. For the exact error see…
1
vote
1 answer

I cant delete a pulumi stack tied to AWS resources

After a long one yesterday i ran into a problem with my Pulumi node.js program and have not been able to delete a simple stack tied to a couple AWS resources. I have tried all sorts of different ways to initialize the destroy but keep receiving a…
1
vote
1 answer

Pulumi: "pulumi plugin install resource kubernetes" fails

I have a little Go app which creates YAML ressources for me I then deploy to a Kubernetes cluster. It worked quite well but since some hours (?) it fails saying: error: Could not automatically download and install resource plugin…
J.R.
  • 576
  • 1
  • 4
  • 15
1
vote
0 answers

hitting: 'pulumi new' error: cloning templates repo: reference not found

Following get started here at pulumi, After setting up the service account at google cloud, trying to run pulumi new, it asked for login on pulumi which was successful, and then it throw an error: cloning templates repo: reference not found. Already…
Nomi Ali
  • 2,165
  • 3
  • 27
  • 48
1
vote
2 answers

github action pulumi preview command output

My github action workflow is as follows: - name: Preview changes to Infra uses: pulumi/actions@v4 id: pulumi with: command: preview stack-name: ${{ env.PULUMY_XXXX }} work-dir: ${{ env.PULUMY_XXXXX }} color: always env: …
alexis
  • 1,022
  • 3
  • 16
  • 44
1
vote
1 answer

Pulumi runtime can't find pulumi library

I keep hitting this problem where the pulumi CLI tool runs, but whenever I try to do anything with it like pulumi up or pulumi preview it gives me this error that it can't find its own library: Traceback (most recent call last): File…
Leopd
  • 41,333
  • 31
  • 129
  • 167
1
vote
1 answer

How do I Configure AWS Distro for OpenTelemetry to send data to Datadog in Pulumi?

I want to send logs, metrics, and trace data from my Java code that are placed inside the steinko/helloworld-backend docker container to Datadog. I am using AWS Distro for OpenTelemetry container as a side car. To configure the Datadog exporter with…
stein korsveien
  • 1,047
  • 5
  • 13
  • 35
1
vote
1 answer

How I can solve this error when importing aws.alb.TargetGroup using Pulumi Cli

I try to import existing resources to Pulumi. I execute following command on my terminal. $ pulumi import aws:alb/targetGroup:TargetGroup target-group-name target-group-arn But I had following error. error: internal error: Error: cannot assign…
1
vote
1 answer

add/remove security group rules to existing SG in pulumi python

db_sg = ec2.get_security_group(id="sg-number") ec2.SecurityGroupRule( "db-ingress", type="ingress", description= "allow tcp to db", protocol="tcp", to_port= 5432, from_port= 5432, security_group_id =…
A H Bensiali
  • 825
  • 1
  • 9
  • 22