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

    red-gpu-20097

    08/22/2018, 6:54 PM
    @elegant-rose-64918 you can merge the logic of phase 2 and 3. if you never expect more than 1000 results, you can just do
    getRange({ start: 0, end: 1000 })
    , and it will return an array with the exact number of the results if you never expect more than 4000 results, you can do
    each(result => { /* do something with result */});
    and fill an array with the results
  • f

    fierce-megabyte-54418

    08/22/2018, 7:59 PM
    In which record is that?
  • d

    dazzling-scientist-80826

    08/22/2018, 8:00 PM
    ok - i’ve finally got some time to attempt to “import” an existing deployment as a pulumi stack
  • d

    dazzling-scientist-80826

    08/22/2018, 8:00 PM
    despite our previous discussion, it’s not clear how to get started
  • d

    dazzling-scientist-80826

    08/22/2018, 8:00 PM
    @big-piano-35669 had suggested trimming some gunk from
    pulumi stack export
    and then running refresh, but for a new/empty stack, there’s nothing to trim to get urns or anything like that
    h
    • 2
    • 1
  • d

    dazzling-scientist-80826

    08/22/2018, 8:00 PM
    suggestions?
    m
    • 2
    • 15
  • h

    helpful-vegetable-35581

    08/23/2018, 8:33 AM
    So I've got a setup where if I refresh it it says it needs to delete and recreate some openstack compute instances, but the diffs are exactly the same no change to urn, id, or anything else. If I ok that refresh my stack state is now buggered and gives an error if I try to do anything with it.
  • h

    helpful-vegetable-35581

    08/23/2018, 8:33 AM
    panic: fatal: An assertion has failed goroutine 159 [running]: github.com/pulumi/pulumi/pkg/util/contract.failfast(0xef018d, 0x17) /home/travis/gopath/src/github.com/pulumi/pulumi/pkg/util/contract/failfast.go:23 +0xf3 github.com/pulumi/pulumi/pkg/util/contract.Assert(0x0) /home/travis/gopath/src/github.com/pulumi/pulumi/pkg/util/contract/assert.go:26 +0x49 github.com/pulumi/pulumi/pkg/resource/plugin.(*provider).Read(0xc420946ff0, 0xc42147d170, 0x81, 0x0, 0x0, 0xc42113b770, 0xc420946ff0, 0x1, 0x42ebab, 0xc4210ebed4) /home/travis/gopath/src/github.com/pulumi/pulumi/pkg/resource/plugin/provider_plugin.go:401 +0x5e github.com/pulumi/pulumi/pkg/resource/deploy.(*refreshSourceIterator).newRefreshGoal(0xc42101ca20, 0xc4200e2000, 0x3f, 0x0, 0x0) /home/travis/gopath/src/github.com/pulumi/pulumi/pkg/resource/deploy/source_refresh.go:158 +0x515 github.com/pulumi/pulumi/pkg/resource/deploy.(*refreshSourceIterator).Next(0xc42101ca20, 0x0, 0x0, 0x0, 0x0) /home/travis/gopath/src/github.com/pulumi/pulumi/pkg/resource/deploy/source_refresh.go:129 +0xe6 github.com/pulumi/pulumi/pkg/resource/deploy.(*PlanExecutor).Execute.func2(0xc42028ae10, 0xc421032180) /home/travis/gopath/src/github.com/pulumi/pulumi/pkg/resource/deploy/plan_executor.go:96 +0x4b created by github.com/pulumi/pulumi/pkg/resource/deploy.(*PlanExecutor).Execute /home/travis/gopath/src/github.com/pulumi/pulumi/pkg/resource/deploy/plan_executor.go:94 +0xaf
  • h

    helpful-vegetable-35581

    08/23/2018, 8:34 AM
    Can just restore the old stack state that I had saved so I'm not blocked, and I don't need the refresh right now but worried this is gonna bite when I actually need it
  • h

    helpful-vegetable-35581

    08/23/2018, 8:34 AM
    But sounds like the whole refresh thing is being rewritten next week? So should I just wait and try again after that's landed?
    m
    • 2
    • 6
  • t

    tall-librarian-49374

    08/23/2018, 11:21 AM
    What should I do when my
    pulumi update
    visually stopped making any progress and seems idle for hours? Ctrl-C will make me do
    refresh
    which I have bad experience with...
    m
    • 2
    • 13
  • b

    big-television-80811

    08/23/2018, 2:58 PM
    Can I use Pulumi for my local developer machine and to deploy it on a simple server (without having a cloud stack installed?)
    h
    w
    • 3
    • 3
  • b

    boundless-monkey-50243

    08/23/2018, 8:23 PM
    This might be a dumb question but I haven't dove in deeply yet - how does Pulumi, when using JS/TS, interoperate with other modules for the purpose of code reuse? Is there an example out there? (My guess as to implementation is that internally there's a cross-module registry being provided to the module code that's updated when a resource's constructor is called, but I'm still getting my bearings; I just know that for us composable resources is a requirement.)
    m
    h
    • 3
    • 22
  • b

    boundless-monkey-50243

    08/23/2018, 8:33 PM
    With one question (awesomely) answered, I had one other implementation question with regards to serverless queues etc - the subscription logic in
    aws-js-sqs-slack
    is inline in the module. Is there documentation somewhere on how that's packaged to be delivered to Lambda/Cloud Functions/etc? The
    package.json
    file includes
    @slack/client
    , so is it just packing the entire Pulumi module definition and shipping it up? (That has some potential implications with regards to secrets, hence the question)
    m
    l
    • 3
    • 59
  • f

    fierce-megabyte-54418

    08/23/2018, 8:49 PM
    But creating and starting a count are two different things...
  • h

    helpful-vegetable-35581

    08/24/2018, 12:43 PM
    So I've got an odd create/refresh issue, and I'm not sure if it's a bug with pulumi or the terraform-openstack-provider. The problem is that openstack.networking.network defines a field called "segments" in it's schema (https://github.com/terraform-providers/terraform-provider-openstack/blob/master/openstack/resource_openstack_networking_network_v2.go#L69). When I create a network with pulumi and don't set this attribute (because it's optional and honestly I'm not actually sure what its for) there is no "segments" field set in the state file, that's because the openstack terraform provider never returns it as an attribute (see the read method, which is used as the return for create as well https://github.com/terraform-providers/terraform-provider-openstack/blob/master/openstack/resource_openstack_networking_network_v2.go#L201). So MAYBE this is a bug on terraform that there's no way to mark an attribute as input only? At any rate if I then call refresh pulumi then ADDS a segments field, it seems because it fills in all default values for inputs (which includes segments) passes that struct to terraform Refresh which calls read to fill in that struct, but it doesn't remove the segments field. So yeh not sure who's really at fault here, but did wonder if providers are prone to doing things like this if pulumi could just not fill in the default fields at all before passing to Refresh?
    m
    • 2
    • 8
  • t

    tall-librarian-49374

    08/24/2018, 1:56 PM
    Hi, I'm trying to install azure+pulumi on a new laptop. Getting "Azure CLI Authorization Profile not found" even after successful CLI login. What else should I check?
    b
    • 2
    • 10
  • s

    stocky-spoon-28903

    08/24/2018, 5:42 PM
    Has anyone done a similar thing to the Travis templates for running Pulumi under AWS CodeBuild?
    m
    b
    c
    • 4
    • 11
  • c

    chilly-crayon-57653

    08/25/2018, 4:40 PM
    Really nice post from @creamy-potato-29402 on Kubernetes Deployments at https://t.co/SF3petfLxU
  • t

    tall-librarian-49374

    08/25/2018, 7:23 PM
    What is azure:environment?
    error: Missing required configuration variable 'azure:environment'
    m
    w
    • 3
    • 5
  • s

    stocky-spoon-28903

    08/25/2018, 7:53 PM
    Is the GitHub app open source? That looks like it has most of the basic bits in it for doing what I want for CodeBuild as an alternative to Travis CI
    c
    • 2
    • 23
  • f

    fresh-umbrella-15520

    08/26/2018, 9:53 PM
    How can I handle passing a namespace when using the k8s plugin with helm? I don't want me app deployed in
    default
    .
    w
    • 2
    • 1
  • f

    fresh-umbrella-15520

    08/26/2018, 10:01 PM
    thanks!
  • i

    important-jackal-88836

    08/27/2018, 12:03 AM
    it is possible to start a gke cluster with pulumi gcp and then deploy things to it with pulumi kubernetes all in one go?
  • b

    big-piano-35669

    08/27/2018, 12:04 AM
    It is! We don't have an example, but this has been on our list recently, and I'm spelunking in K8s/GCP right now, so I can see if I can put together an example.
  • b

    big-piano-35669

    08/27/2018, 12:05 AM
    There's an Azure example of this at: https://github.com/pulumi/examples/tree/master/azure-ts-aks-helm
    😎 1
  • i

    important-jackal-88836

    08/27/2018, 12:07 AM
    man that's cool
  • i

    important-jackal-88836

    08/27/2018, 12:07 AM
    so you just attach the provider in resource options
  • b

    big-piano-35669

    08/27/2018, 12:55 AM
    Exactly right! Only snag I am running into is that the GKE resource (
    gcp.container.Cluster
    ) doesn't appear to export the raw kubeconfig. It's ok, we can easily fake it up, but it's a little messier than the AKS example. (It's also possible I'm missing a simpler way of doing this.) Hopefully will have something working soon.
  • c

    creamy-potato-29402

    08/27/2018, 12:56 AM
    It's quite a bit harder because of the gke auth plugin mess
Powered by Linen
Title
c

creamy-potato-29402

08/27/2018, 12:56 AM
It's quite a bit harder because of the gke auth plugin mess
View count: 1