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

    fierce-beach-49649

    04/23/2020, 12:15 PM
    Hey, I'm getting the following error when trying to deploy a helm chart:
    kubernetes:helm.sh:Chart (ig-traefik):
        error: Pulumi.ResourceException: The system cannot find the file specified.
           at Pulumi.Kubernetes.Helm.ChartBase.<>c__DisplayClass0_0.<.ctor>b__1(ValueTuple`2 values)
           at Pulumi.Output`1.ApplyHelperAsync[U](Task`1 dataTask, Func`2 func)
           at Pulumi.Output`1.Pulumi.IOutput.GetDataAsync()
           at Pulumi.Serialization.Serializer.SerializeAsync(String ctx, Object prop)
           at Pulumi.Deployment.SerializeFilteredPropertiesAsync(String label, IDictionary`2 args, Predicate`1 acceptKey)
           at Pulumi.Deployment.SerializeAllPropertiesAsync(String label, IDictionary`2 args)
           at Pulumi.Deployment.RegisterResourceOutputsAsync(Resource resource, Output`1 outputs)
           at Pulumi.Deployment.Runner.WhileRunningAsync()
    I have pulumi 2.0.0 and the latest nuget packages.
  • f

    fierce-beach-49649

    04/23/2020, 12:15 PM
    This is the code
    var igTraefik = new Chart("ig-traefik", new ChartArgs
            {
                Namespace = "ig-system",
                Chart = "traefik",
                Repo = "stable",
                Values = new InputMap<object>
                {
                    {"kubernetes.ingressEndpoint.useDefaultPublishedService", true},
                    {"rbac.enabled", true},
                    {"imageTag", "1.7.11"}
                }
            });
  • w

    wonderful-dog-9045

    04/23/2020, 12:25 PM
    given an object with multiple
    Output
    fields:
    type Config = { 
       someValue: Ouput<string>,
       otherValue: string,
       andSomeMoreValues: Output<object>,
    }
    Does pulumi private and helper function that that would in this particular case would do:
    function helperFunction(config: Config) => Output<{
      someValue: string,
      otherValue: string,
      andSomeMoreValues: string,
    }>
    so that i don't have to make a messy convolution of
    .apply()
    calls?
    g
    • 2
    • 5
  • c

    cold-coat-35200

    04/23/2020, 12:35 PM
    Hi, in the vault provider, is it possible to set the default
    max_versions
    option for a kv secret engine? the following does not work:
    new vault.Mount(name,{
        type: 'kv-v2',
        path: "something",
        options: {
            max_versions: 100
        }
    })
    that's the only way I found, can't see any related resource or option for the config endpoint: https://www.vaultproject.io/api-docs/secret/kv/kv-v2#configure-the-kv-engine
    • 1
    • 1
  • c

    clever-crowd-18899

    04/23/2020, 3:12 PM
    Hi I am really Enjoying Pulumi, thanks for the team and others involved for making this great job. I have a question about using Pulumi for my needs, I want to configure Istio in a GCP K8s using Pulumi. I already acomplished configuring Kubernetes cluster in GCP, and for Istio I don't want to use Helm, because Istio is dropping helm in 1.6. Now they instruct you to use istioclt that is a CLI to install Istio. So I want to know if the following is possible and safe: is it possible to use Pulumi to configure a cluster , then install Istio with istioclt and then apply the k8s manifests that needs istio using Pulumi again? If not, is there another way ?
    c
    g
    o
    • 4
    • 16
  • a

    acceptable-army-69872

    04/23/2020, 3:36 PM
    https://www.pulumi.com/docs/get-started/install/#manual-installation links to https://pulumi.com/docs/install/ which is a 404.
    👍 1
    g
    • 2
    • 1
  • p

    plain-cat-88025

    04/23/2020, 3:43 PM
    Hi, I'm just getting started with Pulumi and interested in the new testing feature with Python. I went through the docs, but the tutorial is failing when I add an export. Has anyone else tried this? I thought it might be a bug, so here's an issue that describes what I'm seeing in more detail: https://github.com/pulumi/pulumi/issues/4478
  • c

    cool-egg-852

    04/23/2020, 4:22 PM
    How are you all handling env vars for your application? Do you set the value directly in the ConfigMap and rely upon git to handle different environments, do you use Pulumi configuration and reference that? Trying to figure out how to allow for env var overriding in our Review Apps (PR based deployments).
  • w

    witty-vegetable-61961

    04/23/2020, 4:58 PM
    Hi Guys, I have a question: I am looking to use Pulumi for AWS in C#. I will need to provision EKS, S3, Lambda functions, Dynamo db, etc. I understand that stacks are per environment (Dev, test, prod etc), but surely each stack won't be the same code repeated? The code should be defined once (i.e. the provisioning of the resources). Does Pulumi have an equivalent concept to Terraform modules? So a module may exist for a VPC and with its inputs that you just call from a project, rather than writing the code itself.
    g
    • 2
    • 4
  • h

    helpful-processor-86468

    04/23/2020, 5:11 PM
    Why is my stack on google cloud being randomly deleted/moved to backup?
    g
    b
    • 3
    • 5
  • a

    acoustic-river-98339

    04/23/2020, 5:35 PM
    Hi I'm trying to import a stack from a local pulumi to Pulumi SaaS. I've exported the old stack to a json file called. test.json I'm then running pulumi stack import --file "test.json" but getting error: invalid character 'ÿ' looking for beginning of value
    w
    • 2
    • 3
  • l

    limited-rainbow-51650

    04/23/2020, 7:01 PM
    If I create a custom
    ComponentResource
    abstracting a set of regular resources, I use this abstraction in the stacks where the resources need to be created. But I also have stacks where the abstracted resources need to be used as inputs. Does Pulumi allow to implement a data source for my ComponentResource that provides an abstraction for the set of data sources?
    g
    • 2
    • 2
  • g

    gray-yak-9058

    04/23/2020, 11:36 PM
    Hey everyone, I am trying to get CircleCI setup with pulumi. I am trying to execute the command
    pulumi preview --stack main
    , but I am getting this error:
    error: failed to load checkpoint: blob (key ".pulumi/stacks/main.json") (code=Unknown): MissingRegion: could not find region configuration
    I am running CircleCI locally like this:
    circleci local execute \
    --job build \
    -e AWS_ACCESS_KEY_ID=<redacted>\
    -e AWS_SECRET_ACCESS_KEY=<redacted> \
    -e AWS_REGION=us-east-1
    I'm also using aws as my backend.. any idea why I would be getting this error about a missing region configuration when I am clearly passing in the region as an environment variable?
    w
    • 2
    • 3
  • p

    polite-student-92901

    04/24/2020, 6:11 AM
    Hi Pulumi team, I'm keep getting this error message when I run
    pulumi up
    from my local for GCP project
    Diagnostics:
      gcp:storage:BucketObject (metadata-func-zip):
        error: Error uploading object metadata-func-zip-7361f3c: Post <https://www.googleapis.com/upload/storage/v1/b/source-prod-0b3010d/o?alt=json&name=metadata-func-zip-7361f3c&prettyPrint=false&uploadType=resumable&upload_id=AAANsUlDMiMgbtovO9tV-WBAxeoUNUIpdnXUep2V6FZYkqd-vNiOKgVOz-rtsmUhHuxDPC9ggFzORAocsOGtyEet_lg>: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
    The source code is:
    const bucketObjectMetadata = new gcp.storage.BucketObject('metadata-func-zip', {
      bucket: sourceBucket.name,
      source: new pulumi.asset.AssetArchive({
        '.': new pulumi.asset.FileArchive('../functions/metadata')
      })
    })
    Anyone can help to resolve the error? Thanks.
    w
    • 2
    • 2
  • e

    elegant-dusk-37631

    04/24/2020, 6:50 AM
    Hi! Any tips on how to supply userData to AWS ECS instances? I've got ecsCluster.createAutoScalingGroup() and when I pass userData in the launchConfiguration, the original ECS-specific userData is lost and my cluster doesn't start
    w
    a
    • 3
    • 2
  • c

    chilly-terabyte-21485

    04/24/2020, 10:04 AM
    Hi there
  • c

    chilly-terabyte-21485

    04/24/2020, 10:06 AM
    I'm getting some troubles with config module http://codebin.herokuapp.com?s=5ea2ba040fce9c0004000001
  • c

    chilly-terabyte-21485

    04/24/2020, 10:06 AM
    anyone got this kind of issue ?
    w
    • 2
    • 1
  • f

    faint-motherboard-95438

    04/24/2020, 10:51 AM
    How one is supposed to query nested properties with the CLI in a stack output ? I have an output like:
    OUTPUT           VALUE
    componentProps   {"foo": "something", "bar": "whatever", ...}
    And I want to get it like
    pulumi stack output componentProps.foo
    or
    pulumi stack output componentProps:foo
    but didn’t find the right way to do it. Obviously I can do a
    pulumi stack output componentProps | jq -r '.foo'
    but I was wondering if there was a “native” way in
    pulumi
    CLI to do it (and avoid the
    jq
    dependency)
    w
    • 2
    • 1
  • s

    steep-angle-29984

    04/24/2020, 11:53 AM
    I implemented a ComponentResource which creates some other resources including a gcp.container.Cluster and a k8s.Provider from this cluster. Now I'm searching for a way to add this provider to the ComponentResources providers so that all child resources of my ComponentResource will use the k8sProvider. Is that possible or to I have to provide my new ComponentResource as parent and the k8s.Provider as provider to all child resources. This feels a little bit redundant to me. Is there a way to register providers for a ComponentResource?
    f
    • 2
    • 6
  • h

    helpful-processor-86468

    04/24/2020, 11:57 AM
    Is there a way that I can mark a resource to be created only once and not deleted by
    pulumi destroy
    ? I have a cloud endpoint resource that is causing problems when it's deleted.
    c
    w
    w
    • 4
    • 3
  • m

    mysterious-australia-14256

    04/24/2020, 12:15 PM
    Can anyone point me in the right direction for information on managing projects and stacks hosted in the cloud? I have an Azure Storage Account hosting a storage container called pulumi that I want to hold multiple projects and allow the use of StackReference between projects. On my first attempt, I ran "pulumi login azblob://pulumi" I could successfully create a new project (with a stack called dev) which set up .pulumi folder in my cloud storage and life was good. I then tried to create a second project, using the same cloud storage, also with a stack called dev I got a warning that a stack with that name already existed. This seems to be because projects aren't stored in subfolders within .pulumi. I could force differences by including project names in stack names but that would get ugly quickly. On my next attempt I ran "pulumi login azblob://pulumi/project1". That initially worked well and I could then create a second project with overlapping stack names by running "pulumi login azblob://pulumi/project2" before creating the project. Each project folder within my cloud storage now has its own .pulumi folder. This is a bit of a pain as I now have to run pulumi login when I switch between projects and I haven't been able to find a way to get StackReference to work so that Project2 can refer to Project1. What is the correct way to do this? Ideally I would like to be able to have a single .pulumi folder with subfolders for each project and their own stacks managed inside them. Also what is the correct way to use a StackReference between cloud hosted projects? Thanks Alan
    c
    w
    • 3
    • 4
  • s

    steep-angle-29984

    04/24/2020, 2:16 PM
    What's the idea behind ComponentResource.initialize(), ComponentResource.getData() and the generic TData type? A realworld example would also be useful.
    f
    • 2
    • 3
  • c

    cuddly-secretary-5371

    04/24/2020, 3:17 PM
    Hi!
    👋 4
  • i

    important-morning-41038

    04/24/2020, 9:24 PM
    Hi, I'm looking for cdn custom domain resource in C#? Is that supported?
    w
    • 2
    • 2
  • a

    able-zoo-58396

    04/24/2020, 11:55 PM
    Hi. I'm getting a new error with Pulumi 2. My existing projects are still able to deploy correctly, but I just installed a fresh new project using Pulumi 2 and the
    aws-javascript
    template, and every time I try to run
    pulumi up
    or
    pulumi preview
    it fails with this error:
    error: an unhandled error occurred: Program exited with non-zero exit code: -1
     
        /usr/local/bin/node[9740]: ../src/env.cc:435:virtual node::Environment::~Environment(): Assertion `(base_object_count()) == (0)' failed.
         1: 0x100b8ff9a node::Abort() (.cold.1) [/usr/local/bin/node]
         2: 0x1000832c4 node::FatalError(char const*, char const*) [/usr/local/bin/node]
         3: 0x10008307c node::AppendExceptionLine(node::Environment*, v8::Local<v8::Value>, v8::Local<v8::Message>, node::ErrorHandlingMode) [/usr/local/bin/node]
         4: 0x10003e4bc node::Environment::~Environment() [/usr/local/bin/node]
         5: 0x10003e606 node::Environment::~Environment() [/usr/local/bin/node]
         6: 0x1000b4ac2 node::NodeMainInstance::Run() [/usr/local/bin/node]
         7: 0x100060f13 node::Start(int, char**) [/usr/local/bin/node]
         8: 0x7fff71d33cc9 start [/usr/lib/system/libdyld.dylib]
    Even if I remove all of the actual resources so it has nothing to deploy, it will still crash on the preview. Basically, it never gets to the state where it asks me to proceed or not. Any reports of something like this?
    g
    • 2
    • 2
  • g

    gray-yak-9058

    04/25/2020, 3:51 PM
    Is it not possible to have multiple projects when using the aws backend? When I try to create a second project with a stack named the same as a stack in my first project, I get an error about the stack already existing.
    w
    • 2
    • 6
  • f

    fancy-ice-8211

    04/26/2020, 5:16 AM
    Does anyone have a working codepipeline example in python? I've tried to translate https://www.pulumi.com/docs/reference/pkg/aws/codepipeline/pipeline/ and get a very unhelpful
    TypeError: startswith first arg must be bytes or a tuple of bytes, not str
    So I guess I'm doing something wrong with the config, but I can't see it (fixed, see thread).
    m
    • 2
    • 3
  • e

    eager-vase-43200

    04/26/2020, 6:57 AM
    Hello everyone. I learnt about pulumi recently and would like to switch over from terraform. I am a developer who happens to also manage infrastructure. So, I hope that answers why pulumi. I just started working on mmigrating my gcp -> gke infrastructure management from terraform to pulumi using python sdk. The first problem I ran into this evening is that, I use two different gcp service accounts for terrform backend state management and infrastructure management. Looks like I can not do that in pulumi or can I?
  • c

    cuddly-lizard-88530

    04/26/2020, 7:36 AM
    Any general tips for sharing high level definitions (e.g. VPC) across multiple repos / projects? E.g. one VPC may have several deployments in it, from different code bases. I think this can simply be done with internal NPM modules. But I am wondering if there is another, maybe a better, way?
    w
    • 2
    • 2
Powered by Linen
Title
c

cuddly-lizard-88530

04/26/2020, 7:36 AM
Any general tips for sharing high level definitions (e.g. VPC) across multiple repos / projects? E.g. one VPC may have several deployments in it, from different code bases. I think this can simply be done with internal NPM modules. But I am wondering if there is another, maybe a better, way?
w

white-balloon-205

04/26/2020, 4:11 PM
If you have a VPC that needs to be used in several apps, you can split into separate stacks, one for the VPC layer and others for each app. Then use StackReference from the apps to refer to the outputs of the VPC. See https://www.pulumi.com/docs/intro/concepts/organizing-stacks-projects/. If you have code (not resources) that you want to share across multiple apps (like you have a pattern for how those apps should configure k8s resources), then you could definitely use shared NPM modules for that.
c

cuddly-lizard-88530

05/01/2020, 4:23 AM
Cool, thanks!
View count: 1