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

    famous-kite-69533

    03/22/2020, 6:55 PM
    message has been deleted
  • f

    famous-kite-69533

    03/22/2020, 9:35 PM
    I am trying to install Velero with the Helm chart with the v2 version since it is not compatible yet with v3. Pulumi fails with "skipping unknown hook: "crd-install"". How can I make sure it handles the hooks? There is no mention of this in the documentation
  • v

    victorious-scientist-9866

    03/23/2020, 12:40 AM
    Hi All! Is there an easy way to use the contents of a file as a secret?
  • v

    victorious-scientist-9866

    03/23/2020, 12:41 AM
    I'm currently trying to inject a
    .htpasswd
    file into a Kubernetes Secret to be mounted in a container
    g
    • 2
    • 1
  • v

    victorious-scientist-9866

    03/23/2020, 12:45 AM
    I had a similar requirement previously when creating an imagePullSecret. My solution that time was to programmatically construct the file contents, but I don't think it's a good way to go.
    b
    • 2
    • 1
  • v

    victorious-scientist-9866

    03/23/2020, 2:05 AM
    @green-morning-1318 @billowy-army-68599 thanks to you both. I think this works fine for the
    .htpasswd
    example since the file contents are already hashed/secure but it doesn't work for the example of an image pull secret since the contents are only base64 encoded and can easily be decoded. Ideally, unencrypted secret data wouldn't be commited to the git repository storing my deployment files.
    g
    f
    • 3
    • 7
  • b

    big-restaurant-51338

    03/23/2020, 12:02 PM
    hi! how do I retrieve the internal IP of a newly created
    compute.Instance
    ? I tried this, but I get a KeyError
    # actual vm creation
    instance = compute.Instance("instance",
            machine_type=config.require('type'),
            boot_disk={
                "initializeParams": {
                    "image": config.require('image')
                    }
                },
            network_interfaces=[
                {
                    "subnetwork": parentStack.get_output('subnet_id'),
                    }
                ],
            # metadata={
            #     "startup-script": init_script
            #     },
            zone = config.require('zone'),
            tags = ["mytags"]
            )
    # Register the DNS record
    dns_name = parentStack.get_output('private_dns_zone').apply(lambda a: f"instance.{a}")
    instance_recordset = dns.RecordSet("instance-recordset",
            managed_zone = parentStack.get_output('private_dns_name'),
            name = dns_name,
            rrdatas = [ instance.network_interfaces[0]['networkIp'] ],
            ttl = 3600,
            type = "A",
            opts=pulumi.ResourceOptions(depends_on=[instance]))
    t
    • 2
    • 5
  • f

    famous-kite-69533

    03/23/2020, 12:10 PM
    Hi, I am trying to install the Velero Helm chart, which is compatible with Helm v2 but not v3. So I am trying to install it with
    k8s.helm.v2.Chart(...)
    but even with v2 Pulumi gives me
    skipping unknown hook: "crd-install"
    . How can I ensure the CRDs are installed? I can't find a setting or something like that in the docs. Thanks!
    👍 1
    a
    • 2
    • 45
  • l

    limited-librarian-23694

    03/23/2020, 4:00 PM
    Hello! Does anyone know if there is an API for the CLI commands? i.e. is it possible to write code in python or typescript that executes operations like
    pulumi up
    , without shelling out to the CLI?
    b
    • 2
    • 6
  • b

    busy-umbrella-36067

    03/23/2020, 5:27 PM
    For the new mocking support, how is it toggled? I see
    PULUMI_TEST_MODE
    mentioned so I’m guessing thats an env var, is there any other way to toggle it?
    pulumi.runtime.setConfig()
    ?
    w
    t
    • 3
    • 3
  • b

    better-rainbow-14549

    03/24/2020, 11:21 AM
    error: Running program 'C:\dev\misc\pulumi-test' failed with an unhandled exception:
        Error: EBUSY: resource busy or locked, open '\\.\pipe\pulumi2823058552\invoke_req'
    w
    • 2
    • 3
  • b

    better-rainbow-14549

    03/24/2020, 11:21 AM
    i'm getting that all the time now is there a fix that doesnt involve rebooting?
  • s

    salmon-account-74572

    03/24/2020, 4:21 PM
    Wish list item: A segment for
    powerline-go
    (https://github.com/justjanne/powerline-go/) that shows the currently selected Pulumi stack in my Powerline prompt. 🙂
    :thumbsup_all: 1
    g
    b
    • 3
    • 14
  • b

    brave-ambulance-98491

    03/24/2020, 5:07 PM
    i just ran into this bug; the title is a bit innocuous. may i suggest something more like "Parents deleted due to
    refresh
    corrupt pulumi state file"? https://github.com/pulumi/pulumi/issues/3583
    w
    • 2
    • 2
  • m

    miniature-art-58368

    03/24/2020, 8:08 PM
    How to assign an ipv6_cidr_block to a subnet by subnetting the ipv6_cidr_block of the IPv6 subnet assigned to the VPC?
  • m

    miniature-art-58368

    03/24/2020, 8:36 PM
    How to do string manipulation of dynamic attributes?
  • m

    miniature-art-58368

    03/24/2020, 8:38 PM
    I guess it's apply()?
    a
    • 2
    • 2
  • l

    limited-librarian-23694

    03/24/2020, 11:40 PM
    anyone have tips on debugging cases where
    get_
    methods don't seem to be returning what you'd expect? Specifically I'm calling ec2.get_security_groups and passing a filter that matches fine on the aws CLI, but in Pulumi I can never get it to return any security groups besides the default one.
  • l

    limited-librarian-23694

    03/25/2020, 12:06 AM
    narrowed it down a bit - the
    get_
    methods like
    get_ami
    and
    get_security_groups
    are querying into the wrong AWS region; i.e. not the same region where pulumi is provisioning resources.... hmmm
    r
    • 2
    • 2
  • r

    refined-airplane-93668

    03/25/2020, 1:05 AM
    howdy folks... just taking Pulumi c# for a spin and have a few questions.. I would like to provision a Cosmos DB free tier & not sure what value should go in offerType?
    t
    • 2
    • 1
  • r

    refined-airplane-93668

    03/25/2020, 1:07 AM
    from a solution structure point of view, most Azure examples I see bundle the infrastructure together with the application & wondering if this is a best practice? For example, would having an Infrastructure Pulumi solution and an Application Pulumi solution be the way to go or bundling is fine?
  • g

    green-morning-1318

    03/25/2020, 1:19 AM
    now I remember why CloudFormation isn’t my favorite thing… I need to deploy one small change (variable name), and I’m bouncing all over the file to make the changes… 😓
  • f

    fast-dinner-32080

    03/25/2020, 4:29 AM
    Is there a way to taint a resource using pulumi? I know I can target destroy but I want to recreate a resource along with any dependency updates/recreations that need to go along with it. So marking a resource for recreation is what I am looking for.
    g
    a
    • 3
    • 4
  • b

    better-rainbow-14549

    03/25/2020, 3:36 PM
    in a dynamic provider i've got a lot of
    public readonly serverUri: pulumi.Output<string>;
    which is filled out by pulumi after apply but with
    strict: true
    in tsconfig.json it complains that it's "not definitely assigned in constructor" - is there any easy way around that please
    m
    • 2
    • 2
  • b

    bitter-dentist-28132

    03/25/2020, 4:15 PM
    how does resource deletion ordering work? i'm running into a problem where when I try to delete a load balancer resource, it refuses to delete because there are resources still using the load balancer. if every resource that uses that load balancer uses one of its parameters in its resource definition, or has an explicit
    dependsOn
    , will that load balancer only be deleted after all resources that use it are deleted? what about transitive dependencies?
    g
    • 2
    • 3
  • b

    big-potato-91793

    03/25/2020, 5:43 PM
    Does pulumi cli handle the SIG_TERM and SIG_KILL?
  • f

    famous-kite-69533

    03/25/2020, 6:44 PM
    Hi guys, how do I specify the path of the values file for an helm chart?
    c
    • 2
    • 5
  • i

    important-boots-43281

    03/25/2020, 7:01 PM
    Hi, I'm new to Pulumi, we're doing a test with a lambda function and API gateway. The deployment worked fine when everything was in one big file, but after we moved things into ComponentResources, we're getting an error
    Error creating Lambda function: ResourceConflictException: Function already exist:
    when we try to create the actual lambda function. The function is actually being created, but it seems like pulumi is trying to create it twice for some reason. The created function isn't destroyed by a pulumi destroy, so it doesn't ever seem to get registered with the state. Any ideas on what I'm doing wrong?
    a
    a
    • 3
    • 2
  • b

    billions-lock-73409

    03/25/2020, 7:10 PM
    Regarding the Github App for Pulumi, is there anything special we need to do for it to comment on PR’s with the status? I recently had the github action adding a comment with the
    COMMENT_ON_PR
    flag, but have since disabled it in an attempt to switch to the github app as the GH actions integration is far too verbose.
    g
    a
    s
    • 4
    • 36
  • b

    busy-scientist-76678

    03/25/2020, 11:09 PM
    Hi, is there a chance to use pulumi without sharing my stack to pulumi.com ? 🙂 (I’m new to pulumi)
    g
    s
    • 3
    • 4
Powered by Linen
Title
b

busy-scientist-76678

03/25/2020, 11:09 PM
Hi, is there a chance to use pulumi without sharing my stack to pulumi.com ? 🙂 (I’m new to pulumi)
g

gentle-diamond-70147

03/25/2020, 11:13 PM
Yes. https://www.pulumi.com/docs/troubleshooting/faq/#can-i-use-pulumi-without-depending-on-pulumi-com has more info.
b

busy-scientist-76678

03/25/2020, 11:14 PM
Thank you !
s

salmon-account-74572

03/26/2020, 12:16 AM
Definitely possible---I used Pulumi for quite a while with S3 as the back-end.
✅ 1
✔️ 1
b

busy-scientist-76678

03/26/2020, 10:42 AM
Nice ! 🙂 thank you ! I’ll try pulumi 🙂 sounds magic 🙂
View count: 1