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

    broad-dog-22463

    04/08/2020, 11:20 AM
    Yes
  • b

    broad-dog-22463

    04/08/2020, 11:21 AM
    And the Pulumi engine knows how to decrypt it based on the secret provider when passing to another resource
    s
    h
    • 3
    • 7
  • s

    stale-knife-36790

    04/08/2020, 12:43 PM
    I can't seem to find the solution for a runtime/promisse error I'm having (with Pulumi's GCP module). This is my code (I pasted the code on the same hastebin page): https://hastebin.com/etajakubid.js
    a
    f
    • 3
    • 70
  • b

    brave-angle-33257

    04/08/2020, 3:01 PM
    hi, i've hit this a couple times now, I'm not sure what the cause is. Last time this happened, i was never able to refresh my stack, but I was able to update it and then it went away - Go panic on a refresh
    w
    • 2
    • 15
  • p

    polite-portugal-60022

    04/08/2020, 3:22 PM
    Hey all, Using gcp provider/python. I've got a weird thing going on with outputters where they seem to get stacked on each other. I'm doing a simple iteration over resources I want to be built. I'm creating disks and assigning them as dependencies to an instance's attached_disks. Strangely, upon the second iteration, when I attach new disks to the attached_disks list, the outputters from the previous iteration are already there, even though I've constructed a brand new object. In order to alleviate this problem, I'm first filtering the list of output objects before appending the new ones. Example below:
    # Note, I'm abstracting a lot of what we do with simple wrapper classes since 99% of our instances will follow the same patterns. The second reason is to easily load/write templates automagically from provided inputs to script(s)
    for resource_objs in template_objs:
    # Build all non-disk/non-instance objects first in case there are dependencies later
    objs = list( filter( lambda obj: not 'disk' in obj[1].lower() and not 'instance' in obj[1].lower(), resource_objs) )
    for obj in objs:
    obj[0].build()
    # Extract and build all "disk" objects
    disk_objs = list( filter( lambda obj: 'disk' in obj[1].lower(), resource_objs) )
    for disk_obj in disk_objs:
    disk_obj[0].build()
    # Extract instance object
    instance_obj = list( filter( lambda obj: 'instance' in obj[1].lower(), resource_objs) ).pop()
    # Some kind of bug?, need to filter out pulumi.output.Output objects from attached_disks attr
    # else, will try to add ALL previously created disks. Not just the disks created in this iteration!!!
    instance_obj[0].attached_disks = list( filter(lambda disk: not isinstance(disk, pulumi.output.Output),
    instance_obj[0].attached_disks) )
    # Append disks to be attached_disks attr and build instance
    for disk_obj in disk_objs:
    instance_obj[0].attached_disks.append( { 'device_name': disk_obj[0].result.name,
    'source': disk_obj[0].result.name } )
    instance_obj[0].build()
  • c

    cool-egg-852

    04/08/2020, 3:59 PM
    Is there an easy way to see when a resource was lost from the statefile? I lost a few important resources and can’t seem to figure out when it happened.
    g
    • 2
    • 9
  • e

    elegant-crayon-4967

    04/08/2020, 5:18 PM
    easy one for you guys this morning…how can you edit a project description?
    f
    • 2
    • 9
  • f

    flaky-baker-91034

    04/08/2020, 5:32 PM
    Hi all, is it necessary to login to pulumi to use it? I can't find any docs on how to use the cli without pulumi login
    g
    • 2
    • 2
  • b

    billions-glass-17089

    04/08/2020, 6:08 PM
    how many stacks can the community account have?
    c
    • 2
    • 2
  • b

    bright-orange-69401

    04/09/2020, 8:04 AM
    Is there a config or a pattern I can use to avoid race conditions in Pulumi ? I'm trying to delete a type A DNS record to replace it with a CNAME record, but it seems Pulumi tries to create the CNAME first -and fails- instead of destroying the old resource before creating the new one.
    delete_before_replace
    does not help me here because the two records are 2 separate resources (they are in different stacks)
    l
    • 2
    • 1
  • f

    famous-kite-69533

    04/09/2020, 1:20 PM
    Hi all, is it possible to create a secret from file, or alternatively a multiline secret? I need to create a secret that is the result of the command
    openssl rand -base64 128
    b
    • 2
    • 6
  • b

    brainy-nest-61978

    04/09/2020, 2:02 PM
    Hello hoping someone can help. Running into issues getting started with https://www.pulumi.com/docs/get-started/kubernetes/create-project/ its hang after running pulumi up. have tried a few times. going to try with logging enabled now and see if I get some error info. From powershell I just see 'update failed' error: 4 errors occured: but the error info never shows powershell is just left spinning....
    b
    s
    • 3
    • 5
  • g

    gray-yak-9058

    04/09/2020, 4:06 PM
    Hi all. I am working on a proof of concept of Pulumi to present to my team, but have a few questions. Let's assume I am going to use the Pulumi Service as a backend. 1. If I have a project with 3 stacks: sandbox, preprod, and prod. I want to allow anyone to run
    pulumi up
    on the sandbox and preprod stacks, but I want to lock down the prod stack so that only certain users can run
    pulumi up
    . Is this possible? 2. How does the Pulumi GitHub action work when it comes to multiple stacks? Does it cycle through all stacks within a project? I would like to be able to control when a
    pulumi up
    is run on a specific stack during CI/CD. While making infrastructure changes, I would obviously want to try it in the sandbox or preprod environments before making changes in production. Is this capable with the Pulumi GitHub action or do I need to look for another solution?
    g
    • 2
    • 5
  • f

    future-kite-91191

    04/09/2020, 4:52 PM
    Hi! Question about config yaml files. Config data is organized using
    Pulumi.<stack-name>.yaml
    files for each stack. But how can I specify default values that apply to all stacks? Can I specify config data at project level and the
    Pulumi.<stack-name>.yaml
    can override it? Some settings are the same for all stacks most of the time, would be handy to keep it DRY. Is that possible?
    b
    • 2
    • 3
  • b

    brave-glass-88708

    04/09/2020, 5:02 PM
    Hi, I've been following Pulumi's progress for a while now and finally have to sometime dedicated at evaluating Pulumi to see if it meets our use-cases. What I am trying to do is have Pulumi manage common cluster services (services that are always available and should be in sync across all clusters) for example, ELK stack, nginx ingress, cert-manager, etc...a lot of third-party apps. The questions i have are around the
    @pulumi/kubernetesx
    and
    @pulumi/kubernetes
    SDK for nodejs. 1. i know it can load a yaml manifest and deploy it - i take it that i can retrieve a remote file from a public source, customize it with some other configs and deploy it? since it's nodejs it should be possible 🙂 2. since most of these are third-party, they are provided as a helm chart or kustomize. with helm chart i see that pulumi has first-class support for it, for kustomize is it possible to achieve the same result as helm and providing custom overrides?
    g
    • 2
    • 2
  • f

    fierce-dinner-20116

    04/09/2020, 6:06 PM
    Hello, I am trying to run this pulumi program that I wrote; https://github.com/sourcegraph/deploy-k8s-helper. However, when I run
    pulumi up
    on a fresh checkout, i get the following errors:
    ~/dev/go/src/github.com/sourcegraph/deploy-k8s-helper master
    ❯ yarn
    yarn install v1.22.4
    warning package.json: No license field
    warning sg-deploy-k8s-helper: No license field
    [1/4] 🔍  Resolving packages...
    success Already up-to-date.
    ✨  Done in 0.15s.
    
    ~/dev/go/src/github.com/sourcegraph/deploy-k8s-helper master
    ❯ pulumi up
    Previewing update (dev):
         Type                 Name                                      Plan     Info
         pulumi:pulumi:Stack  sourcegraph-deploy-kubernetes-helper-dev           3 messages
     
    Diagnostics:
      pulumi:pulumi:Stack (sourcegraph-deploy-kubernetes-helper-dev):
        (node:95200) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 2)
        (node:95200) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 3)
        (node:95200) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 5)
    • 1
    • 3
  • s

    salmon-army-25804

    04/09/2020, 7:04 PM
    Hi there 👋 I'm trying to use pulumi to codify a static website redirect in aws s3 (section "Redirecting Requests for a Bucket's Website Endpoint to Another Host" in https://docs.aws.amazon.com/AmazonS3/latest/dev/how-to-page-redirect.html). In pulumi, I'm creating a
    new aws.s3.Bucket
    with param
    website: { redirectAllRequestsTo: "<http://example.com|example.com>" }
    . The s3 docs say that there is an option to specify protocol (I need to redirect with
    https
    ) but that does not seem possible in pulumi since
    redirectAllRequestsTo
    is of type
    pulumi.Input<string>
    . I additionally tried to specify
    routingRules: { Redirect: {HostName: "<http://example.com|example.com>",Protocol: "https"} }
    to the same Bucket resource but then get the error message that
    aws:s3/bucket:Bucket resource 'mybucketname' has a problem: "website.0.redirect_all_requests_to": conflicts with website.0.routing_rules
    . Additionally, if I go into the AWS web UI and manually update the Protocol field to "https" and then run
    pulumi up
    , pulumi does not recognize that a change was made to the bucket configs which leads me to wonder if there is a bug
    b
    • 2
    • 13
  • f

    full-painter-18061

    04/09/2020, 9:51 PM
    Quick question guys. Are the Pulumi webinar recorded, like the coming one on 22nd of this month?
    t
    • 2
    • 2
  • f

    famous-kite-69533

    04/09/2020, 10:02 PM
    Out of curiosity, has ever happened to anyone that changes to Pulumi code would result in accidental destruction of resources and things like that? I know it's pretty common with Terraform that changes to either code or Terraform itself can make this happen. Because of this I've always felt that these tools are as powerful as risky in a way 😄
    e
    • 2
    • 1
  • e

    eager-cartoon-54068

    04/09/2020, 11:04 PM
    I’m using Pulumi with AWS and pulumi usually adds a suffix to resources it deploys, but in the case of
    aws.batch.ComputeEnvironment
    , I have to specify
    computeEnvironmentName
    and that exact name is used to deploy the resource. If I make any changes to the CE, I have to go in and change the name to avoid a conflict. Is there a way to get the suffix that Pulumi normally adds to resources so I don’t have to change the name every time I want to update an AWS Batch Compute Environment?
    g
    • 2
    • 10
  • q

    quaint-jelly-95055

    04/10/2020, 2:00 AM
    Hey guys, I am new to Pulumi, and am just loving it! Great product! 🙂
  • q

    quaint-jelly-95055

    04/10/2020, 2:01 AM
    I am trying to set up AWS Fargate using Pulumi with a simple flask python app where Dockerfile exposes port 8000, now in the example I could see tht port 80 is mapped in load balancer and later on in taskDefinitionArgs, but how to point it to 8000? I tried this, but doesnt work
    t
    • 2
    • 7
  • q

    quaint-jelly-95055

    04/10/2020, 2:02 AM
    // Step 4: Create a Fargate service task that can scale out.
    const appService = new awsx.ecs.FargateService("app-svc", {
    cluster,
    taskDefinitionArgs: {
    container: {
    image: img,
    cpu: 102 /*10% of 1024*/,
    memory: 50 /*MB*/,
    portMappings: [{ containerPort: 8000, }],
    },
    },
    desiredCount: 5,
    });
  • s

    shy-journalist-23327

    04/10/2020, 4:18 AM
    is there any plan to support pulumi crosswalk aws for golang?
  • a

    acceptable-stone-35112

    04/10/2020, 8:17 AM
    Is there an Api to get current organization from context programmatically, similar to getProject() and getStack()? I need this for tagging and to create a StackReference()
    c
    • 2
    • 2
  • a

    adorable-musician-66353

    04/10/2020, 1:09 PM
    When I use Pulumi do I put it in the build pipeline at the end or create a separate release pipeline on Azure DevOps. What is the best way to use it?
  • b

    brave-glass-88708

    04/10/2020, 4:06 PM
    How well does pulumi support crd in Kubernetes? For example, Certificate object from cert-manager.
    c
    • 2
    • 5
  • b

    brave-glass-88708

    04/10/2020, 4:15 PM
    Looking at this blog https://www.pulumi.com/blog/kubernetes-yaml-generation/ you can render the pulumi resources to yaml. I notice that for every object you need to provide it with the provider config. Is there a way to make it more dry, such that you create a provider and tell pulumi to use it for all objects?
    b
    l
    • 3
    • 4
  • b

    bright-orange-69401

    04/10/2020, 4:16 PM
    Is there a way to run an arbitrary Bash command as part of a Pulumi deployment ? I'm trying to
    curl
    my deployed website at the end of every deployment, and of course the URL is built from Pulumi variables... 🙂
    c
    l
    • 3
    • 6
  • f

    flaky-baker-91034

    04/10/2020, 5:28 PM
    Is Pulumi down? Getting this error message
    $ pulumi destroy
    error: getting user info from <https://api.pulumi.com>: performing HTTP request: Get "<https://api.pulumi.com/api/user>": dial tcp 52.26.53.20:443: i/o timeout
    c
    • 2
    • 2
Powered by Linen
Title
f

flaky-baker-91034

04/10/2020, 5:28 PM
Is Pulumi down? Getting this error message
$ pulumi destroy
error: getting user info from <https://api.pulumi.com>: performing HTTP request: Get "<https://api.pulumi.com/api/user>": dial tcp 52.26.53.20:443: i/o timeout
c

clever-sunset-76585

04/10/2020, 5:45 PM
Hi, there is no outage on our side. We will investigate. Can you please reach out to me via DM if you are still seeing this? Also, we post status updates to #status for any outages in Pulumi or our dependencies.
Hi Pritam, we looked at all of the components on our side, and we suspect that this is an issue with your DNS cache. Can you please try to flush your DNS cache and try again? If you need help doing that, please reach out to me and I’d be happy to help with this.
View count: 2