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
17
votes
4 answers

How to convert Pulumi Output to string?

I am dealing with creating AWS API Gateway. I am trying to create CloudWatch Log group and name it API-Gateway-Execution-Logs_${restApiId}/${stageName}. I have no problem in Rest API creation. My issue is in converting restApi.id which is of type…
Tigran Sahakyan
  • 363
  • 1
  • 5
  • 10
11
votes
2 answers

Pulumi - How can I remove imported resources from my stack without deleting them from aws?

I don't see any options in the documentation on how to delete imported resources from my stack. If I try to remove the resource's reference from my code I get the following error when running pulumi up: error: Preview failed: refusing to delete…
Teodoro
  • 1,194
  • 8
  • 22
9
votes
4 answers

What Role or Scopes Does An Azure Service Principal Need to Create Applications

I currently create a service principal using the Azure CLI: az ad sp create-for-rbac --name foo --role Contributor I need the service principal to have enough permissions to create/modify/delete various Azure AD resources including Applications,…
9
votes
1 answer

Pulumi: How to serialize Output[] to JSON

I want to allow Lambda service to create a deployment inside my VPC, thus I have subnet ids array of type Output[] that I want to put into role policy as follows: export const createNetworkInterfacePolicy = new aws.iam.RolePolicy( …
pbn
  • 2,406
  • 2
  • 26
  • 39
8
votes
3 answers

How can I attach Visual Studio debugger to pulumi up

I have a stack defined in TS and cannot understand what is going on. Is there a way to attach Visual Studio Code debugger to pulumi?
mbergal
  • 635
  • 6
  • 13
8
votes
2 answers

How to control resource creation order in Pulumi

I'm trying to create some resources and need to enforce some sort of creation order. e.g. creating an aws.s3.Bucket for storing the logs before it can be used as an input to aws.cloudfront.Distribution. How do I control resource creation order when…
Chris Smith
  • 18,244
  • 13
  • 59
  • 81
7
votes
1 answer

Run EF Core migration with pulumi

How can I run a SQL script after creating a database with pulumi? Also how to run EF migrations with pulumi? I have created an Azure SQL Server using https://www.pulumi.com/docs/reference/pkg/azure/sql/sqlserver/ public SqlServer(string name,…
Muhammad Atif
  • 1,050
  • 1
  • 9
  • 21
7
votes
2 answers

Pulumi: ignore manually deleted resources during `pulumi up`

I'm attempting to run a pulumi up command but it's failing because some of the resources that're being replaced were already manually deleted in the GCP Kubernetes dashboard. Is there a way to ignore the fact that these resources have already been…
Korede Aderele
  • 157
  • 3
  • 9
6
votes
3 answers

Pulumi (TypeScript, AWS): How to upload multiple files to S3 incl. nested files in directories for static website hosting

In the Create an AWS S3 Website in Under 5 Minutes YT video and Host a Static Website on Amazon S3 Pulumi tutorial there are great explanations how to create a website hosting on S3 using Pulumi. In the example code Pulumi's Bucket and BucketObject…
5
votes
3 answers

error parsing called workflow in github . workflow was not found

Trying to use pulumi preview with Github actions. The workflow file is giving me the below error. Invalid workflow file: .github/workflows/pull_request.yml#L12 error parsing called workflow…
user3127647
  • 61
  • 1
  • 3
5
votes
1 answer

How to solve Calling [toString] on an [Output] is not supported this error from pulumi typescript?

I am creating a s3 bucket by pulumi typescript and want to use this bucket in EC2 User data for copying an object. Following is my Code for both. const bucket = new aws.s3.Bucket("bucket-name", { acl: "private", }); I uploaded a index.html file…
manish soni
  • 515
  • 1
  • 7
  • 19
5
votes
0 answers

How do you write a Pulumi provider that makes a REST API request in pytyon?

I am attempting to write a Pulumi provider that automates creating resources in Fivetran. I've started with the user object, attempting to call the invite user API. Upon executing pulumi up, I receive the following errors: Diagnostics: …
dennislloydjr
  • 950
  • 5
  • 13
5
votes
0 answers

Deploy lambda function on aws-pulumi

I'm trying to deploy a lambda Function on my AWS account, that zips a file that is uploaded into "lambda-bucket-in" onto a bucket "lambda-bucket-out". The example I'm trying to follow is this one, specifically the second way (the first does its job…
Andrea Nicolai
  • 349
  • 1
  • 3
  • 12
5
votes
1 answer

How to implement shared resources in Pulumi

I'm trying to understand how to implement Pulumi in our AWS environment. I understand that a stack can be used to have the same resource structure for production and development, but that results in independant instances, which is great. However we…
Maarten Ureel
  • 393
  • 4
  • 18
5
votes
1 answer

Pulumi C#: access stackname before RunAsync

Is there a way with Pulumi to access the current stack name in order to chose which class to run when doing pulumi up? I want to do something like that: static Task Main() { if (Deployment.Instance.StackName.StartsWith("local-")) …
JuChom
  • 5,717
  • 5
  • 45
  • 78
1
2 3
30 31