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

aws security groups in pulumi with inline rules

I'm trying to create security groups in pulumi with inline rules, specifically rules that reference another security group as a source. None of these group exist yet and need to be created in a loop from a variable as there may be quite a lot of…
Setanta
  • 941
  • 1
  • 12
  • 24
0
votes
1 answer

Dynamic Listener Rules creation Type error

Config data: config: pulumi-ecs-stack:listener_rules_data: 0: pathPattern: - "/login/*" - "/auth/*" - "/info/*" My script: import * as pulumi from "@pulumi/pulumi"; import * as aws from "@pulumi/aws"; import * as…
Roman Newaza
  • 11,405
  • 11
  • 58
  • 89
0
votes
1 answer

Error deploying existing App Service using Pulumi.Azure

I'm getting 2020-10-29T22:27:58.8724283Z I1029 22:27:58.870264 4596 eventsink.go:78] eventSink::Infoerr(<{%reset%}>panic: interface conversion: interface {} is nil, not map[string]interface {} 2020-10-29T22:27:58.8728827Z <{%reset%}>)…
Frankely Diaz
  • 886
  • 1
  • 9
  • 16
0
votes
1 answer

How to find existing Hybrid Connection RelayId using Pulumi.Azure?

I have an existing App Service and an existing Hybrid Connection, I was able to get all the parameters I need to create a new Pulumi.Azure.AppService.HybridConnection but the RelayId, var webApiHybridConnection = new HybridConnection( …
Frankely Diaz
  • 886
  • 1
  • 9
  • 16
0
votes
1 answer

How to set up Fargate Service Auto Scaling with Step Scaling Policy in Pulumi?

I'm trying to autoscale Fargate Service in AWS ECS based on CloudWatch Alarm (Namespace - AWS/SQS, Metric name - ApproximateNumberOfMessagesVisible). I managed to do that in the AWS Console but not via code (in Pulumi). My suggestion for code is…
SAndriy
  • 670
  • 2
  • 15
  • 25
0
votes
1 answer

Pulumi: Add Azure Web App Service web hook to Azure Container Registry for continuous deployment

I want to deploy an Azure Web App with docker CD enabled via pulumi. AFAIK I have to create a webhook in my container registry for it. But I can't figure out how to get the webhook URL from the web app. Here is how I setup my infrastructure const…
0
votes
1 answer

why pulumi kubernetes provider is changing the service and deployment name?

I tried to convert the below working kubernetes manifest from ##namespace --- apiVersion: v1 kind: Namespace metadata: name: poc ##postgress --- apiVersion: apps/v1 kind: Deployment metadata: labels: app: db name: db namespace:…
Samit Kumar Patel
  • 1,932
  • 1
  • 13
  • 20
0
votes
1 answer

Pulumi gives invalid aws:region error when deploying to AWS

I am having a tinker with Pulumi having fallen out of love with Terraform. However, when following the gettins started guide, I'm receiving the following error when running pulumi up Diagnostics: aws:s3:Bucket (my-bucket): error: 1 error…
angusrose
  • 143
  • 1
  • 3
  • 13
0
votes
2 answers

How to import an existing S3 object with Pulumi?

I am trying to import an existing S3 object into Pulumi. This is my current attempt (using Python): bucket = s3.Bucket('test-bucket', bucket='test-bucket') file = s3.BucketObject('file.txt', bucket=bucket, …
0
votes
1 answer

Best way to consume pulumi output in my application code

I was wondering what is the best way to consume the Pulumi deployment result in my application code. To give a concrete example, suppose my Pulumi stack generates the following url for an API Gateway endpoint [Output] public Output
0
votes
1 answer

How can I create an EC2 instance in Pulumi with a non-default VPC?

I am trying to create AWS infrastructure (VPC, Security Groups, EC2 instance) in Pulumi, but I've hit a road block. Namely: I am using Pulumi to create a VPC, which automatically creates subnets, gateways and routing tables by default, which is fine…
J.Mac
  • 23
  • 4
0
votes
1 answer

vault token create after vault login -method ldap

Vault version 1.5.2 My end goal is to use Vault in some Terraform code to retrieve temporary credentials. The issue is Terraform will always generate a new child token even if the current token is a 5 minute token. This means the current VAULT_TOKEN…
iridian
  • 669
  • 5
  • 13
0
votes
1 answer

Attaching pulumi_azure.compute.LinuxVirtualMachineScaleSet instance to pulumi_azure.network.ApplicationGateway's backend pool

I'm trying to figure out how to connect pulumi_azure.compute.LinuxVirtualMachineScaleSet instance to a backend pool of pulumi_azure.network.ApplicationGateway using Python. Looking at documentation of…
Puchatek
  • 1,477
  • 3
  • 15
  • 33
0
votes
1 answer

Pulumi Azure ARM template deployment error

Got error 'resourceGroupName' is not defined for Azure ARM template deployment File "./__main__.py", line 23, in resourceGroupName: resource_group.name, NameError: name 'resourceGroupName' is not defined relevant part of…
irom
  • 3,316
  • 14
  • 54
  • 86
0
votes
1 answer

Attaching IAM Managed Policy to IAM user using Pulumi not working

I'm using pulumi to attach an IAM Managed user policy to an IAM user, with the code snippet below. const dynamoDbUser = new aws.iam.User(`${environment.env}-dynamo-fullaccess`, {}); new aws.iam.UserPolicyAttachment("dynamo-policy", { …
Victor Cui
  • 1,393
  • 2
  • 15
  • 35