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

    clever-plumber-29709

    07/09/2020, 9:11 PM
    message has been deleted
  • m

    melodic-alarm-79754

    07/09/2020, 10:39 PM
    - docker run -i --rm -e PULUMI_ACCESS_TOKEN=$PULUMI_ACCESS_TOKEN -w /app -v $(pwd):/app --entrypoint bash pulumi/pulumi-python -c "pip install -r requirements.txt && pulumi stack select test --non-interactive" ---- error: no Pulumi project found in the current working directory
  • m

    melodic-alarm-79754

    07/09/2020, 10:39 PM
    any idea why is not working ?
    g
    b
    • 3
    • 5
  • r

    rhythmic-napkin-82334

    07/09/2020, 11:20 PM
    Hey all, Is there a way to "deactivate" instead of "pulumi destroy"? Wondering whether there are use cases in which e.g. an eks kubernetes cluster frequently would need to be created and destroyed and therefore would be more time efficient to just activate and deactivate it?
    s
    • 2
    • 3
  • m

    mammoth-caravan-51104

    07/09/2020, 11:51 PM
    Hello friends, small issue, but annoying. I've setup codepipeline with github in a source step. Every time when I run
    up
    pulumi updates the stage definition by adding the oauthtoken. Did I miss something in config? can it be done just once? Thanks
  • l

    limited-solstice-34584

    07/10/2020, 12:12 AM
    anyone know how to make a api gateway mock integration for options?
  • l

    limited-solstice-34584

    07/10/2020, 12:26 AM
    I am at a loss, ive build everything else I need except the cors mock integration to give headers
  • l

    limited-solstice-34584

    07/10/2020, 12:26 AM
    OPTIONS
  • l

    limited-solstice-34584

    07/10/2020, 12:27 AM
    i can make it work using a lambda, but thats gonna get expensive
  • b

    broad-breakfast-39210

    07/10/2020, 8:31 AM
    I'm trying to deploy a Google Cloud Run service connected to a Cloud SQL instance (without a proxy) and I have no idea how to specify the instance connection, it's not documented anywhere...
    gcloud
    SDK has the following flag:
    --set-cloudsql-instances <PROJECT_ID>:<CLOUD_SQL_REGION>:<INSTANCE_ID>
    But I don't know how to pass it with Pulumi... Once Pulumi creates a service (failed to start) I can ass the Cloud SQL instance through the Google Cloud Console manually, but next Pulumi deployment removes that connection šŸ˜ž
    g
    h
    • 3
    • 10
  • m

    millions-intern-37041

    07/10/2020, 2:22 PM
    Could anyone enlighten us on this question? I also wonder which documentation is consistent with the reality in code.
  • m

    millions-furniture-75402

    07/10/2020, 2:23 PM
    Thank you to whoever sped up the search on pulumi.com — I used to have to google search site:pulumi.com because it was so slow.
  • c

    clever-plumber-29709

    07/10/2020, 4:09 PM
    How do i see the messages from
    pulumi.debug("foo")
    ? I tried with
    --verbose 4
    and some higher but is not shown
  • m

    melodic-alarm-79754

    07/10/2020, 4:10 PM
    KUBECONFIG is setup in the pipe , but docker run fails to connect to cluster , "kubernetes:apiextensions.k8s.io:CustomResourceDefinition podmonitors.monitoring.coreos.com creating error: configured Kubernetes cluster is unreachable: unable to load Kubernetes client configuration from kubeconfig file: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable"
  • t

    thousands-train-20124

    07/10/2020, 7:26 PM
    What is the process of updating a stack without having to destroy and rebuild it. I am trying to use
    pulumi up --stack <stack> --yes
    but this gives me an error
    EntityAlreadyExists: A policy called xxx-policy already exists. Duplicate names are not allowed.
    status code: 409,
    . What is the way to avoid this problem and still update the changes to the code. I am using typescript as the language of programming the deployment.
    h
    g
    • 3
    • 9
  • w

    worried-engineer-33884

    07/10/2020, 7:54 PM
    having trouble with a stack reference
    getOutput
    call complaining with:
    error: Preview failed: decrypting secret value: failed to decrypt: incorrect passphrase, please set PULUMI_CONFIG_PASSPHRASE to the correct passphrase
    i have the correct passphrase set for the current project. the stack i’m trying to pull an output from does not set this output as a secret. (i just set foo to test):
    > pulumi stack output
    Current stack outputs (1):
        OUTPUT  VALUE
        foo     zxcv
    g
    • 2
    • 6
  • s

    sparse-article-70164

    07/10/2020, 10:28 PM
    Hello!
  • s

    sparse-article-70164

    07/10/2020, 10:36 PM
    Can someone help me with installing a instance of cert-manager this is what I have so far but it is erroring
    install-cert-manager_ts.ts
    b
    g
    • 3
    • 9
  • l

    late-battery-85849

    07/10/2020, 11:49 PM
    #aws
    s
    b
    • 3
    • 2
  • n

    numerous-artist-1705

    07/12/2020, 6:32 AM
    7.4Ā Ā Ā Ā Pulumi hereby grants you a limited, non-exclusive, royalty-free, non-transferable license, with no right to sub-license, to display the Pulumi trademarks and/or logos (ā€œMarksā€) for the sole purpose of promoting or advertising that you use the Pulumi Services and solely in accordance with Pulumi’s then current Trademark Usage Guidelines, which may be found atĀ https://www.pulumi.com/trademark. You agree that all goodwill generated through your use of the Pulumi Marks shall inure to the benefit of Pulumi.
    I think it's safe to assume I can use Pulumi logo in diagram on GitHub for a GPLv2 project using Pulumi. If not so, please let me know.
  • d

    dazzling-sundown-39670

    07/12/2020, 10:29 AM
    Hello! This is regarding DigitalOcean: I have deployed a cluster to DO but now I'm getting
    warning: configured Kubernetes cluster is unreachable: unable to load schema information from the API server: the server has asked for the client to provide credentials
    when trying to run
    pulumi up
    . On DOs website I can read "Certificates expire after 7 days." and locally I can resolve that with
    doctl kubernetes cluster kubeconfig save use_your_cluster_name
    but how can I make pulumi update the certificates? I tried running
    pulumi refresh
    but that gave me the same error as above.
    b
    • 2
    • 2
  • g

    gray-ambulance-59402

    07/12/2020, 11:10 AM
    Hello community, hoping to see how others do this currently. I had a more general usage question about passing configuration values into Pulumi using .NET/C# (applicable to other languages though) to re-use the same code for multiple environments. It seems there are multiple options available but not sure which one is more "advocated" and better to use. There may not even be a right answer! I currently have multiple different options on a deployment per environment depending on resources required, naming and size of infrastructure etc. so I would like to abstract this as much as possible into configuration. As for the options available, this is what I can see currently: One option would be to have an "Config" class that has a require() for each option to map back to a property. This seems fairly verbose having to write a require on each config value and may not be the most efficient but has the desired effect at the moment.
    public class ClusterOptions
        {
            public ClusterOptions() {
                var config = new Pulumi.Config("MyNamespace");
                Name = config.Require("Name");
                VnetName = config.Require("VnetName");
                ServicePrincipalId = config.Require("ServicePrincipalId");
                ServicePrincipalSecret = config.RequireSecret("ServicePrincipalSecret");
            }
            private string Name { get; }
            private string VnetName { get; }
            private string ServicePrincipalId { get; }
            private Output<string> ServicePrincipalSecret { get; }
        }
    Another option seems to be to use an object deserialised from JSON.
    var config = new Pulumi.Config();
                var clusterConfig = config.RequireObject<ClusterOptions>("ClusterOptions");
    Then I just use a nested configuration block in the yaml config file. This uses less code but the only risk here is that there could be empty configuration values so would be initialised as null so I would need to handle this.
    MyNamespace:ClusterOptions:
        Name: testing
        VnetName: test-vnet
        ServicePrincipalId: principalID
        ServicePrincipalSecret: SuperSecret!
    Or maybe I'm looking at this wrong and I should use hard-coded values in the main stack file and use a simple option to use a different stack file per environment? Using component resources allows code re-use so the stacks should be fairly small in code size. Let me know how you handle this currently!
    šŸ‘€ 1
    h
    • 2
    • 2
  • b

    bright-policeman-55860

    07/12/2020, 4:43 PM
    Hi, I know that I can create custom providers and then reference on each resource to, for example, manage multiple resources on multiple AWS accounts. Is there a way to state that all the resources in a block or file should use the custom provider, instead of having to reference it in every single resource?
    šŸ‘ 2
    c
    • 2
    • 1
  • a

    astonishing-branch-30086

    07/13/2020, 8:03 AM
    Is it possible to directly run pulumi commands (
    pulumi up
    ,
    pulumi preview
    etc.) from one of the languages (Python in my case)? For example, calling something like
    pulumi.up()
    ? Just curious!
    s
    l
    • 3
    • 3
  • s

    salmon-gold-74709

    07/13/2020, 8:38 AM
    Is this Slack archived anywhere, or are there plans to do so? Something like https://archive.sweetops.com/search would be great, and also help Pulumi visibility by making conversations visible to search engines
  • n

    numerous-artist-1705

    07/13/2020, 11:07 AM
    would it be possible to also have a channel dedicated to Azure DevOps Pipelines using Pulumi? or maybe a more generic one for any orchestration tool
    c
    • 2
    • 1
  • s

    stocky-lion-56153

    07/13/2020, 11:32 AM
    Hi, I’m having problems with resources that think their dependencies are changing when they are actually stable (specifically, an AWS cloudfront distro that depends on a, ACM cert generated in the same program). Is there any way to debug and/or prevent this? I can’t find anything in the docs but maybe I’m looking in the wrong place.
  • a

    aloof-laptop-31826

    07/13/2020, 1:01 PM
    Hey all
  • a

    aloof-laptop-31826

    07/13/2020, 1:01 PM
    Anyone have any pointers/resources for creating a custom resource provider in c#?
  • a

    aloof-laptop-31826

    07/13/2020, 1:02 PM
    Can't seem to find and reference on the pulumi docs for c#
Powered by Linen
Title
a

aloof-laptop-31826

07/13/2020, 1:02 PM
Can't seem to find and reference on the pulumi docs for c#
View count: 1