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

    flat-mechanic-75334

    05/06/2020, 7:54 AM
    Hello! Can someone show me how to get the output of a docker container? I’ve tried for example this, but it just gives me undefined:
    myContainer.containerLogs.apply(logs => console.log("container logs:", logs));
  • b

    big-potato-91793

    05/06/2020, 1:21 PM
    Hello, do we know when
    @pulumi/kubernetesx
    will be upgrading to the last pulumi version? Still depending on pulumi 1.12
    b
    • 2
    • 3
  • r

    rhythmic-lawyer-36985

    05/06/2020, 2:58 PM
    This seems like a silly question, but how do you invoke Pulumi actions (up/preview/destroy) through the Go SDK? I see the implementation in, for example,
    ./pkg/cmd/pulumi/up.go
    but I can't seem to find an example of not using the CLI tool to update/preview -- I was hoping to do it through a non-interactive service.
    b
    w
    • 3
    • 3
  • f

    flat-mechanic-75334

    05/06/2020, 4:19 PM
    Hi! I just tried to create a service account and assign a role to it in GCP and it worked. However, running
    pulumi destroy
    didn’t only delete the service account in question, but also blew away the role assignments from ALL service accounts that had identical role. Am I doing this wrong? Seems quite risky. Here’s the code I used to create the service account and assign the role:
    const serviceAccount = new gcp.serviceAccount.Account("myServiceAccount", 
        {
         accountId: SID,
         displayName: SNAME,
         description: "Service account Created by Pulumi"
        }
    );
    
    const iam = new gcp.projects.IAMBinding("myBinding",
       {
            members: [pulumi.interpolate `serviceAccount:${serviceAccount.email}`],
            role: "roles/storage.objectViewer",  
       }
    );
    g
    • 2
    • 5
  • a

    adamant-motorcycle-76548

    05/06/2020, 5:09 PM
    I can deploy, but I'm still facing this error message while deploying. I've installed previously python3-dev, python-dev and_build_essentials packages. I've tried also to add wheel package in requirements.txt. I'm working in linux mint 19.03 (ubuntu 18.04). Any Idea?
    Building wheels for collected packages: pulumi-aws, grpcio
      Running setup.py bdist_wheel for pulumi-aws ... error
      Complete output from command /home/ayeste/Documentos/Pulumi/aws-python/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-zkdm1y8t/pulumi-aws/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpqfs9agflpip-wheel- --python-tag cp36:
      /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
        warnings.warn(msg)
      usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
         or: -c --help [cmd1 cmd2 ...]
         or: -c --help-commands
         or: -c cmd --help
      
      error: invalid command 'bdist_wheel'
      
      ----------------------------------------
      Failed building wheel for pulumi-aws
      Running setup.py clean for pulumi-aws
      Running setup.py bdist_wheel for grpcio ... error
      Complete output from command /home/ayeste/Documentos/Pulumi/aws-python/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-zkdm1y8t/grpcio/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpgydsg87cpip-wheel- --python-tag cp36:
      Found cython-generated files...
      usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
         or: -c --help [cmd1 cmd2 ...]
         or: -c --help-commands
         or: -c cmd --help
      
      error: invalid command 'bdist_wheel'
      
      ----------------------------------------
      Failed building wheel for grpcio
      Running setup.py clean for grpcio
    Failed to build pulumi-aws grpcio
    Installing collected packages: protobuf, grpcio, pulumi, arpeggio, attrs, parver, semver, pulumi-aws
      Running setup.py install for grpcio ... \
    done
      Running setup.py install for pulumi-aws ... done
    Successfully installed arpeggio-1.9.2 attrs-19.3.0 grpcio-1.28.1 parver-0.3.0 protobuf-3.11.3 pulumi-2.1.0 pulumi-aws-2.2.0 semver-2.9.1
    b
    i
    • 3
    • 5
  • m

    mammoth-caravan-51104

    05/06/2020, 5:35 PM
    it might be a naive question, but is there a way to launch pulumi as an interactive console?
  • v

    victorious-helmet-11068

    05/06/2020, 5:40 PM
    hi there. in AWS: for Eks nodegroup pulumi creates “managed nodegroup” or “self-managed nodegroup”? I’m looking for a way to create self-managed nodegroup.
    b
    • 2
    • 4
  • g

    gifted-restaurant-30072

    05/06/2020, 6:53 PM
    Hi, I've got an odd question and maybe there's a much better way to do this. Essentially I'm trying to implement a different comparison for my ECS service's task definition in golang. Our Docker build process produces images with different IDs even when the base image and the service we're running in the image have not changed. This causes Pulumi to always create a new task definition during deployments. We want to avoid this so I was looking into computing the hash of the image inputs (base image and service executable) and comparing that to the hashes of the currently deployed image. If they are the same, I want the task definition to use the same Docker image ID instead of the new one. To accomplish this I need to store those hashes and, ideally, I'd like to store them in the state file. I've tried adding them as outputs on my component resource that encapsulates all the ECS resources but I can't find a way to read those values at runtime of the pulumi program. I tried using
    pulumi.Context.ReadResource
    but this requires my component resource to embed
    CustomResourceState
    instead of
    ResourceState
    and when calling
    ReadResource
    it produces an error stating there isn't a plugin for the namespace I'm using for my component resource. So, finally, to my question, is there a way to read the outputs of a component resource inside a pulumi program without just parsing the state file directly?
  • g

    gorgeous-engine-88104

    05/06/2020, 7:49 PM
    Hello, i have a question I'm trying to run pulumi on Gitlab CI with Azure Blob backend and Azure KeyVault. I'm authenticating using service principal. For some reason when i try to select a stack, pulumi just hangs, and doesn't produce any output or error, even with
    -v=9
    b
    • 2
    • 6
  • s

    swift-lunch-74411

    05/06/2020, 10:04 PM
    Question on the languages support by Pulumi. Is anyone has any opinion on the support between TypeScript and Python. I’m wonder if there is still something which is working in Typescript which is not available in Python.
    g
    g
    +3
    • 6
    • 15
  • w

    wonderful-dog-9045

    05/07/2020, 12:19 PM
    What is the easiest way to print instantly during pulumi up (using nodejs)?
  • a

    alert-pencil-7400

    05/07/2020, 12:36 PM
    Q: Is there a way to make Pulumi insert auto-generated hex string in the middle of a resource name? So that, for example, instead of
    package-385ac3
    I could have
    package-385ac3.zip
    (in case with GCP
    BucketObject
    resource)
    a
    • 2
    • 1
  • j

    jolly-bear-34819

    05/07/2020, 12:39 PM
    Hi, my team currently supports several teams with Terraform modules and we plan to switch to Pulumi instead. We have already completed most of the stuff for the new setup: wrote a compoment resource, npm packaging, CI/CD, state backend, etc. The only thing stopping us is the migration of existing resources. I had a look at the import function and it seems pretty cool, but it got me thinking about how to do that for a component resource. The first thing I thought of was adding parameters to the component resource to pass in the IDs of the resources. I'm not sure if that's the best approach to the problem. Do you guys have any experience or solutions for the migration?
  • w

    wonderful-dog-9045

    05/07/2020, 12:53 PM
    Still trying to figure out what
    pulumi up
    freezes everytime. Can someone familiar with go tell me what
    GetRequiredPlugins
    is doing? It seem to be the function that is stuck.
    $ pulumi up --logtostderr -v=9
    I0507 13:47:42.755386   28275 backend.go:410] found username for access token
    I0507 13:47:43.697486   28275 backend.go:410] found username for access token
    Previewing update (dev):
    I0507 13:47:44.093878   28275 backend.go:410] found username for access token
    I0507 13:47:44.093702   28275 backend.go:887] Stack dev being updated to version 1
    I0507 13:47:44.476166   28275 plugins.go:76] gatherPluginsFromProgram(): gathering plugins from language host
    I0507 13:47:44.476447   28275 plugins.go:426] GetPluginPath(language, nodejs, <nil>): found on $PATH /home/gsuess/.pulumi/bin/pulumi-language-nodejs
    I0507 13:47:44.476491   28275 plugin.go:83] Launching plugin 'nodejs' from '/home/gsuess/.pulumi/bin/pulumi-language-nodejs' with args: 127.0.0.1:39367
    I0507 13:47:44.553950   28275 langruntime_plugin.go:170] langhost[nodejs].GetPluginInfo() executing
    I0507 13:47:44.554275   28275 langruntime_plugin.go:83] langhost[nodejs].GetRequiredPlugins(proj=leaderboard,pwd=/home/gsuess/meteor-leaderboard,program=.) executing
         Type                 Name             Plan     
         pulumi:pulumi:Stack  leaderboard-dev           
     
    System Messages
      ^C received; cancelling. If you would like to terminate immediately, press ^C again.
      ^C received; terminating
    I've tried to isolate the problem, but could not bisect it (seems to be very prone to some cache somewhere). Related thread about past attempts to get this problem isolated here: https://pulumi-community.slack.com/archives/C84L4E3N1/p1588696231371300 Any help would be really appreciated. Can't figure this one out so far.
    b
    • 2
    • 43
  • a

    ancient-megabyte-79588

    05/07/2020, 2:41 PM
    Hello there... I'm trying to provide some recommendations internally (and in a blog post) about Pulumi SKUs, pricing and limits. What I'm stuck on is the Community SKU does not mention project stack limits, Team Starter SKU mentions 20 project stacks, and Team Pro SKU removes any limits. 1. What does project stack limit actually mean? Projects or stacks, or stack count across all projects. 2. What is the limit for community?
    w
    b
    • 3
    • 8
  • b

    big-potato-91793

    05/07/2020, 2:44 PM
    Hey, any quick solution to move terraform modules into a pulumi one? Without rewrite?
  • a

    ancient-megabyte-79588

    05/07/2020, 2:48 PM
    @big-potato-91793 https://www.pulumi.com/blog/using-terraform-remote-state-with-pulumi/ I haven't tried this at all, I just saw this blog post. Seems to be in the topic of your question.
    b
    w
    c
    • 4
    • 7
  • b

    bland-lamp-16797

    05/07/2020, 3:37 PM
    I'm reading micro-stacks, what I don't understand is, how do I create a
    StackReference
    by
    <organization>/<project>/<stack>
    If I use Self-managed backend (gs) , what is my organization?
    w
    • 2
    • 1
  • t

    tall-vegetable-11816

    05/07/2020, 8:37 PM
    Is there anyone @ Pulumi who speaks French to have a talk in a podcast?
  • t

    tall-vegetable-11816

    05/07/2020, 8:38 PM
    you can contact me on twitter @saphoooo
  • b

    billowy-army-68599

    05/07/2020, 8:38 PM
    @tall-vegetable-11816 I'm checking this now!
  • t

    tall-vegetable-11816

    05/07/2020, 8:38 PM
    Many thanks @billowy-army-68599
  • t

    tall-vegetable-11816

    05/07/2020, 8:40 PM
    If you need more information, you can visit my website https://electro-monkeys.fr/ or contact me at any time
  • b

    billowy-army-68599

    05/07/2020, 8:56 PM
    @tall-vegetable-11816 we have someone on our sales team who speaks French, is this mainly engineering content?
  • t

    tall-vegetable-11816

    05/07/2020, 9:02 PM
    Yes it is, and it sounds perfect as I would like to provide an overview of Pulumi, with some infrastructure specific questions
  • t

    tall-vegetable-11816

    05/07/2020, 9:03 PM
    @billowy-army-68599 how can I contact this person?
  • b

    billowy-army-68599

    05/07/2020, 9:03 PM
    Please send me an email to lbriggs@pulumi.com and I’ll put you in touch
  • t

    tall-vegetable-11816

    05/07/2020, 9:04 PM
    ok, many thanks!
  • l

    lemon-egg-20955

    05/07/2020, 10:40 PM
    Hi, I have had quite possibly the worst time using pulumi - anyone able to give me some pointers?
    g
    • 2
    • 24
  • h

    high-postman-55219

    05/07/2020, 10:44 PM
    Hi, I have a problem creating an acm certificate, additional names changed order, so the operation is not idempotent, every time I run
    pulumi up
    the cert is replaced, I am very frustrated with this behavior
    Untitled
Powered by Linen
Title
h

high-postman-55219

05/07/2020, 10:44 PM
Hi, I have a problem creating an acm certificate, additional names changed order, so the operation is not idempotent, every time I run
pulumi up
the cert is replaced, I am very frustrated with this behavior
Untitled
View count: 1