https://pulumi.com logo
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
  • e

    elegant-pager-5412

    08/03/2021, 5:35 AM
    Hey! Recently I’m getting
    Bandwidth Exhausted
    error randomly when trying to deploy, once in a while. Any idea why it’s happening?
    s
    • 2
    • 1
  • b

    bright-orange-69401

    08/03/2021, 6:44 AM
    Is it possible to change the
    parent
    attribute of a resource without re-creating it ? (it’s mostly for aesthetics anyway right ?)
    s
    • 2
    • 2
  • g

    great-sunset-355

    08/03/2021, 9:28 AM
    If a resource component requires 2 AWS providers how can I reference that in the component's code? I know that
    ResourceOptions
    has a
    providers
    argument
    opts = ResourceOptions(providers={"prov-name": provider_resource})
    Is this the correct way to reference the provider?
    opts.providers["prov-name"]
    I wonder what error I get if the
    providers
    dict does not contain the required provider - I assume it's general
    KeyError
    right?
    b
    • 2
    • 2
  • p

    purple-lawyer-35555

    08/03/2021, 10:01 AM
    Hi all! anybody has a living example to achieve this? https://github.com/pulumi/pulumi-aws/issues/916 I would want to know when a BucketObject has been modified. thanks!
    b
    • 2
    • 2
  • i

    icy-jordan-58549

    08/03/2021, 3:11 PM
    Can someone help me, trying to run automation and I have already installed pulumi inside dockerfile, but I keep getting this
    Diagnostics:
      azure-native:storage:StorageAccount (admin-storage-account):
        error: building auth config: obtain subscription(41b4bf32-35ba-4beb-be23-220c07d2df6e) from Azure CLI: Error parsing json result from the Azure CLI: Error launching Azure CLI: exec: "az": executable file not found in $PATH
    • 1
    • 10
  • q

    quiet-architect-91246

    08/03/2021, 3:17 PM
    pulumi.Run(func(ctx *pulumi.Context) error {
       output := cluster.Provider.ApplyT(func(p *kubernetes.Provider) (string, error) 
    
          appSvc, svcerr := corev1.NewService(ctx, "app-svc", &corev1.ServiceArgs{
               ...
             },
          }, pulumi.Provider(p))
    
          ctx.Export("appIp", appSvc.Status.ApplyT(func(status *corev1.ServiceStatus) *string {
             return status.LoadBalancer.Ingress[0].Ip
          }))
          ctx.Export("test-export", pulumi.String("testexportvalue"))
          return "", nil
       }).(pulumi.StringOutput)
       ctx.Export("output", output)
    
       return nil
    })
    Hi everyone! Im running go code like stated above, and am wondering why only the "output" ctx.Export and not "test-export" or "appIp" show up in my Stack as outputs. I assume its because its inside of an
    .apply()
    , but cant really understand why that would stop it from working. Also since it doesnt work the way I tried, how would you go about achieving a similar result?
  • s

    sparse-apartment-71989

    08/03/2021, 4:13 PM
    Noob question… How to delete a project? Or maybe it’s, how to get local pulumi state to match the state on pulumi.com? I deleted a newly created Pulumi project from my local file system. When I tried to recreate it, I got an error saying the project exists. Sure enough, it did on pulumi.com. So I deleted the only stack on the project on pulumi.com, and then the project was also deleted by Pulumi. However, the error in recreating the project still exists on my local machine. So now, I’m not sure how to get my local state to match what’s on Pulumi.
    p
    b
    • 3
    • 3
  • g

    great-sunset-355

    08/03/2021, 4:56 PM
    How can I get the pulumi Resource object from the StackReferece? stack A
    oai = cloudfront.OriginAccessIdentity(
        f"{PREFIX}-oai"
    )
    pulumi.export('origin_access_identity', oai)
    stack B
    ref_oai = StackReference(name="stackA").require_output('origin_access_identity')
    The reference gives me the
    Output[dict]
    with the exactly same parameters as created object in stack A Is it possible to create an object
    OriginAccessIdentity
    from this, without calling AWS API with
    OriginAccessIdentity.get()
    ?
    b
    r
    g
    • 4
    • 23
  • b

    billions-glass-17089

    08/03/2021, 5:22 PM
    Is there a way to get Pulumi’s SOC2 report?
    b
    • 2
    • 2
  • e

    echoing-actor-55539

    08/03/2021, 8:50 PM
    I have a Pulumi controlled AWS RDS Cluster that had a default database name of X then X got renamed directly in the cluster to Y. I have changed the default database name in my pulumi script to Y, but it still wants to replace the cluster. I have tried dumping the stack and hand editing it with new name then re-importing it, but as soon as I do a pulumi refresh the name in the stack reverts back to X and it wants to replace the cluster again. Any ideas on how I can get pulumi to understand the code and AWS are in sync in terms of database name?
    g
    g
    • 3
    • 3
  • w

    wet-fall-57893

    08/04/2021, 2:12 AM
    Hello everyone. I received this message when trying to deploy my EKS stack
    resource urn:pulumi:xxxx-aws-eks-dev-apse2-main::xxxx-aws-eks::kubernetes:core/v1:ConfigMap::authmap refers to unknown provider urn:pulumi:xxxx-aws-eks-dev-apse2-main::xxxx-aws-eks::pulumi:providers:kubernetes::main::4d5c9996-7f15-4da8-8bc8-7279220588c3
    anything i need to look at in particular? Thanks
    b
    • 2
    • 6
  • p

    purple-train-14007

    08/04/2021, 2:28 AM
    Is there a way to bootstrap a project in F# like how we do for C#, Python and TS? Also is there any docs with examples in F#?
    s
    • 2
    • 4
  • b

    boundless-car-60268

    08/04/2021, 8:09 AM
    Hi all, looking at the docs on dynamic resources, it says that .NET isn't supported yet. That's been the case for quite a while. Is that still true? If so, is it something to do with calling the .NET code from the pulumi-resource-pulumi-nodejs? How does it manage it for Python and Go? (Asking in case it's something I could issue a PR for!)
    b
    • 2
    • 3
  • b

    brainy-midnight-57293

    08/04/2021, 10:43 AM
    Hello im trying to install opennebula plugin to work with tf2pulumi, but it returns a HTTP ERROR 403, someone know why it appears or how to solve it?
    error: no resource plugin 'opennebula' found in the workspace or on your $PATH
  • c

    cold-coat-35200

    08/04/2021, 11:06 AM
    Hi, I tried to find a relevant issue (pretty sure it exists somewhere), but I can't, so I ask here, before opening one. During preview, when checking the details, pulumi shows array elements out of order, making it really hard to figure out what changed, especially when trying to import a resource and some property not the same as on the environment. The actual comparison is fine, so if the input/output array is the same, pulumi does not show any difference, so it's only a problem when there is a difference and it tries to show what it is. It happens in multiple languages (ts, go) and multiple resources (e.g.: kubernetes deployment environment, aws rds parametergroup etc), basically anywhere, where a field is an array. Here's a kubernetes example, from a deployment spec:
    ~ spec: {
      ~ template: {
          ~ spec: {
              ~ containers: [
                  ~ [0]: {
                          ~ env: [
                              ~ [0]: {
                                      ~ name : "LOG_LEVEL" => "CLOUDFLARE_CACHE"
                                      ~ value: "debug" => "false"
                                    }
                              ~ [1]: {
                                      ~ name : "AWS_REGION" => "CONFIG"
                                      ~ value: "eu-west-1" => "/.dliver-media-service.yml"
                                    }
                              ~ [2]: {
                                      ~ name : "AWS_BUCKET" => "MEDIA_CACHE_URL"
                                      ~ value: "bucket" => "media-url"
                                    }
                              ~ [3]: {
                                      ~ name : "CLOUDFLARE_API_TOKEN" => "STREAM_CONTROL_HOST"
                                      ~ value: "no-cloudflare-cache-on-dev" => "stream-control"
                                    }
                              ~ [4]: {
                                      ~ name : "CLOUDFLARE_CACHE" => "LOG_LEVEL"
                                      ~ value: "false" => "debug"
                                    }
                              ~ [5]: {
                                      ~ name : "CLOUDFLARE_ZONE_ID" => "AWS_REGION"
                                      ~ value: "no-zone-id-on-dev" => "eu-west-1"
                                    }
                              ~ [6]: {
                                      ~ name : "CONFIG" => "CLOUDFLARE_API_TOKEN"
                                      ~ value: "/.dliver-media-service.yml" => "no-cloudflare-cache-on-dev"
                                    }
                              ~ [7]: {
                                      ~ name : "IMAGE_PROCESSOR_HOST" => "REDIS_CACHE_HOST"
                                      ~ value: "image-processor" => "redis-cache"
                                    }
                              ~ [8]: {
                                      ~ name : "MEDIA_CACHE_URL" => "REDIS_CACHE_DATABASE"
                                      ~ value: "media-url" => "7"
                                    }
                              ~ [9]: {
                                      ~ name : "STREAM_CONTROL_HOST" => "JWT_SECRET"
                                      ~ value: "stream-control" => "[secret]"
                                    }
                              ~ [10]: {
                                      ~ name : "REDIS_CACHE_HOST" => "AWS_BUCKET"
                                      ~ value: "redis-cache" => "bucket"
                                    }
                              ~ [11]: {
                                      ~ name : "REDIS_CACHE_DATABASE" => "CLOUDFLARE_ZONE_ID"
                                      ~ value: "7" => "no-zone-id-on-dev"
                                    }
                              ~ [12]: {
                                      ~ name : "JWT_SECRET" => "IMAGE_PROCESSOR_HOST"
                                      ~ value: "[secret]" => "image-processor"
                                    }
                            ]
                        }
                ]
            }
        }
    }
    I reordered the list manually and the env values were the same... So on top of that, I don't know why it thinks they are different, making it hard to figure out which one is the actual field with the wrong value. 🙂
  • a

    agreeable-ram-97887

    08/04/2021, 12:18 PM
    is there a way to allow for
    pulumi preview
    on a project which requires a CipherKey (in my case, used to encrypt user passwords), but where the one invoking
    preview
    does not have access to the Key?
    • 1
    • 2
  • s

    sparse-apartment-71989

    08/04/2021, 2:57 PM
    Last night, I did a talk introducing serverless, IaC, and Pulumi for our St. Louis Serverless Meetup. One of the attendees contacted me this morning to say, “After the meeting, I installed Pulumi, created a Kubernetes cluster, database, and created a K8s secret. The documentation on the Pulumi site was excellent.” Kudos to all the Pulumi contributors, both in code and documentation!
    🙌 1
    💯 2
    b
    b
    • 3
    • 2
  • a

    alert-mechanic-59024

    08/04/2021, 3:01 PM
    Heya all! Hope everyone is having a power day. Any details regarding when Pulumi is likely to produce an ‘Oracle’ Cloud Provider?
    b
    • 2
    • 1
  • s

    sparse-apartment-71989

    08/04/2021, 5:04 PM
    As part of my talk last night to St. Louis Serverless about Pulumi, I covered Config, particularly the Secrets part of it. I was amazed, and thoroughly impressed with how hard it was to leak a secret out. I was using Typescript, so of course I showed exporting the secret as an Output and
    console.log()
    . Then I tried using
    someSecret.substring(0)
    and
    someSecret.substring(0, someSecret.length)
    and it wouldn’t leak. Then I tried outputting
    someSecret.concat('zzz')
    and was amazed to see
    [secret]zzz
    output. Well done to whoever wrote the interceptor(s) to catch leaking secrets and help prevent their escaping!
    ❤️ 5
    🙌 1
    g
    • 2
    • 1
  • d

    dazzling-city-47565

    08/04/2021, 7:28 PM
    I’m trying to split up an existing stack, but am running into an issue importing
    RandomPassword
    resources. Is there a way to transfer a RandomPassword resource from one stack to another? I’m not having much luck with
    pulumi import
    , and I’m unable to copy the resource from the state file without reencrypting the ciphertext somehow..
    g
    • 2
    • 3
  • b

    bland-engine-38972

    08/04/2021, 7:36 PM
    I am new here. Hello everyone.
    👋🏻 1
    👋 7
    b
    • 2
    • 1
  • b

    brainy-midnight-57293

    08/05/2021, 9:56 AM
    Someone knows about this error?
    error: no resource plugin 'opennebula' found in the workspace or on your $PATH
    g
    • 2
    • 5
  • q

    quick-apartment-79350

    08/05/2021, 10:03 AM
    Hi, I'm a new user of Pulumi, is possible to doin configuration management with pulumi ? Such as install mariadb and so on ?
    g
    • 2
    • 4
  • m

    modern-toothbrush-56347

    08/05/2021, 12:20 PM
    Hi, quick question: How do you use an output as a string? e.g. I create a VM, and one of its outputs is its Public IP address (or DNS name). I then want to load an XML file and insert the Public IP into the file and use that in the next step. I can't do this because XML manipulation (or even search/replace) operations require strings and an Output is not a string. Any ideas?
    b
    l
    b
    • 4
    • 7
  • a

    ancient-eve-13947

    08/05/2021, 1:28 PM
    is there a way to tell pulumi in special cases to NOT delete resources? background: I'm uploading binaries to (Azure) blob storage, their name containing a timestamp. When I upload a new binary, I really don't want the old binary to be deleted, I just want to add a new one.
    g
    p
    • 3
    • 21
  • r

    rapid-iron-52715

    08/05/2021, 3:00 PM
    When I export a stack to json, remove resources from the json and try to import it later, no changes are shown, what could be the reason for this?
    p
    • 2
    • 23
  • r

    rapid-iron-52715

    08/05/2021, 3:18 PM
    btw. are there any articles around the serialization part of pulumi?
  • r

    rapid-iron-52715

    08/05/2021, 3:18 PM
    I'm fidding around with dynamic providers for a week now and still hit some edge cases
  • r

    rapid-iron-52715

    08/05/2021, 3:19 PM
    took me days to figure out it doesn't like undefined values
  • r

    rapid-iron-52715

    08/05/2021, 3:19 PM
    and a few hours to find out that Object.create(null) isn't a good idea
Powered by Linen
Title
r

rapid-iron-52715

08/05/2021, 3:19 PM
and a few hours to find out that Object.create(null) isn't a good idea
View count: 1