Questions tagged [pulumi-python]

30 questions
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
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

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

Pass cached conda environment to Pulumi during azure pipeline

So I cache my python dependencies during my pipeline build as described here: https://medium.com/@andre.gensler/guide-how-to-speed-up-your-python-continuous-integration-pipeline-in-azure-devops-using-dependency-916d9cd792a0 And then I want pulumi to…
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
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
0
votes
1 answer

Pulumi: How to create domain validation records for multiple sub domains?

I need to create an AWS ACM certificate with pulumi for multiple wildcard SubjectAlternativeNames, e.g. *.mydomain.tld *.subdomain01.mydomain.tld *.subdomain02.mydomain.tld Using export as a dev helper, I managed to display the contents of the…
ssc
  • 9,528
  • 10
  • 64
  • 94
0
votes
0 answers

"default" not recognized as a valid credentials_source in aws cli

I want to successfully execute a command: pulumi up that leverages AWS SDK to make API calls. Therefore, it uses AWS' CLI configurations and credentials. Right now, I face the error: botocore.exceptions.InvalidConfigError: The credential source…
Aviral Srivastava
  • 4,058
  • 8
  • 29
  • 81
0
votes
1 answer

Unable to create SecurityPolicy with Adaptive Protection in Google Cloud Armor via Pulumi using Python

I want to create Security Policy in my Google Kubernetes such that there is Adaptive Protection enabled for the DDoS attacks, on my application layer. Reading pulumi documents, this is what I came up with: ddos_layer7_defense_policy_name =…
0
votes
0 answers

Using Pulumi to read exported values

I am using python and Pulumi to instanciate a stack. this is them main.py import pulumi from pulumi_gcp import pubsub topic = pubsub.Topic("my-topic") pulumi.export("topic_name", topic.name) On the appication code, I would like to get the…
p.magalhaes
  • 7,595
  • 10
  • 53
  • 108
0
votes
1 answer

There is no current event loop in thread 'ThreadPoolExecutor-0_0' while using pulumi_azure_native.authorization

I have a couple of custom provider components in my projects and I've written a function to return the credentials of the current Pulumi login context. Here is my function: def get_access_token(endpoint: Optional[str] = None) -> Tuple[str, str,…
msamsami
  • 644
  • 5
  • 10
0
votes
1 answer

Pulumi AWS API Gateway: How to create CloudWath Logs for Logs/Tracing in Python?

I use Pulumi with the Python module pulumi_aws_apigateway to create Lambda function and API Gateway. I would like to enable CloudWatch Logs with "Full Request and Response Logs" for Logs/Tracing. I got errors as follows: ./__main__.py", line 60, in…
user20208419
  • 121
  • 1
  • 11
0
votes
1 answer

Dependencies not getting installed when I run "pulumi new azure-python". It just keeps builiding the wheel

I am trying to install the dependencies of azure-python using pulumi and the dependencies are not getting installed. It just keeps building the wheel with no output whatsoever. I run the following commands: $ mkdir azure-python; cd azure-python; $…
0
votes
1 answer

Validating a AWS ACM Certificate using aws.acm.CertificateValidation in Pulumi using python

In Pulumi I create a ACM Certificate with a domain-name and a number of SAN. This is set to get verified using DNS. The Route53 records get created using the following function. This works as expected in that the records get created and the…
alexis
  • 1,022
  • 3
  • 16
  • 44
0
votes
1 answer

Pulumi Azure Native - How to manage multiple Azure Subscriptions using Python?

I have 2 Azure Subscriptions(say Subscription A & B) already created, service principal is also configured. I want to configure diagnostics in Subscription A so that I can send data to a workspace in Subscription B. I'm using Pulumi as IaC tool, how…
Amrit
  • 2,295
  • 4
  • 25
  • 42
1
2