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
1
vote
2 answers

Deploy a FargateService to an ECS that's living within a different Stack (preoject)

1- I have a project core-infra that encapasses all the core infra related compoents (VPCs, Subnets, ECS Cluster...etc) 2- I have microservice projects with independant stacks each used for deployment I want to deploy a FargateService from a…
Shady Smaoui
  • 867
  • 9
  • 11
1
vote
2 answers

Creating new ec2 instance using Pulumi on Golang gives unexpected MissingParameter ImageId error

I am trying to create a new AWS EC2 instance using Pulumi on Golang. This is my function: ec2, errEc2 := ec2.NewInstance(ctx, name, &ec2.InstanceArgs{ SubnetId: pulumi.String(subnet.Id), Ami: …
Amitb
  • 372
  • 2
  • 10
1
vote
1 answer

Is exposing Pulumi ecnryptedKey safe?

I have a stack that utilizes AWS KMS key for, I believe, secrets and state encryption in Pulumi stack configuration file Pulumi..yaml Is it safe to expose this in a public repository? As I understand secrets are stored within stack configuration…
Alisher
  • 480
  • 5
  • 16
1
vote
2 answers

pulumi export statement in a loop works unexpectedly

I used pulumi python to create multiple azure VMs. Basically, I just put the example code from azure-py-webserver into a loop, of course, each resource has its unique name with the index of the loop. I expected the export statement at the end of the…
flyisland
  • 397
  • 2
  • 8
1
vote
1 answer

Pulum DigitalOcean: use outputs

I want to create some servers on DigitalOcean using Pulumi. I have the following code: for i in range(0, amount): name = f"droplet-{i+1}" droplet = digitalocean.Droplet( name, image=_image, region=_region, …
wiwa1978
  • 2,317
  • 3
  • 31
  • 67
1
vote
1 answer

How to attach a fargate service to an existing target-group (pulumi)?

I'm trying to replicate the flow described in here. I have a load balancer, a listener on 80 port which is supposed to redirect calls to different target groups and a target group for a specific service. How do I tell pulumi that I want to associate…
nicks
  • 2,161
  • 8
  • 49
  • 101
1
vote
1 answer

How to reference another stack for file:// backend

My objective is to organize my iac resources in familiar tiers (pulumi micro-stacks) like network, db, app, etc. As an example, I have two pulumi projects created in sibling folders using file:// backend (pulumi login…
S2L
  • 1,746
  • 1
  • 16
  • 20
1
vote
1 answer

Pulumi commands not working after intruption

Interrupting pulumi up command caused below error error: could not get cloud url: failed to read Pulumi credentials file. Please re-run `pulumi login` to reset your credentials file: unexpected end of JSON input When trying to run pulumi login it…
Rimash Mohomed
  • 143
  • 1
  • 12
1
vote
1 answer

Pulumi on GCP - How to create a Managed Instance Group with Docker Container Instances

I've been attempting to create a managed instance group on GCP which consists of instances that host a custom docker image. However I'm struggling to figure out how to do this with Pulumi. Reading Google's GCP documentation it's possible to deploy…
1
vote
1 answer

Execute DDL to create tables in BigQuery using Pulumi

I'm using Pulumi as Automation tool to create table/view in BigQuery . Unfortunately Pulumi supports only JSON schema instead I need to create table/view from DDL. sample ddl : create table ( col1 datatype , .....) partition by date_col…
siva_0223
  • 21
  • 3
1
vote
3 answers

Pulumi get deployment token for Static Web App

I'm using pulumi with azure-native package to create azure infrastructure. I create Static Web App: const staticApp = new azureNative.web.StaticSite( "test", { resourceGroupName: "test-static-site", location: location, name:…
Mikel
  • 157
  • 9
1
vote
1 answer

Dynamically Change Pulumi Aws Az For multiple EC2 in same python file

server = aws.ec2.Instance( 'rumbleInstance2', instance_type=size, vpc_security_group_ids=[group.id], region="Whateever region i want" ) Some option that i can think of are overloading provider function (i am not sure if i am doing…
1
vote
1 answer

How do I deploy the AWS EFS CSI Driver Helm chart from https://kubernetes-sigs.github.io/aws-efs-csi-driver/ using Pulimi

I would like to be able to deploy the AWS EFS CSI Driver Helm chart hosted at AWS EFS SIG Repo using Pulumi. With Source from AWS EFS CSI Driver Github Source. I would like to avoid having almost everything managed with Pulumi except this one part…
Gary
  • 153
  • 6
1
vote
1 answer

How to connect remote docker instance using Pulumi?

I have created VM instance in GCP using pulumi and installed docker. And I am trying to connect remote instance of the docker but its getting failed to due to connection establishment (asking for a key verification in a pop up window). const…
Madhan
  • 305
  • 1
  • 5
  • 10
1
vote
1 answer

Multiples Output Applies | Object of type Output is not JSON serializable

I'm trying to get the value of two Outputs (Load Balancers) and inject them into a Container Definition resource (aws.ecs.TaskDefinition). Both Load Balancers and Task Definition are being created in the same stack, the dependency is managed with…