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

    bright-restaurant-97414

    07/24/2020, 9:45 PM
    https://github.com/pulumi/pulumi-newrelic/pull/91 was merged 🎆 Any chance to get a release cut, so I can use it via NPM?
  • b

    broad-dog-22463

    07/24/2020, 10:11 PM
    AS I said in DM, we are working on an issue where the build and the generated examples are non-deterministic
  • a

    ancient-mouse-38275

    07/25/2020, 1:40 AM
    hello all. pretty new to pulumi and looking at it for an application... just wondering is there a way for pulumi to import a kubernetes yml config and generate code for that infra? i.e. I would like to use kompose https://github.com/kubernetes/kompose to get kubernetes yml and then change that into pulumi code
    w
    • 2
    • 2
  • e

    early-sugar-1496

    07/25/2020, 3:19 PM
    Hi. I'm starting to look at the feasibility of moving from terraform to pulumi for new environments. I've got a question regards to components (components seem to be the equivalent of terraform modules?) We create many terraform modules. They're all in their own git repo and have versioned releases pushed to a module registry. Our environments (stack?) use these modules and rarely define resources directly. Each environment is a separate folder, with it's own state in a monorepo, we don't use workspaces. Each environment is able to target different versions of these modules (Dev uses v2 of module foo, prod uses v1 until upgraded at a later date), and some environments swap modules for another (Dev may use module bar because it's a much cheaper way to implement baz, which staging and prod use). My current thought is this means we should use separate projects per environment and deploy a single stack per project? Allowing us to pull in different dependency versions. Does that sound right, or is there a better way to do it? Thanks!
    h
    l
    • 3
    • 5
  • a

    aloof-engine-23345

    07/25/2020, 8:20 PM
    Hello, I was migrating from serverless to pulumi but it seems like now my desktop is pushing to one account and my laptop to a different account. Can someone explain how this has to be setup so that I can actually work on 2 machines?
  • m

    millions-umbrella-34765

    07/25/2020, 11:56 PM
    Pulumi is not integrated with Bitbucket Pipelines? I don’t see it mentioned on https://www.pulumi.com/docs/guides/continuous-delivery/
    c
    • 2
    • 2
  • t

    thankful-lamp-48382

    07/26/2020, 7:26 AM
    Hello! I need something really basic, but still can't find any example, so maybe anyone know how to achieve what I need 🙂 I have node.js app with Dockerfile, I want to create droplet and the app with docker on it
  • t

    thankful-lamp-48382

    07/26/2020, 7:32 AM
    The part I have problem with is how to tell Pulumi to start docker container resource on droplet 🙂?
    b
    • 2
    • 1
  • a

    aloof-engine-23345

    07/26/2020, 3:43 PM
    i’ve run into an issue where anytime I try to use dynamodb within a route in
    awsx.apigateway.API
    will not allow me to run
    pulumi up
    , after looking at the output, it hangs on this
    eventSink::Debug(<{%reset%}>Trying to get account information via sts:GetCallerIdentity<{%reset%}>)
  • a

    aloof-engine-23345

    07/26/2020, 3:46 PM
    once i remove any calls to dynamodb, i can get
    pulumi up
    to run fine…
  • h

    helpful-processor-86468

    07/27/2020, 7:06 AM
    How can I execute some code after certain resource is created?
    p
    l
    • 3
    • 13
  • s

    sticky-knife-56285

    07/27/2020, 2:54 PM
    hi there everyone, hopefully this is a simple question.... how do you prevent configuration settings (in YAML files) from appearing in the "Configuration" section on the project stack? we will have API keys/passwords/connection string etc in the YAML file that we essentially extract and place in a KeyVault using Pulumi, however, those values in YAML are plain text sothey end up in plain text in Pulumi's stack view. Is there a way to prevent them from being uploaded to Pulumi or is there a way to encrypt them in the YAML file?
  • s

    sticky-knife-56285

    07/27/2020, 2:59 PM
    actually scrap that question, I got it sorted, didn't realise the --secure flag when setting from the CLI actually encrypts the value in the YAML as well, nice!
  • h

    hallowed-rain-9096

    07/27/2020, 3:09 PM
    @sticky-knife-56285 if you name your config settings with "secret" in them Pulumi will often help you by suggesting that they be secure
  • h

    hallowed-rain-9096

    07/27/2020, 3:11 PM
    IIRC it will actually error out when you attempt setting a config value named
    *secret*
    and force you to specify either
    --secure
    or
    --plaintext
    (all from memory, syntax may be off)
  • s

    sticky-knife-56285

    07/27/2020, 3:23 PM
    ok cool, I trust that as long as I am logged in that the secure string is based on the Pulumi account that generates it? that way multiple users can keep adding secret strings from the CLI and it will continue to decrypt them correctly
    b
    • 2
    • 1
  • c

    curved-summer-41191

    07/27/2020, 4:13 PM
    Has anyone seen this issue with adding a
    releaseChannel
    to an existing cluster definition? https://github.com/pulumi/pulumi-gcp/issues/394 I upgraded versions of the GCP/Pulumi packages so that I could use that configuration but now the apply is panic'ing saying that the cluster would be recreated
  • b

    billions-glass-17089

    07/27/2020, 6:06 PM
    hi is it possible to change a stack's language after it's already been created? I.e. from Python to TypeScript?
    b
    m
    • 3
    • 3
  • m

    miniature-petabyte-40567

    07/27/2020, 8:33 PM
    I'm having issues running Pulumi AWS C# with a pre-existing VPC. I thought it was as simple as setting objects' VpcId argument to "vpc-1234567890abcdef" (using a dummy ID obviously) but for some reason it's bringing up an error. Whenever I launch Pulumi, it states that the VPC ID does not exist. My code works properly if I create a VPC in the program itself, so what would be the proper syntax in order to use a pre-existing VPC as an object argument? Example code of what I'm doing below
    var subnetA = new Subnet(
                "mc-subnet-a",
                new SubnetArgs
                {
                    CidrBlock = "10.5.1.0/24",
                    VpcId = "vpc-1234567890abcdef",
                    AvailabilityZone = "us-west-1a"
                }
            );
    s
    • 2
    • 4
  • n

    numerous-artist-1705

    07/27/2020, 8:43 PM
    hi folks, I am creating a resource in a remote pipeline, that uses a `FileAsset`; the path on my local machine differs from the one on the build agent, therefore Pulumi forces a change to the stack when the last run was from a different machine. I tried to use
    IgnoreChanges
    , but that doesn't work as it ignores the change, but still wants to access to the path in the stack which is not available. Is there any way around this?
    l
    • 2
    • 8
  • d

    dazzling-analyst-17846

    07/27/2020, 9:58 PM
    Hi folks, I was wondering if I can find some documentation on Integration/Blackbox testing with pulumi. I have only found something for Go, but i'd love to find something on ts/js or python.
    l
    l
    • 3
    • 7
  • s

    salmon-needle-46218

    07/27/2020, 10:32 PM
    i'm sending
    pulumi preview
    output through a CI system and want to put the output into slack , is there a way to suppress the "downloading..." output?
    l
    • 2
    • 4
  • c

    clever-plumber-29709

    07/28/2020, 2:52 AM
    I'm getting this error, when runing the pulumi/actions
    #### :tropical_drink: `pulumi --non-interactive preview`
    error: getting secrets manager: passphrase must be set with PULUMI_CONFIG_PASSPHRASE environment variable
    It was working fine previously. in local, the preview also works fine. My workflow is like:
    name: Pulumi
    on:
      - pull_request
    
    jobs:
      preview:
        name: Preview
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v2.3.1
            with:
              fetch-depth: 1
    
          - uses: <docker://pulumi/actions>
            with:
              args: preview
            env:
              AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_PULUMI_PRE }}
              AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_PULUMI_PRE }}
              AWS_REGION: us-east-1
              COMMENT_ON_PR: 1
              GITHUB_TOKEN: ${{ secrets.FULL_GITHUB_TOKEN }}
              PULUMI_BACKEND_URL: <s3://qa-pulumi-backend-company>
              PULUMI_CI: pr
    b
    • 2
    • 14
  • f

    fast-jordan-52071

    07/28/2020, 2:17 PM
    👋
  • i

    icy-jordan-58549

    07/28/2020, 9:35 PM
    anyway to disable deprecation warning? it doesn’t work
    suppressDeprecationWarnings: true
    doesn’t help.
    • 1
    • 6
  • c

    careful-engine-71229

    07/28/2020, 9:38 PM
    Does this error make sense to anyone?
    Untitled.txt
  • c

    careful-engine-71229

    07/28/2020, 9:41 PM
    Example of the code that generates the error.
    Untitled.txt
    b
    l
    • 3
    • 25
  • c

    careful-engine-71229

    07/28/2020, 9:42 PM
    Ignore terraform in the path, I started using terraform then discovered Pulumi.
    🎆 1
  • c

    careful-engine-71229

    07/28/2020, 10:17 PM
    anyone have a good example of how to create a valid ssl certificate in pulumi for a domain?
    i
    b
    • 3
    • 31
  • c

    careful-engine-71229

    07/28/2020, 11:10 PM
    Another technical question, I don't see this in the docs, maybe someone can point me there. Is it possible to generate a secret and store it when it's not set already?
    b
    • 2
    • 14
Powered by Linen
Title
c

careful-engine-71229

07/28/2020, 11:10 PM
Another technical question, I don't see this in the docs, maybe someone can point me there. Is it possible to generate a secret and store it when it's not set already?
b

billowy-army-68599

07/28/2020, 11:10 PM
your best is the random provider: https://www.pulumi.com/docs/intro/cloud-providers/random/
c

careful-engine-71229

07/28/2020, 11:11 PM
that will generate random string, but how can I set that as a secret when a secret is not present?
Untitled
^ example.
I don't see anything like that examining the types.
I imagine I could use secrets manager instead.
b

billowy-army-68599

07/28/2020, 11:18 PM
you can mark an output as secret with `additionalSecretOutputs`: https://www.pulumi.com/docs/intro/concepts/programming-model/#additionalsecretoutputs
you can't save the password back to the config file though
c

careful-engine-71229

07/28/2020, 11:20 PM
ok, thank you, question though, when I use the random utility, will it generate a new random password on each run or does it keep the value in state?
b

billowy-army-68599

07/28/2020, 11:21 PM
no it generates the password uniquely for the state unless you modify it, so it won't change constantly
c

careful-engine-71229

07/28/2020, 11:22 PM
ok, nice, thanks for clarifying.
I know I'm asking a lot of questions. I really appreciate the pointers.
Doing a lot of learning on this.
b

billowy-army-68599

07/28/2020, 11:24 PM
please don't apologise! we're here to help and glad you're enjoying the experience
💯 1
View count: 1