https://pulumi.com logo
Docs
Join the conversationJoin Slack
Channels
announcements
automation-api
aws
azure
blog-posts
built-with-pulumi
cloudengineering
cloudengineering-support
content-share
contribex
contribute
docs
dotnet
finops
general
getting-started
gitlab
golang
google-cloud
hackathon-03-19-2020
hacktoberfest
install
java
jobs
kubernetes
learn-pulumi-events
linen
localstack
multi-language-hackathon
office-hours
oracle-cloud-infrastructure
plugin-framework
pulumi-cdk
pulumi-crosscode
pulumi-deployments
pulumi-kubernetes-operator
pulumi-service
pulumiverse
python
registry
status
testingtesting123
testingtesting321
typescript
welcome
workshops
yaml
Powered by Linen
general
  • s

    salmon-printer-16080

    06/01/2022, 10:24 PM
    Still looking for a fix for enabling Azure managed certificates on a Web App - specifically using a traffic manager in front of the endpoints which allows https.
    c
    • 2
    • 11
  • c

    crooked-sunset-90921

    06/01/2022, 11:06 PM
    Anyone know how to get the currently configured azure-native location? The config file has: config: azure-native:location: eastus2 But I can't figure out how to access it programmatically... any ideas?
    a
    l
    • 3
    • 11
  • w

    white-rain-67342

    06/02/2022, 1:08 AM
    Hello everyone! I am working with Pulumi do deploy a stack on Kubernetes. I would like to include the name of one my backend service in the nginx.conf of the frontend via a config-map. Is there a better way rather than put a string in the config and run a replace on the string? The issue is that
    api_url
    is an Output type and the replace function expects a string. The following is my snippet:
    with open('./nginx.conf', 'r') as file:
            config = file.read()
            config = config.replace("{{API_URL}}", api_url.apply(lambda foo: foo))
            print(config)
    
        config_map = ConfigMap(
            'nginx-config',
            metadata=ObjectMetaArgs(labels=labels),
            data={'default.conf': config}
            )
    l
    • 2
    • 5
  • w

    white-terabyte-21934

    06/02/2022, 7:09 AM
    Hello , Looking for an advice , I am trying pulumi with python and would like to know the better usage of Output . • Creating a resources let say r = xx.CreateResources(…) ==> r (A pulumi output object) • Would like to extract the raw value of a property ,let say r.http_url (which is again a type of
    pulumi.output.Output object
    . • Would like to print these values via a print statement (like terraform output format) ,what is the best way to fetch the value via Ouput() method ?
    b
    • 2
    • 1
  • b

    bulky-agent-73210

    06/02/2022, 8:10 AM
    Hi all, is there a way for me to create and retrieve AWS SES SMTP credentials resource, in Golang?
    b
    • 2
    • 2
  • q

    quick-wolf-8403

    06/02/2022, 3:12 PM
    Quick question I haven't found answered in the docs: can I check the current stack in my Pulumi program? I thought it might be accessible through Config. Or should I just put the differences in Config vars and use that to differentiate between stacks?
    b
    • 2
    • 3
  • g

    gifted-restaurant-32325

    06/02/2022, 3:43 PM
    Hi, I couldn't find this in via search so I hope it wasn't asked before. How can I connect to Cloudflare and create resources (workers/KV/DO/etc.) there?
  • c

    chilly-plastic-75584

    06/02/2022, 4:12 PM
    I want to emulate the workflow of terraform where the plans artifact is preserved for final approval and then the run stage uses that. Last I checked that was still a beta feature. Is this still in beta or is this stable enough to use for normal workloads now? I'd like to get my PR's deploying the infrastructure changes with a preview again (I am using azure DevOps so takes a little work)
  • s

    straight-intern-54129

    06/02/2022, 4:41 PM
    I just upgraded to the latest version of the Pulumi CLI and now when I run
    pulumi up
    , I get this diagnostics error and it won't let me update my stack:
    pulumi:pulumi:Stack (PulumiArm-prod):
      The launch profile "(Default)" could not be applied.
      A usable launch profile could not be located.
  • s

    straight-intern-54129

    06/02/2022, 5:30 PM
    In the .NET
    Pulumi.AzureAD
    NuGet package, the
    Pulumi.AzureAD.Application
    used to have
    AvailableToOtherTenants
    ,
    Oauth2AllowImplicitFlow
    , and
    ReplyUrls
    . Have they been moved? I have been Googling but have not been able to find them. EDIT: Resolved by reverting back to the older version and they all had deprecated attributes with guidance on the new properties.
  • i

    icy-jordan-58549

    06/02/2022, 5:33 PM
    Are there someone who is using databricks provider? https://github.com/pulumi/pulumi-databricks trying to create a provider, but getting this errors:
    error: could not validate provider configuration: 4 errors occurred:
            * : invalid or unknown key: azure_client_id
            * : invalid or unknown key: azure_client_secret
            * : invalid or unknown key: azure_tenant_id
            * : invalid or unknown key: azure_workspace_resource_id
    w
    b
    • 3
    • 30
  • q

    quick-wolf-8403

    06/02/2022, 6:56 PM
    I'm setting my Provider config values as the docs advise (
    gcp:project
    ,
    gcp:region
    ) Can I now rely on them via something like
    project_id = config.require("gcp:project")
    ? I get an error suggesting I need to set it in my Pulumi project namespace. Is there a way to access these directly w/o duplicating them?
    • 1
    • 2
  • a

    acoustic-tiger-77630

    06/02/2022, 7:13 PM
    Hey Guys… I am having some problems to run python program in my Pulumi/Terraform project. I got it bridged to a Terraform Provider I’ve developed and the SDK compiled correctly, but then I am having difficulties getting the custom PackageName to work correctly as the custom package don’t seem to be identified by Pulumi. The MakeFile from the boilerplate does not provide an install for python sdk. Does anybody have any detailed guidelines on how to run this programs successfully in the virtual environment? I managed to get it working using Typescript, but not Python. Thank you
    b
    • 2
    • 1
  • d

    delightful-napkin-38557

    06/02/2022, 8:06 PM
    Hello, I'm trying to use https://github.com/pulumi/pulumi-component-provider-py-boilerplate to build my own component resource. I have packaged my component and installed it with
    pulumi plugin install resource  xyz 0.0.1 --file ./dist/pulumi-resource-xyz-v0.0.1-linux-amd64.tar.gz
    . But the last thing I can not find in the doc, it's how to use the plugin/resource in my main (python) code. Can someone help me with that ? Thanks !
    b
    a
    • 3
    • 49
  • r

    red-scooter-62880

    06/02/2022, 9:26 PM
    Hi. Do you know if it is possible to export a preview in JSON format when using the await stack.PreviewAsync(); with Pulumi Automation API? I need the same JSON output as if I ran Pulumi CLI command: pulumi preview --json
    b
    • 2
    • 2
  • q

    quick-wolf-8403

    06/02/2022, 9:47 PM
    Not sure how I got into this state, or what's triggering it. Any tips?
    k: await serialize_property(
          File "/home/a/.cache/pypoetry/virtualenvs/nocap-api-tm7b1NnF-py3.10/lib/python3.10/site-packages/pulumi/runtime/rpc.py", line 450, in serialize_property
            raise ValueError(f"unexpected input of type {type(value).__name__}")
        ValueError: unexpected input of type tuple
    • 1
    • 3
  • e

    echoing-autumn-99089

    06/02/2022, 10:21 PM
    Hi, did somebody experiment use of aws lightsail with container service using pulumi ? i try to build a small app using pulumi lightsail and i don't how to start it. Thank you in advance
  • m

    mysterious-hamburger-19066

    06/02/2022, 10:23 PM
    Hello. I”m looking for some guidelines here. I’m using Pulumi to set up VMs for running my experiments. I have multiple VMs running in parallel, and I could call the pulumi run command multiple times from different VMs to run multiple experiments in parallel, or on the same vm, run multiple experiments in parallel, by calling pulumi up while the stack created some resources for another experiment that is still running. If I try to reuse the same stack across experiments, the stack either updates an existing set of resources it created, or it destroys any existing resources it previously created for another experiment that is still running. So, for each experiment, I’m creating a new stack and then deleting the stack at the end of the experiment. Is this the right way to do this? Is there a better way to do it?
    l
    • 2
    • 9
  • g

    great-byte-67992

    06/03/2022, 1:53 AM
    Hello, I'm having trouble with aliases after setting the parent of a resource.
    const mongodbPassword = new random.RandomPassword(
      `my-password`,
      {
        length: 32,
        special: false,
      },
      {
        parent: this, // <-- previously undefined
        aliases: [
          {
            name: `my-password`,
            project: pulumi.getProject(),
            stack: pulumi.getStack(),
            parent: pulumi.rootStackResource,
          },
        ],
      }
    );
    Have I done something obviously wrong? I've also tried using a full URN for the "name" in the alias object but I get the same result. Pulumi thinks it needs to delete and create the resource because of the parent change. I'm having this problem for all resources in my stack including a helm Chart resource.
    l
    • 2
    • 5
  • p

    proud-cricket-86351

    06/03/2022, 6:56 AM
    Can Pulumi be considered as an CDK? in the list with AWSCDK, terraformCDK etc?
    b
    • 2
    • 2
  • b

    breezy-book-15761

    06/03/2022, 2:57 PM
    hey, is there a way to reference a stack configured with a different secret provider?
  • f

    freezing-daybreak-42018

    06/03/2022, 3:01 PM
    👋 Hi everyone!
  • f

    freezing-daybreak-42018

    06/03/2022, 3:01 PM
    I need help
  • f

    freezing-daybreak-42018

    06/03/2022, 3:01 PM
    where do i go?
  • f

    freezing-daybreak-42018

    06/03/2022, 3:01 PM
    this is driving me crazy
    b
    • 2
    • 31
  • k

    kind-keyboard-17263

    06/03/2022, 3:08 PM
    Hi folks, I have a
    gcp.secretmanager.Secret
    , and I need the
    .secret_id
    field. I have read that it must be done either by using
    apply
    or
    lifting
    . So:
    existing_secret = gcp.secretmanager.Secret.get(
        secret_basic.name.apply(lambda name: name),
        secret_basic.secret_id.apply(lambda id: id))
    But I keep on having:
    TypeError: Expected resource name to be a string
    What am I doing wrong ?
    b
    • 2
    • 12
  • a

    average-tiger-58107

    06/03/2022, 5:51 PM
    I want to access environment variables from my config as follows:
    
    const config = new pulumi.Config("environment");
    
    const var1 = config.require("VAR_NAME");
    const var2 = config.require("ANOTHER_VAR_NAME");
    
    
    // This works
    
    config:
      environment:VAR_NAME: "my value"
      environment:ANOTHER_VAR_NAME: "another value"
    
    ----------------------
    // This does not work
    
    config:
      environment:
        VAR_NAME: "my value"
        ANOTHER_VAR_NAME: "another value"
    It feels redundant to list the
    environment:
    prefix on every line. Am I missing something obvious about YAML? Why doesn't this work?
    w
    • 2
    • 6
  • b

    bumpy-byte-21437

    06/04/2022, 10:23 AM
    hi, question anyone knows how to get stack information in go using pulumi
    b
    • 2
    • 17
  • b

    bumpy-byte-21437

    06/04/2022, 10:23 AM
    i’m new into this
    💜 1
  • w

    worried-gold-55244

    06/05/2022, 2:58 AM
    hi, is it possible to control the number of characters for auto naming of resource physical name ?
    b
    • 2
    • 3
Powered by Linen
Title
w

worried-gold-55244

06/05/2022, 2:58 AM
hi, is it possible to control the number of characters for auto naming of resource physical name ?
<resource_name>-1fbc698
to
<resource_name>-1f
b

billowy-army-68599

06/05/2022, 7:29 AM
this isn;'t currently possible, tracked in https://github.com/pulumi/pulumi/issues/1518
w

worried-gold-55244

06/05/2022, 8:21 PM
thanks, hope it gets resolved
View count: 3