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
  • f

    flaky-arm-38472

    09/12/2022, 3:14 PM
    In Go what are people using to get values from a config settings file (i.e
    Pulumi.dev.yaml
    ) to populate variables/values inside an inline program using the automation API?. Lets say I have the AWS region set on the config file. Then how can overwrite/populate the following values with the ones on the config file:
    s.SetConfig(ctx, "aws:region", auto.ConfigValue{Value: "us-west-2"})
    . Do I have to resort to use json parser ?.
    b
    • 2
    • 1
  • a

    ambitious-father-68746

    09/12/2022, 4:29 PM
    Hi, I need to get the name of a resource in Pulumi, in order to generate another resource name based on it. I figure I can also get this from the URN, but I can't find a way to get the name or the URN. Any help would be appreciated, thanks.
    b
    • 2
    • 3
  • c

    clean-salesclerk-32849

    09/12/2022, 7:55 PM
    Hi, what's the best way to find the service IP from this code:
    export const fargate = new awsx.ecs.FargateService(NAME, {
      cluster,
      taskDefinitionArgs: {
        containers: {
          mbankrlproxy: {
            image: image,
            memory: 512,
            portMappings: [{ containerPort: 80, hostPort: 80 }],
            environment: ENVIRONMENT,
          },
        },
      },
      desiredCount: 1,
    });
    either to get the randomly generated IP, or better yet to use a reserved IP. I've been looking in the docs but can't find it ...
    s
    • 2
    • 3
  • m

    most-lighter-95902

    09/12/2022, 8:51 PM
    Hi does anyone know if Pulumi respects the helm template values when using values in property in helm Release resource?
  • m

    most-lighter-95902

    09/12/2022, 8:52 PM
    {
      key: 'aa_namespace',
      value:
        `apiVersion: v1\nkind: Namespace\nmetadata:\n  name: {{ namespace }}\nspec:\n  finalizers:\n  - kubernetes\n`,
    },
  • a

    adorable-activity-71456

    09/12/2022, 9:59 PM
    We are getting these errors all of the sudden when trying to run out GCP stack. I asked in the GCP channel and got no response. Thought I’d repost here.
    (pulumi:pulumi:Stack)
    panic: interface conversion: interface {} is nil, not map[string]interface {}
    https://pulumi-community.slack.com/archives/CRFUR2DGB/p1662753735357129
    s
    • 2
    • 2
  • w

    witty-barista-69390

    09/13/2022, 3:18 AM
    I been seeing a bunch of issues like this tonight: error: could not get AWS account ID: operation error STS: GetCallerIdentity, Are there issues going on, maybe on AWS side?
    • 1
    • 1
  • v

    victorious-dusk-75271

    09/13/2022, 4:06 AM
    This is not really a pulumi question. So the problem i have is with managing the
    AWS_ACCESS_KEY_ID
    and
    AWS_SECRET_ACCESS_KEY
    , so I was wondering there anything i can use with pulumi to automatically set those for pulumi stacks?
    s
    • 2
    • 8
  • s

    stocky-father-68249

    09/13/2022, 4:38 AM
    Hey guys, I'm setting up Prometheus for ECS, is there docs which I can go through to understand the process of deploying it using pulumi?
    v
    • 2
    • 6
  • f

    few-lizard-48557

    09/13/2022, 7:56 AM
    Azure Application Gateway (V1) - How to load SSL certificate from PFX file into resource Hi, I have created an Azure Application Gateway using Pulumi/TypeScript in 'WAF' tier (basic tier, no support for KeyVault certificates). Unfortunately, I am not able to upload the SSL certificate for the HTTPS connection when creating the Application Gateway. I have included the relevant TypeScript code below and this is specifically about the '*sslCertificates*' section.
    import * as pulumi from "@pulumi/pulumi"; 
    import * as azure from "@pulumi/azure-native";
    import * as rg from "./resource-group";
    
    //////////////////////////////////////////////////////////////////////////////
    // Azure Config variables
    //////////////////////////////////////////////////////////////////////////////
    const config = new pulumi.Config();
    const appGatewayName = config.require("appGatewayName");
    const sslCertPassword = config.requireSecret("sslCertPassword");
    
    //////////////////////////////////////////////////////////////////////////////
    // Create Azure Application Gateway
    //////////////////////////////////////////////////////////////////////////////
    const applicationGateway = new azure.network.ApplicationGateway(appGatewayName, {
        applicationGatewayName: appGatewayName,
        authenticationCertificates: [],
        location: "westeurope",
        resourceGroupName: rg.rgName,
    
        //....
    
        sslCertificates: [{
            data: "*****",
            name: "my-domain",
            password: sslCertPassword,
        }],
    
        //....
        //....
    });
    Here I need values for the properties: 'data' => Base-64 encoded pfx certificate 'name' => Name of the SSL certificate (domain name) 'password' => Password for the pfx file specified in data I have the following values available: - pfx file - domain name - password for pfx file If I assign the certificate (pfx file) the values via Azure Portal, then the HTTPS connection works correctly. But unfortunately I cannot assign the certificate/pfx file via code. How do I get from the pfx file to the data or the format I need for the 'data' property - Any help or example is appreciated!
    • 1
    • 1
  • w

    worried-xylophone-86184

    09/13/2022, 8:42 AM
    Hi all ! I have a question regarding extracting secrets from STACK configuration files. Based on this document, there is provision to store secrets based on a provided path. Something like this
    pulumi config set --path --secret endpoints[0].token accesstokenvalue
    Now, if we wish to access this secret within the Pulumi script, I am not certain if we can access it directly like the usual way mentioned in the docs:
    import pulumi
    config = pulumi.Config()
    print(config.require_secret('dbPassword'))
    v
    • 2
    • 3
  • e

    echoing-postman-88590

    09/13/2022, 10:55 AM
    Hi, is there a resource where to find projects that extends Pulumi, for example for terraform there is checkov, tfscan, infracost, ... Thanks
    v
    • 2
    • 2
  • g

    gorgeous-pillow-81622

    09/13/2022, 2:29 PM
    👋 Hello, I have a question about configuration management. I want to provide a bunch of predefined variables for given environments (for instance all
    aws:
    variables predefined for different environments like awsAccount1, awsAccount2, etc.). When users use the CLI, they can use a YAML file with all predefined values. However I need a way to have it also with Automation API using inline program (Golang, so I don’t have the
    infra
    Git repo, only go imports), e.g. a CI. The inline hybrid exemple is simplifying by considering everything will be accessible (same repo), and the stack name will be the same (which is unlikely to be true). I’d like to know if anyone faced the issue and if there’s any solution to that?
  • c

    clean-salesclerk-32849

    09/13/2022, 2:47 PM
    Hi, what's the best way to find the service IP from this code? I'm not using a LB because it's an internal API. :
    export const fargate = new awsx.ecs.FargateService(NAME, {
      cluster,
      taskDefinitionArgs: {
        containers: {
          mbankrlproxy: {
            image: image,
            memory: 512,
            portMappings: [{ containerPort: 80, hostPort: 80 }],
            environment: ENVIRONMENT,
          },
        },
      },
      desiredCount: 1,
    });
    The cluster->task->container is then given a Public and Private IP (I can see this on AWS consile). How do I access these IP's from the awsx API?
    b
    g
    • 3
    • 14
  • w

    witty-barista-69390

    09/13/2022, 7:03 PM
    I am encountering an error on CloudControl from AWS Native library. I am trying to update the base capacity of the server and keep getting the same message in response:
    error: operation error CloudControl: UpdateResource, https response error StatusCode: 400, RequestID: 37e23eac-1494-48d6-b2d6-0ab657f40f26, api error ValidationException: [REPLACE Operation] noSuchPath in source, path provided : //BaseCapacity
    Anyone have any ideas on this?
    • 1
    • 2
  • b

    brash-alligator-49865

    09/13/2022, 7:32 PM
    👋 Ciao! I'm totally in love with the README functionality, I also blogged about it. Which other interpolations does it support apart from ${outputs}? Is there a way to do something like ${config.myconf} ? https://www.pulumi.com/blog/stack-readme/
    s
    • 2
    • 2
  • m

    modern-evening-83482

    09/13/2022, 9:25 PM
    hello all. does pulumi support creating ecs scheduled tasks?
    s
    • 2
    • 10
  • w

    wet-noon-14291

    09/13/2022, 10:37 PM
    What is the benefit of setting the parent property on a resource? The resource graph is more visually pleasing, but is there any other part I'm missing?
    l
    s
    • 3
    • 3
  • s

    strong-helmet-83704

    09/14/2022, 5:02 AM
    Is there any way to get the config from a different stack within the same project? Running against stack_a i want to get a value from the config of stack_b… ?
    v
    l
    • 3
    • 16
  • l

    lively-helmet-97905

    09/14/2022, 5:05 AM
    Which the differences between aws classic and aws native ?.
    l
    s
    • 3
    • 3
  • l

    lively-helmet-97905

    09/14/2022, 5:13 AM
    Try to fix the date for Google Cloud Native.
    👍 1
  • c

    cuddly-ability-96139

    09/14/2022, 8:05 AM
    Hi guys, I've looked for a
    docker
    in a messages history but failed to find out my issue Thing is I have a
    Dockerfile
    and during the docker image build it fails with quite general error
    Error building docker image: 0: executor failed running [/bin/sh -c npm run build]: exit code: 127
    image:
        type: docker:RegistryImage
        properties:
          name: ${container-registry-...}/....
          build:
            context: ${pulumi.cwd}/../ (yeah it's one dir up)
            target: ....
        options:
          provider: ${docker-provider}
          customTimeouts:
            create: "30m"
            update: "30m"
    Is there a way to see the
    docker build ./
    output as I have it using CLI?
  • q

    quick-microphone-7801

    09/14/2022, 8:16 AM
    Hi, I've been having some pulumi issues on my Macbook M1. After some extensive googling still haven't found the issue. Does anyone here know a solution by any chance?
    ✅ 1
    b
    • 2
    • 1
  • q

    quick-microphone-7801

    09/14/2022, 9:37 AM
    Traced the issue down to an too old resource version. However I can't change the settings in pulumi.com to a newer resource version, does anyone know more about this?
    s
    • 2
    • 2
  • c

    curved-rain-57057

    09/14/2022, 10:58 AM
    Can we increase the number of nodes in a node pool of a GKE cluster with this function? https://www.pulumi.com/registry/packages/gcp/api-docs/container/nodepool/#nodecount_nodejs
  • s

    swift-intern-18856

    09/14/2022, 4:09 PM
    Hi! We’re currently using the s3 backend which works great for us, but love Pulumi and are interested in converting to a paid account just to support the product because we love it. The pricing is pretty opaque to us, however. Is there any tooling or scripts we can use to get a rough estimate of what this would cost us by introspecting our stacks? We would love to support, but we’re a small team and don’t actually need any of the team/enterprise features, so are a bit budget conscious of switching to a paid product with unclear pricing growth over time.
    b
    • 2
    • 1
  • a

    alert-jelly-32205

    09/14/2022, 6:09 PM
    Hi all! Does anyone know how to remove and/or change an SSO sync for an account? Seems like I can only refresh it. Attempting to change emails but the account was setup via github's sso.
    q
    • 2
    • 4
  • s

    stocky-father-68249

    09/15/2022, 6:06 AM
    Hey guys, for an already existing
    aws.lb.LoadBalancer
    resource in pulumi python, how do I add new security groups which weren't there during the time of creation?
    l
    • 2
    • 2
  • s

    shy-dentist-79386

    09/15/2022, 7:42 AM
    Hi Guys, Is there a way to set CORS headers to lambda authorizers` rejections? I know how to manually set in from panel: https://stackoverflow.com/questions/36913196/401-return-from-an-api-gateway-custom-authorizer-is-missing-access-control-allo/44403490#44403490 But looks like pulumi doesn’t have this option.
  • a

    able-pharmacist-98732

    09/15/2022, 10:14 AM
    Hi, Is there a way to initialize new stack from Typescript code, as an alternative to
    pulumi stack init dev
    I see we have only getStack, but not setStack
    import * as pulumi from "@pulumi/pulumi";
    const env = pulumi.getStack();
    n
    • 2
    • 1
Powered by Linen
Title
a

able-pharmacist-98732

09/15/2022, 10:14 AM
Hi, Is there a way to initialize new stack from Typescript code, as an alternative to
pulumi stack init dev
I see we have only getStack, but not setStack
import * as pulumi from "@pulumi/pulumi";
const env = pulumi.getStack();
n

numerous-state-84361

09/15/2022, 12:04 PM
Have you looked into https://www.pulumi.com/docs/guides/automation-api/
View count: 2