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

    echoing-breakfast-73834

    03/02/2020, 10:59 PM
    Does Pulumi have any plans for validation or schema definition for config files? Looking for something similar to JSON schema.
  • f

    freezing-flag-53289

    03/03/2020, 12:15 AM
    What's the right way to lookup a resource that's been created in a loop to use in the
    parent:
    block of another resource? I got stuck because I can unwrap the promise to check the string, but I can't seem to do that and keep a reference to the resource which is what I actually need. For example, say I created a bunch of
    kubernetes.core.v1.Namespace
    resources in a function and now I have an array of them. What's the right way to do this:
    // namespaces is an array of kubernetes.core.v1.Namespace
    const myNamespace = namespaces.find(
        ns => ns.metadata.name === 'mynamespace' // Usual Output<string> is not a string problem
    );
    
    // Use mynamespace as parent
    new k8s.helm.v2.Chart(
        'myChart',
        {
            path: chartPath,
        },
        {
            parent: myNamespace
        }
    );
    t
    • 2
    • 1
  • g

    glamorous-printer-66548

    03/03/2020, 1:47 AM
    hey it seems that pulumi already infers the git sha1 of the environment it runs in (at least it ends up in some state / history metadata). Is there a way I can get the git_sha1 from
    pulumi.runtime
    or some other thing at runtime and use it in my config?
    w
    • 2
    • 2
  • b

    big-potato-91793

    03/03/2020, 1:35 PM
    Quick question, we have a tool call janitor that removed old stuff in k8s cluster. When this happens we need to redeploy because pulumi doesn’t verify that resources are created? Something we can do for checking that
    l
    • 2
    • 2
  • w

    wet-sunset-4939

    03/03/2020, 3:22 PM
    Hi All, I'm trying to provision Azure App Service Certificate using pulumi. However, I got an error message is 'The parameter AutoRenew has an invalid value.' below is my code. Tried to fine some sample on github but not luck. Please if you have.
    const order = new azure.appservice.CertificateOrder('sample-dev', {
        name: 'sample-dev',
        csr: '*.host.dev',
        autoRenew: true,
        ...group,
        location: 'global',
        productType: 'WildCard',
        validityInYears: 3
      });
    t
    • 2
    • 3
  • g

    gray-city-50684

    03/03/2020, 4:11 PM
    when I use a kubernetes.helm.v2.Chart component, is there any way to remove a Kubernetes object (in my case an Ingress definition) from the list of objects (I know I can use transformations to modify any object, but can’t find any documentation on how to remove one (if possible))?
    g
    • 2
    • 2
  • g

    gray-city-50684

    03/03/2020, 4:45 PM
    One more question: if I have a variable with type pulumi.Input<string> can I use it in conditionals that check the actual string value somehow?
    g
    • 2
    • 5
  • b

    bitter-dentist-28132

    03/03/2020, 5:08 PM
    is there a way to view the compiled (from typescript) js that pulumi is executing?
    w
    • 2
    • 3
  • b

    bitter-zebra-93800

    03/03/2020, 7:32 PM
    I am thinking of using Pulumi with two different companies I work with, each with their own Team Starter or Pro account. Is there a way to tell Pulumi which account to associate itself with when running the command line? Environment variable of something.
    g
    l
    • 3
    • 5
  • b

    bright-orange-69401

    03/04/2020, 9:56 AM
    Manual step in a Pulumi script I'm trying to perform a manual step as part of a deployment script (one-time-password, captcha, etc.), but due to the async nature of Pulumi I haven't succeeded in asking for the manual input as part of the
    pulumi up
    Has anyone succeeded in a similar project ? Code example would be epic
    b
    f
    • 3
    • 7
  • f

    fierce-cpu-94517

    03/04/2020, 10:00 AM
    I'm having an issue with a local stack. Here's what happened: 1.
    pulumi login --local
    2.
    pulumi stack init my-stack
    (entered passphrase) 3.
    aws-vault exec my-profile -- pulumi up
    . got an error. some resources provisioned. 4. fixed stuff 5.
    aws-vault exec my-profile -- pulumi up
    . started getting
    error: decrypting secret value: failed to decrypt: incorrect passphrase, please set PULUMI_CONFIG_PASSPHRASE to the correct passphrase
    6. weirder:
    pulumi stack ls
    returns empty list of stacks what is going on?
    g
    • 2
    • 5
  • w

    wet-sunset-4939

    03/04/2020, 3:08 PM
    Hi All, I have an App Service Certificate for an domain. But dont know how to import the certificate into an AppService. Please share if you know. Thanks
  • b

    bumpy-exabyte-11757

    03/04/2020, 4:46 PM
    Trying to setup a kubernetes cluster on GCP via pulumi
  • b

    bumpy-exabyte-11757

    03/04/2020, 4:55 PM
    works 🙂 wasn't sure about the
    pulumi config set password
    part
  • b

    bumpy-exabyte-11757

    03/04/2020, 5:13 PM
    Any plans to support Google Cloud Run? Managed containers 🙂
  • b

    bumpy-exabyte-11757

    03/04/2020, 5:14 PM
    or is this already supported?
    w
    • 2
    • 1
  • l

    limited-rainbow-51650

    03/04/2020, 5:29 PM
    https://events.linuxfoundation.org/kubecon-cloudnativecon-europe/attend/novel-coronavirus-update/ No KubeCon Amsterdam next month. 😢
    😥 2
    w
    • 2
    • 1
  • e

    early-intern-90238

    03/04/2020, 6:52 PM
    Gotta say the GKE price increase is kind of messed up.
  • h

    helpful-advantage-49286

    03/04/2020, 7:04 PM
    what is the GKE price increase?
    l
    s
    +2
    • 5
    • 14
  • b

    big-potato-91793

    03/04/2020, 7:24 PM
    Quick question, is there any simple way to user the
    data
    inside the ConfigMap to get all the keys in typescript. Need these to make the volume mounts with keys instead of the hole folder.
    c
    • 2
    • 3
  • b

    billions-scientist-31826

    03/04/2020, 7:38 PM
    Wondering if anyone can help me out. I am having a weird issue with my state. My coworker and I are getting different preview output. We are both on the master branch and the same commit hash, but he has 27 things to change and I have only 4. Is there cache or something else that he isn't getting the latest state? From the console I can see we are previewing the same stack, but we are getting the different results.
    g
    • 2
    • 4
  • n

    numerous-dream-98392

    03/04/2020, 9:12 PM
    Most pulumi commands suddently started hanging for me - ie
    pulumi version
    will work, but
    pulumi stack ls
    will hang indefinitely. tried increasing verbosity but I'm not getting any extra logs of value - ideas?
    w
    c
    • 3
    • 6
  • c

    calm-quill-21760

    03/05/2020, 1:14 AM
    I'm trying to identify what the "policy" object of aws.kms.Key should look like. It appears to want JSON (error: "policy" contains an invalid JSON: invalid character 'a' looking for beginning of value), but all of the options I've tried (including ones from AWS' documentation) produce errors either in my IDE or when I run pulumi up (error: "policy must be a single value, not a map"). Where can I find an example of syntax the policy object this item is expecting?
    f
    s
    • 3
    • 7
  • f

    famous-salesmen-28835

    03/05/2020, 6:22 AM
    class pulumi_aws.s3.Bucket(resource_name, opts=None, acceleration_status=None, acl=None, arn=None, bucket=None, bucket_prefix=None, cors_rules=None, force_destroy=None, hosted_zone_id=None, lifecycle_rules=None, loggings=None, object_lock_configuration=None, policy=None, region=None, replication_configuration=None, request_payer=None, server_side_encryption_configuration=None, tags=None, versioning=None, website=None, website_domain=None, website_endpoint=None, __props__=None, __name__=None, __opts__=None)
    In this if I pass resource_name as "mybucket" then it create s3 bucket with name "mybucket-677282" is it any way to create bucket with my bucket only. Or any one can suggest me this have policy field so if I pass policy in that "resource" needs the ARN of bucket which is not created with a single call how I can create bucket with attached policy.
    g
    • 2
    • 1
  • n

    nutritious-shampoo-16116

    03/05/2020, 10:20 AM
    hi everybody, I am trying to write some unittest (writing python) but after enabling test mode I get this error
    pulumi.errors.RunError: Missing project name; for test mode, please set PULUMI_NODEJS_PROJECT
    I tried to set both PULUMI_NODEJS_PROJECT and PULUMI_PYTHON_PROJECT but it seems the project name is not picked up anybody knows how can I solve this issue?
  • n

    nutritious-shampoo-16116

    03/05/2020, 10:24 AM
    for know the only workaround I found was to import
    _set_project
    from pulumi.runtime.settings
  • n

    nutritious-shampoo-16116

    03/05/2020, 10:25 AM
    but I don't feel it's the way to go
  • b

    bumpy-exabyte-11757

    03/05/2020, 1:14 PM
    Does Pulumi support Google Cloud Run?
  • b

    bumpy-exabyte-11757

    03/05/2020, 1:17 PM
    ah, I found it: https://www.pulumi.com/blog/google-cloud-run-serverless-containers/
  • g

    great-accountant-75189

    03/05/2020, 4:46 PM
    is there a way to call
    pulumi up
    programmatically? (i.e.: I have an http rest service to create resources)
    g
    t
    • 3
    • 3
Powered by Linen
Title
g

great-accountant-75189

03/05/2020, 4:46 PM
is there a way to call
pulumi up
programmatically? (i.e.: I have an http rest service to create resources)
g

gentle-diamond-70147

03/05/2020, 4:53 PM
No. But most commands have a
--json
flag to get JSON output so you can parse the output easier.
g

great-accountant-75189

03/05/2020, 5:53 PM
aight thanks
t

tall-librarian-49374

03/05/2020, 7:11 PM
Also https://github.com/pulumi/pulumi/issues/3901
View count: 1