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

    thousands-london-78260

    03/14/2020, 8:44 PM
    Is it possible to ignore parts of the stack update? I’ve just merged a bunch of differrent stacks into one “monostack/repo” because it’s operationally much easier. But sometimes I make some changes to certain classes and I first only want to apply those updates to a certain subset of resources (for instance “staging” resources). Right now I need to diff the
    pulumi up
    and then manually select and set
    --target
    or
    --target-replace
    . Would be much easier if I could specify a
    --ignore
    where I can specify a parent URN and then it and all it’s children won’t get any changes applied. Reason I don’t want different stacks is because staging/production are linked together via a service mesh which bridges between the two and does some cool stuff, so having them in the same
    pulumi up
    command to manage is much easier.
    w
    • 2
    • 5
  • s

    sparse-intern-71089

    03/15/2020, 7:39 AM
    This message was deleted.
    s
    w
    • 3
    • 4
  • r

    rapid-lamp-57703

    03/16/2020, 10:01 AM
    Hi all, I am looking at simple pulumi c#/azure - want to enable static website for a deployed storage account. I see that the 'Account' type has a StaticWebsite property which accepts (somehow the index/error page) - but i found an example online that say you can't set the static page this way. any tips? if you can't set here, why is it exposed?
    t
    • 2
    • 6
  • f

    faint-tent-51986

    03/16/2020, 11:08 AM
    Is there a way to specify the version of the plugin resource provider to be used. If you do
    pulumi preview , it downloads the latest version of plugin in ~/. *pulumi*/*plugins. I have a older version of the plugin* resource-aws-v1.24.0 and I want to use that. Any docs on how to specify constraints.
    g
    • 2
    • 2
  • r

    rapid-lamp-57703

    03/16/2020, 11:12 AM
    anyone know how to do this: 'Source = $"./wwwroot/{file}", In the new azure 2.1 world? getting: Cannot implicitly convert type 'string' to 'Pulumi.Input<Pulumi.AssetOrArchive>' - it really isn't clear how to create a AssetOrArchive in this auto generated code.
    t
    • 2
    • 2
  • e

    elegant-crayon-4967

    03/16/2020, 6:59 PM
    does anyone know how to get an existing security group and remove existing rules in it? I can only seem to add more rules
    e
    • 2
    • 3
  • c

    cool-egg-852

    03/16/2020, 9:44 PM
    How do I use the
    kong
    helm charts that do something like:
    {{- if .Capabilities.APIVersions.Has "<http://admissionregistration.k8s.io/v1|admissionregistration.k8s.io/v1>" }}
    apiVersion: <http://admissionregistration.k8s.io/v1|admissionregistration.k8s.io/v1>
    {{- else }}
    apiVersion: <http://admissionregistration.k8s.io/v1beta1|admissionregistration.k8s.io/v1beta1>
    {{- end }}
    The issue is that
    pulumi
    doesn’t seem to have a way to make that first condition false.
    g
    • 2
    • 4
  • c

    cool-egg-852

    03/16/2020, 9:58 PM
    Also, is there any update on https://github.com/pulumi/pulumi/pull/3893 or another PR that changes pulumi to helm 3?
    g
    • 2
    • 6
  • b

    better-rainbow-14549

    03/17/2020, 9:38 AM
    writing a dynamic provider and i'm getting
    Method handler getSchema for /pulumirpc.ResourceProvider/GetSchema expected but not provided
    which i've not seen before - any pointers please?
    w
    • 2
    • 2
  • b

    bitter-toddler-22112

    03/17/2020, 12:45 PM
    Hey guys! I have one stack where I create an AWS RDS cluster and export its writer endpoint as an output variable. In another stack I fetch the output and want to pass the RDS writer endpoint as an DB connection string to a k8s job. No matter what I do, pulumi does not print the value of the output variable but "Calling [toString] on an [Output<T>] is not supported." What am I doing wrong? Note that using "apply" is not working also because its return type is Output<string>, so the problem remains. Any hint is highly appreciated
    f
    • 2
    • 7
  • b

    better-rainbow-14549

    03/17/2020, 1:31 PM
    i'm also getting
    unexpected struct type
    trying to return a generated output from a dynamic provider... any ideas?
    w
    • 2
    • 8
  • r

    rapid-lamp-57703

    03/17/2020, 1:59 PM
    I've got an oddity, i have 2 projects, in one of them i am able to create a storage account and deploy files to it, in the other i can not.
    Untitled
    t
    • 2
    • 6
  • r

    rapid-lamp-57703

    03/17/2020, 2:00 PM
    anyone got any suggestions as to why?! i have piece meal copied code between the two..
  • t

    tall-monitor-77779

    03/17/2020, 6:56 PM
    guys,
    pulumi preview
    has a
    --json
    flag but
    pulumi up
    doesn't, what did I miss?
    • 1
    • 1
  • n

    narrow-cat-84237

    03/17/2020, 9:15 PM
    Hi All, first day with Pulumi and pretty impressed so far. I've hit a brick wall with the Azure module and C# though ... how can I pull back the Azure Subscription ID? I found documentation on getClientConfig and getSubscription and though they might help but I haven't worked out how to call them?
    t
    • 2
    • 2
  • c

    calm-quill-21760

    03/18/2020, 12:17 AM
    I keep hitting situations where I want to access values from an object and hitting the dreaded "Calling [toJSON] on an [Output<T>] is not supported". For the most part I've learned to reference the object and let Pulumi figure it out. But now I've hit a situation where that doesn't seem to work:
    let secretsToStore = {
                        "username": rdsInstance.username,
                        "password": password.result,
                        "engine": rdsInstance.engine,
                        "port": rdsInstance.port,
                        "dbname": rdsInstance.name,
                        "dbInstanceIdentifier": rdsInstance.identifier
                    };
    
                    const storedPassword = new aws.secretsmanager.SecretVersion(dbName + "_password", {
                        secretId: rotation.id,
                        secretString: JSON.stringify(secretsToStore)
                    });
    The secretsToStore object ends up with a bunch of "Calling [toJSON] on an [Output<T>] is not supported" strings. What's the proper way to handle this?
    f
    • 2
    • 45
  • f

    famous-salesmen-28835

    03/18/2020, 4:02 AM
    Hi team I have created deb package of my code where I am using all dependency but still I am getting this error
    Previewing update (pulumi-test): 
    
        pulumi:pulumi:Stack pulumi-test-pulumi-test  Traceback (most recent call last): 
        pulumi:pulumi:Stack pulumi-test-pulumi-test    File \"/root/.pulumi/bin/pulumi-language-python-exec\", line 14, in <module> 
        pulumi:pulumi:Stack pulumi-test-pulumi-test      import pulumi 
        pulumi:pulumi:Stack pulumi-test-pulumi-test  ImportError: No module named 'pulumi' 
        pulumi:pulumi:Stack pulumi-test-pulumi-test  It looks like the Pulumi SDK has not been installed. Have you run pip install? 
        pulumi:pulumi:Stack pulumi-test-pulumi-test  If you are running in a virtualenv, you must run pip install -r requirements.txt from inside the virtualenv. 
        pulumi:pulumi:Stack pulumi-test-pulumi-test  error: an unhandled error occurred: Program exited with non-zero exit code: 1 
        pulumi:pulumi:Stack pulumi-test-pulumi-test  1 error; 6 messages 
    
    Diagnostics: 
      pulumi:pulumi:Stack (pulumi-test-pulumi-test): 
        Traceback (most recent call last): 
          File \"/root/.pulumi/bin/pulumi-language-python-exec\", line 14, in <module> 
            import pulumi 
        ImportError: No module named 'pulumi' 
        It looks like the Pulumi SDK has not been installed. Have you run pip install? 
        If you are running in a virtualenv, you must run pip install -r requirements.txt from inside the virtualenv. 
    
        error: an unhandled error occurred: Program exited with non-zero exit code: 1
    If I go and check my python env then I am not getting any import error
    root@b43ba04ea07e:/# /opt/ns/python-apps/resourcecreation/app-env/bin/python                                                                                                  
    Python 3.7.4 (default, Sep  2 2019, 20:44:09) 
    [GCC 5.4.0 20160609] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import pulumi
    >>>
    In this I am not getting this error but I have created API which will call the CLI so I am executing my code on my machine
    /opt/ns/python-apps/resourcecreation/app-env/bin/python /opt/ns/python-apps/resourcecreation/app-env/lib/python3.7/site-packages/resourcecreation/app.py
    Then I am getting error So Can any one tell me is it any way that while calling pulumi commands I point my python binary instead of taking machine default binary?
  • f

    faint-table-42725

    03/18/2020, 4:30 AM
    we recommend using virtual envs — it looks like you’re already using one
  • f

    faint-table-42725

    03/18/2020, 4:30 AM
    in which case, you should run pulumi within that virtual env shell
  • f

    famous-salesmen-28835

    03/18/2020, 8:05 AM
    Thanks @faint-table-42725 I will try that, it worked
    you can set the PULUMI_PYTHON_CMD environment variable to python3
    This I forgot to do it due to which I am getting these errors
  • f

    famous-salesmen-28835

    03/18/2020, 8:09 AM
    I got one more error while calling plum destroy
    -  aws:s3:Bucket mytestbucketkmltest2 deleting  
     -  aws:s3:Bucket mytestbucketkmltest2 deleting error: deleting urn:pulumi:pulumi-test::pulumi-test::aws:s3/bucket:Bucket::mytestbucketkmltest2: error deleting S3 Bucket (mytestbucketkmltest2): BucketNotEmpty: The bucket you tried to delete is not empty 
     -  aws:s3:Bucket mytestbucketkmltest2 **deleting failed** error: deleting urn:pulumi:pulumi-test::pulumi-test::aws:s3/bucket:Bucket::mytestbucketkmltest2: error deleting S3 Bucket (mytestbucketkmltest2): BucketNotEmpty: The bucket you tried to delete is not empty 
        pulumi:pulumi:Stack pulumi-test-pulumi-test  error: update failed 
        pulumi:pulumi:Stack pulumi-test-pulumi-test **failed** 1 error
    So Any one any idea to delete forcefully from pulumi
    f
    • 2
    • 1
  • r

    rapid-lamp-57703

    03/18/2020, 8:55 AM
    Hi guys - I'm like a dog with a bone sometimes.. Just experimenting... and i wondered.. ok so i can upload a folder full of arbitary files - fine - but what if i wanted to output and array of the Uri strings... so I am trying to create an [Output] of type Immutable Array. I've tried shoving all sorts into it.. now I am just trying static test to POC it.. but it still doesn't work.
    [Output]
    public Output<ImmutableArray<string>> UploadedUri { get; set; } = Output.Create(ImmutableArray.Create<string>("123"));
    Any tips or pointers? how do i get an array of things? I've seen dictionary before.. but not list/array.
    t
    • 2
    • 15
  • r

    rapid-lamp-57703

    03/18/2020, 12:17 PM
    how do i access the value behind an Output?
    b
    w
    m
    • 4
    • 9
  • w

    wet-sunset-4939

    03/18/2020, 2:11 PM
    Hi All, Just quick check. How could we setup the custom key vault encryption for Azure Storage account using Pulumi?
    b
    • 2
    • 1
  • a

    acoustic-leather-88378

    03/18/2020, 3:53 PM
    Hi all, I'm trying to install a Helm chart with Pulumi that is the equivalent of:
    $ helm install postgres-operator <https://opensource.zalando.com/postgres-operator/charts/postgres-operator/postgres-operator-1.4.0.tgz> -f <https://opensource.zalando.com/postgres-operator/charts/postgres-operator/values-crd.yaml>
    however, looking at https://www.pulumi.com/docs/guides/adopting/from_kubernetes/#provisioning-a-helm-chart and the available options I'm not sure how to achieve that? (Using the direct
    .tgz
    reference) The chart is not in a repo, see https://github.com/zalando/postgres-operator/issues/552#issuecomment-521193807
    b
    • 2
    • 4
  • b

    bitter-dentist-28132

    03/18/2020, 8:09 PM
    is there a way to cache the pulumi plugins? it seems npm is wiping out the cache from my CI:
    npm ci
    npm WARN prepare removing existing node_modules/ before installation
    l
    f
    • 3
    • 11
  • g

    green-morning-1318

    03/18/2020, 8:31 PM
    Hi y’all! I probably broke something, but I’m not too sure what I broke 🤔
    $ pulumi --help
    error: program failed: missing project name
    So when I run any pulumi command, regardless of whether I run the command in a folder with a proper Pulumi config I get the error
    missing project name
    .
    l
    w
    • 3
    • 7
  • b

    bitter-zebra-93800

    03/18/2020, 8:33 PM
    Is Go support official yet or is that 2.0?
    w
    • 2
    • 2
  • p

    prehistoric-account-60014

    03/18/2020, 9:15 PM
    If one wanted to bring a Terraform provider over to Pulumi using tfgen, where would be the best place to start?
    f
    b
    • 3
    • 5
  • a

    acoustic-leather-88378

    03/18/2020, 9:17 PM
    As mentioned here: https://pulumi-community.slack.com/archives/C84L4E3N1/p1584566065146800?thread_ts=1584546795.134700&amp;cid=C84L4E3N1
    • Using
    k8s.yaml.ConfigGroup
    it seems that the state is tied to the directory location of the
    files
    . If the location of the
    files
    changes it's seen as a state update (deletes and recreates). Is this by design or am I missing something? Doesn't that force a consistent location for the manifests?
    Am I missing something or is that how https://www.pulumi.com/docs/guides/adopting/from_kubernetes/#deploying-multiple-kubernetes-yaml-files works?
Powered by Linen
Title
a

acoustic-leather-88378

03/18/2020, 9:17 PM
As mentioned here: https://pulumi-community.slack.com/archives/C84L4E3N1/p1584566065146800?thread_ts=1584546795.134700&amp;cid=C84L4E3N1
• Using
k8s.yaml.ConfigGroup
it seems that the state is tied to the directory location of the
files
. If the location of the
files
changes it's seen as a state update (deletes and recreates). Is this by design or am I missing something? Doesn't that force a consistent location for the manifests?
Am I missing something or is that how https://www.pulumi.com/docs/guides/adopting/from_kubernetes/#deploying-multiple-kubernetes-yaml-files works?
View count: 1