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
getting-started
  • s

    strong-gold-74444

    09/23/2021, 3:17 PM
    I’ve noticed that if I do a
    pulumi up
    and get a summary of proposed changes, then modify the code prior to
    approving
    the changes, the modified changes get put in place instead of the previously proposed changes. Is this expected/normal in the Pulumi world? It is different than what I am accustom to coming from Terraform. Is there a way to preserve the behavior like Terraform, where a specific plan output can be what is approved/applied?
    b
    • 2
    • 7
  • h

    hundreds-airport-37168

    09/23/2021, 6:09 PM
    Hi, when running pulumi through gitlab ci, i get a
    kubernetes:core/v1:Namespace testtest creating error: configured Kubernetes cluster is unreachable: unable to load schema information from the API server: the server has asked for the client to provide credentials
    However running it locally it works fine. I use a google service account both locally and on gitlab ci by exporting
    GOOGLE_CREDENTIALS
    env variable
    b
    • 2
    • 13
  • h

    hundreds-airport-37168

    09/23/2021, 9:02 PM
    Another question, how can i use a private gitlab repository when fetching e.g. kustomization files?
    b
    • 2
    • 4
  • c

    crooked-pillow-11944

    09/24/2021, 1:49 AM
    Is there a way to get all the outputs of a stack from within another stack without knowing the output names/ids?
    d
    e
    g
    • 4
    • 5
  • h

    hundreds-airport-37168

    09/24/2021, 6:44 AM
    Is there any way to read helm charts (or just plain yamls etc) from a private gitlab repository (at gitlab.com)?
  • g

    gentle-postman-94199

    09/24/2021, 9:20 AM
    Hi guys, I was wondering if there is any way to get rid of the “pulumi up” and run everything programatically. I was trying to create a Go library for infrastructure and I was evaluating pulumi, so I was wondering if I could do everything from some function. Is that possible?
    c
    • 2
    • 5
  • b

    better-noon-15962

    09/24/2021, 11:58 AM
    Hi guys, is there an example somewhere of usage of
    [OutputTypeAttribute]
    and
    [OutputConstructorAttribute]
    (c#) ? I'm looking to output stuff in hierarchy. Ex:
    {
      logging: {
        AppInsights: {
          InstrumentationKey: "...",
        },
        ...<other logging stuff>
      },
      ... <other stuff>
    }
    Using ImmutableDictionnary seem to display secrets when executing `pulumi output`😞 Thanks!
    g
    • 2
    • 2
  • s

    sticky-jelly-69198

    09/24/2021, 6:41 PM
    Hey! Is it possible to register custom output? E.g I have
    someString
    and would like to register it with custom name, so that it can be reused on the next run.
    b
    c
    • 3
    • 5
  • l

    lively-glass-9728

    09/26/2021, 4:38 AM
    Hey guys, I’m trying to understand the pricing model for Team plan. Let’s say if I spin up a k8s cluster with 2 nodes on EKS and it runs 24/7. How many resources does it take? and how many credits will I consume?
    s
    • 2
    • 7
  • h

    hundreds-airport-37168

    09/26/2021, 8:08 PM
    Hi, is there any way to get a gcp artifact registry URL? Theres one for the gcp container registry but since google now advice its user to switch to using the artifact registry instead
  • b

    billions-ambulance-7516

    09/28/2021, 5:36 AM
    Hey, Is there any GCP/Rancher2 full creation examples? looking to start from scratch
  • o

    orange-vr-54756

    09/28/2021, 10:42 AM
    Hello Team, Started using pulumi today, whenever i use
    pulumi new gcp-python
    it creates a sample example for gcs bucket, but i dont want that. Is there any different way or this is how pulumi works ??
    p
    • 2
    • 4
  • f

    fierce-electrician-78107

    09/28/2021, 6:34 PM
    Hello. Am I blind or is there no logout/signout action on the https://app.pulumi.com/ site? I need to log out of my personal account and in to my company account.
    d
    b
    • 3
    • 9
  • b

    blue-psychiatrist-96955

    09/29/2021, 4:54 PM
    Hi, is there any support for private github container registries?
    c
    • 2
    • 1
  • s

    square-energy-17741

    09/29/2021, 5:19 PM
    Hi Friends, I am looking into Pulumi for AWS and K8s orchestration. I am wondering what is the recommended approach to work with EKS. I see 2 options -
    from pulumi_aws import eks
    and second one is
    import pulumi_eks as eks
    Which will you recommend?
    d
    p
    • 3
    • 4
  • b

    better-noon-15962

    09/29/2021, 6:44 PM
    Hi guys, I'm using azurekeyvault has secrets-provider. The azurekeyvault which contains the stack key is not in the same tenant/subscription as where the stack is deployed and I'm trying to run
    pulumi cli
    from a pipeline. From what I understand with
    pulumi cli
    (https://www.pulumi.com/docs/intro/concepts/secrets/#azure-key-vault), the secret provider authentication is based on azure environment variables:
    ARM_SUBSCRIPTION_ID
    ARM_CLIENT_ID
    ARM_CLIENT_SECRET
    ARM_TENANT_ID
    is there a un-documented way of having 2 sets of Azure auth ENV. One for secret-provider and second for AzureProvider and deploying the stack? Currently it seem that the
    azurekeyvault
    have to be in the same subscription of where the stack is deployed. Thanks
    👀 1
  • r

    rapid-raincoat-36492

    09/30/2021, 1:45 PM
    How would I run a bash command like
    git rev-parse --abbrev-ref HEAD
    or a webpack command in a pulumi file? Is there a way to run arbitrary shell commands synchronously?
    c
    p
    • 3
    • 9
  • a

    able-doctor-68496

    09/30/2021, 5:46 PM
    I’m cross-posting this from #python, since I think my questions are actually generally applicable.
    h
    • 2
    • 4
  • f

    future-window-78560

    10/01/2021, 3:09 PM
    Hello there, Any guide on how to push docker images to an artifact repository (GCP) using pulumi?
  • i

    important-twilight-35510

    10/01/2021, 3:21 PM
    hey there, i was wondering about choosing language (compiled vs interpreted). to ask if there is a performance difference
  • i

    important-twilight-35510

    10/01/2021, 3:21 PM
    this is me coming from ansible, which is written in python and dog-slow to execute. literally like toffee
  • i

    important-twilight-35510

    10/01/2021, 3:23 PM
    i understand that generally speaking... typescript is the preferred language for pulumi. however i would also like to see some hard performance test comparison to confirm the relative execution speeds of each option. before finally deciding which one to use myself
    b
    a
    d
    • 4
    • 3
  • i

    important-twilight-35510

    10/01/2021, 3:24 PM
    does such comparison already exist out there? as cannot seem to find anything
  • i

    important-twilight-35510

    10/01/2021, 4:19 PM
    it seems would naturally follow my next question here: are all these different language bindings just end up calling down the same calls to be in python underneath? which might make them all approximately the same speed maybe? 👀
    b
    • 2
    • 3
  • c

    calm-kitchen-4682

    10/01/2021, 10:57 PM
    Apologies if this is a trivial question, but is it perhaps possible to somehow generate the Pulumi stack of an existing Kubernetes based infrastructure that was manually created? If not, and I do end up manually coding it in Pulumi, assuming the code matches the infra, when it gets applied would it update the existing non-Pulumi based infrastructure and make it Pulumi managed? Briefly put, how do I turn an existing infrastructure into a Pulumi managed one?
    p
    • 2
    • 1
  • d

    damp-ram-18047

    10/03/2021, 9:32 AM
    Hi there, I’m trying to deploy my backend service on gke, I look up the crosswalk document and github repo, but not sure which one I should follow. In github repo, step 4 need config
    pulumi config set k8s-gke-apps-svcs:clusterStackRef myUser/k8s-gke-cluster/dev-1573601751
    , and this stack
    k8s-gke-cluster
    comes from another repo: 03-cluster-configuration, will I need create a cluster configuration stack as well? Cuz crosswalk document doesn’t mention this part. (BTW, the github repo links in crosswalk gcp document link to aws repo 🤣 )
    b
    • 2
    • 5
  • m

    most-lighter-95902

    10/04/2021, 3:56 PM
    Hi, I’m having trouble using output value of one Docker container (ip address) in another container’s environment variable. There seems to be no way to turn an output value into a string and pulumi.interpolate doesn’t seem to work. Any suggestions?
  • m

    most-lighter-95902

    10/04/2021, 3:59 PM
    const pgContainer = new docker.Container('postgres-container', { ... })
    const apiContainer = new docker.Container('api-container', {
        ...,
        envs: [
            pulumi.interpolate`DB_HOST=${pgContainer.networkDatas[0].gateway}`,
        ]
    }, { dependsOn: [pgContainer] })
    b
    a
    • 3
    • 3
  • d

    damp-accountant-65956

    10/04/2021, 10:51 PM
    need a little help with how to "return" outputs from a component resource and use them in the main package as i'm still getting the error
    error: program failed: waiting for RPCs: rpc error: code = Unknown desc = marshaling properties: awaiting input property vpc: cannot marshal an input of type pulumi.StringOutput with element type string as a value of type pulumi.StringOutput
    ... if I flatten the struct and just return
    StringOutput
    types, i can make it work but if i try and nest a struct, i'm missing something...the
    standardEnvironment.go
    file is in my component resource and
    main.go
    is from the main package where I'm running the CLI Any help / guidance here is appreciated!!
    main.gostandardEnvironment.go
    b
    • 2
    • 6
  • r

    rapid-raincoat-36492

    10/05/2021, 1:51 PM
    Can I dynamically fetch provider credentials from somewhere like Vault?
    g
    • 2
    • 3
Powered by Linen
Title
r

rapid-raincoat-36492

10/05/2021, 1:51 PM
Can I dynamically fetch provider credentials from somewhere like Vault?
g

gentle-diamond-70147

10/05/2021, 4:05 PM
Not for default provider configuration (e.g.
pulumi config set aws:accessKeyId ...
), but you can for explicit providers like below:
const awsProvider = new aws.Provider("main",{
    accessKeyId: vaultClient.getSecret("accessKeyId"),
    // ...
});
That is pseudocode, fyi.
r

rapid-raincoat-36492

10/05/2021, 4:51 PM
great, thank you again 😄
👍 1
View count: 3