• w

    white-rain-67342

    3 months ago
    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}
            )
    w
    l
    5 replies
    Copy to Clipboard
  • w

    white-terabyte-21934

    3 months ago
    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 ?
    w
    1 replies
    Copy to Clipboard
  • b

    bulky-agent-73210

    3 months ago
    Hi all, is there a way for me to create and retrieve AWS SES SMTP credentials resource, in Golang?
    b
    b
    2 replies
    Copy to Clipboard
  • q

    quick-wolf-8403

    3 months ago
    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?
    q
    b
    3 replies
    Copy to Clipboard
  • g

    gifted-restaurant-32325

    3 months ago
    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

    3 months ago
    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

    3 months ago
    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

    3 months ago
    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

    3 months ago
    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
    i
    w
    +1
    30 replies
    Copy to Clipboard
  • q

    quick-wolf-8403

    3 months ago
    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?
    q
    2 replies
    Copy to Clipboard