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

Error when creating resources in newly created oranizations account: "Assume Role: role ARN not set"

I am trying to implement the very same strategy, except that I am using Python (with Output.concat): import pulumi import pulumi_aws as aws stack = pulumi.get_stack() account = aws.organizations.Account( f"{stack}-account", …
1
vote
0 answers

Pulumi configuration with npm workspaces

In a mono-repo I have 2 project manage by Pulumi and some other projects without it. There are a package inside called @framework shared by all projects (models, common functions...). For exemple, dep are used like this: import { user } from…
Thomas Dupont
  • 417
  • 6
  • 20
1
vote
1 answer

Error applying IAM policy for service account in Pulumi

I am trying to create a service account and assign roles, and it fails. p, err := serviceaccount.NewAccount(ctx, "prom-frontend", &serviceaccount.AccountArgs{ AccountId: pulumi.String("prom-frontend"), DisplayName:…
Naveen
  • 4,092
  • 29
  • 31
1
vote
1 answer

pulumi/aws - create resources in newly created oranizations account

I'm currently bootstrapping an AWS organizations setup using pulumi. (prod/dev/... accounts, security accounts, ci access, etc. - I think in azure this concept is called "landing zone" but since this name refers to a specific product on AWS, I'm not…
1
vote
2 answers

How to pass CLI arguments to my Pulumi code?

For instance, can I write something like pulumi up -ec2_count=15 so that ec2_count is my custom arg I interpret in my Pulumi code? I couldn't find such capability in their docs, but it's strange that it's not possible...
Tar
  • 8,529
  • 9
  • 56
  • 127
1
vote
0 answers

How to add Subnets of a Vpc to VpcConnector?

How do I add subnets of a vpc to vpc connector? I tried adding like this: const vpcConnector = new awsc.apprunner.VpcConnector("vpc-connector", { securityGroups: [ec2SecurityGroup.id], subnets: pulumi.output(vpc.getSubnetsIds), // ERROR HERE! …
Swix
  • 1,883
  • 7
  • 33
  • 50
1
vote
1 answer

Retrieving Connection String when Creating ServiceBus with Pulumi (AzureNative)

I create a Servicebus-Namespace using AzureNative on Pulumi: public void CreateNamespace(string namespaceName, SkuName skuname, SkuTier tier) { var namespace = new Namespace(namespaceName, new NamespaceArgs { Location =…
Ole Albers
  • 8,715
  • 10
  • 73
  • 166
1
vote
1 answer

Pulumi SDK SQL deletion protection not working

I have provisioned SQL (PostrgresSQL) on GCP cloud using Pulumi SDK (Go). I have set deletionProtection as true - but checking GCP console I can see the SQL is not protected. I was able to delete the instance using console by that breaking Pulumi…
1
vote
2 answers

How to add a new app setting to Azure Web App using pulumi without removing the existing settings?

I'm using pulumi azure native for infrastructure as code. I need to create an Azure Web App (based on an App Service Plan) and add some app settings (and connection strings) throughout the code, e.g., Application Insights instrumentation key, Blob…
msamsami
  • 644
  • 5
  • 10
1
vote
3 answers

How to use Pulumi Output as a string in .NET

I have a basic Pulumi build for keycloak where I set up a realm, create a scope, create a client, and update teh scopes for my client. class RealmBuild : Stack { public RealmBuild() { var realm = new Realm("ExampleRealm-realm", new…
Paul DeVito
  • 1,542
  • 3
  • 15
  • 38
1
vote
1 answer

Can I merge existing state of an Azure resource with an Azure Bicep or Pulumi file?

I'm currently working with a solution that uses an Azure Application Gateway deployed with ARM/Bicep. Over time, other applications are deployed that use this AppGw, so rules/backend pools/listeners are created for those applications at their…
Carv
  • 23
  • 4
1
vote
1 answer

Pulumi- C# - output variable

I am trying to provision resource group with below class. Calling it from the stack class but facing some issue with the output variable. class GenerateResourceGroup { public GenerateResourceGroup(Input location, Input rgName,…
1
vote
0 answers

Using Pulumi to setup EventBridge cron for AWS Batch job

I'm trying to set up EventBridge to kick off a Batch job on a regular schedule. I can deploy the batch job and the event rule through Pulumi, but when I attempt to deploy the EventTarget, I get this error: Creating EventBridge Target failed:…
1
vote
1 answer

My pulumi stack was created with an older plugin version that I can't install on M1 mac

I have a Pulumi project which I haven't touched (deployed etc) for a while. Now I need to make some changes but I get the "403 HTTP error fetching plugin" described here The description in the docs makes sense: I have bought a new Apple M1 laptop…
Anentropic
  • 32,188
  • 12
  • 99
  • 147
1
vote
2 answers

Filter multiple Event Types on Pulumi AzureNative Event Grid Topic Subscription

I create Event Grid Topic Subscriptions to Service Bus Queues: var args = new EventSubscriptionArgs { EventSubscriptionName = topic.SubscriptionName, Scope = topic.Id, Destination = new…
Ole Albers
  • 8,715
  • 10
  • 73
  • 166