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

    stocky-spoon-28903

    04/12/2019, 12:15 PM
    Hi @fresh-pilot-59899! There are a few different ways of looking at it - because Pulumi components are ‘just code’, you can use the standard language packaging system for them (see https://github.com/jen20/pulumi-aws-vpc for an example). We also have higher level libraries like
    pulumi/awsx
    which have prebuilt abstractions.
  • g

    gifted-engine-92308

    04/12/2019, 1:20 PM
    if a task - such as creating a managed cert in GKE takes up to 20 mins to complete - will pulumi timeoout before it does or will it happily wait/
    b
    s
    w
    • 4
    • 6
  • f

    fast-motherboard-21624

    04/12/2019, 5:46 PM
    crazy question folks: Is the SDK completely coupled to the CLI? or would i theoretically be able to execute stack operations in the context of another node.js application? thinking of zookeeper-type scenarios
    👍 1
    g
    • 2
    • 1
  • i

    incalculable-angle-91273

    04/12/2019, 6:00 PM
    Is there anything like a
    local-exec
    in pulumi? I want to run a script after a resource gets updated. Specifically for kubernetes I want to refresh pods in an application namespaces after I update my istio helm chart.
    c
    b
    • 3
    • 9
  • i

    incalculable-diamond-5088

    04/13/2019, 4:01 PM
    Hi, I’m trying to build a bootstrap program that will provision multiple organization accounts, each with its own VPC and EKS. The problem however is that https://github.com/pulumi/pulumi-awsx/blob/master/nodejs/awsx/ec2/vpc.ts#L25 does not support custom providers. For example, https://github.com/pulumi/pulumi-awsx/blob/master/nodejs/awsx/ec2/vpc.ts#L68 creates a VPC, not forwarding the provided custom providers. On the other hand, there’s https://github.com/pulumi/pulumi-awsx/blob/master/nodejs/awsx/ec2/vpcTopology.ts#L28 which does forward the provided opts to the created resource (https://github.com/pulumi/pulumi-awsx/blob/master/nodejs/awsx/ec2/vpcTopology.ts#L121), but it seems there’s a problem. ComponentResourceOptions defines a map of providers:
    export interface ComponentResourceOptions extends ResourceOptions {
        providers?: Record<string, ProviderResource>;
    }
    However, the Subnet is a
    Resource
    , not a
    Component
    and thus expects:
    export interface CustomResourceOptions extends ResourceOptions {
        provider?: ProviderResource;
    }
    Which has only a single provider. I created a PR https://github.com/pulumi/pulumi-awsx/pull/176, but I see it doesn’t advance. Please suggest how to achieve custom providers support across all pulumi modules
    w
    l
    • 3
    • 12
  • g

    gifted-engine-92308

    04/13/2019, 8:42 PM
    If pulumi is changing the names of all the services, how is everyone referencing these services? Do you have a separate service directory mechanism?
    • 1
    • 1
  • t

    thousands-summer-48355

    04/14/2019, 3:31 AM
    Hi -- exploring Pulumi. I really like the design. I'm trying to figure out if I can use it to support my development workflow for a personal project. I need to spin up gpu instances in the cloud for running code in anaconda environments with gpu support. I've been manually setting up machines and rsync'ing data (its feasible to rsync data for my problem size) to them to support development. I'm wanting to see if I can build an abstraction on top of (or composing) aws.ec2.Instance to manage a portion of the filesystem on the instance(s) via (something like) rsync. Is the right thing to just use pulumi to manage the lifecycle of the instance(s) and then interrogate pulumi with
    pulumi stack output --json
    from another script to figure out how to contact the hosts and drive the rsyncing there? Doers that sound like a possible approach or other recommendations on how to do this? If I'm using pulumi typescript can I get the equivalent of
    pulumi stack output --json
    somehow without manually invoking the pulumi command and parsing the json output myself -- ideally in a way that preserves type info and auto-complete behavior
  • i

    incalculable-diamond-5088

    04/14/2019, 2:52 PM
    Hi, I’m working on support for
    assumeRole
    in EKS (https://github.com/pulumi/pulumi/issues/2537). For this I want to parse the aws provider at https://github.com/pulumi/pulumi/issues/2537. Is there a way I can get a reference to the aws provider in use?
  • c

    calm-greece-42329

    04/14/2019, 4:05 PM
    has anyone outside of the pulumi team created a tf provider?
  • s

    stocky-spoon-28903

    04/14/2019, 6:00 PM
    @calm-greece-42329 Yes! A couple of people have, it’s not as simple as it should be right now because I’m in the process of updating the boilerplate to use Go Modules instead of dep. That does make things dramatically simpler though.
  • c

    calm-greece-42329

    04/14/2019, 6:01 PM
    that was kind of the headache i ran into 😛
  • s

    stocky-spoon-28903

    04/14/2019, 6:01 PM
    I can give you the tl;dr on how to do it if you want:
  • c

    calm-greece-42329

    04/14/2019, 6:01 PM
    the template also used a variable for the
    <http://github.com/pulumi/<repo>|github.com/pulumi/<repo>>
    in some places, but not all places, so i wasnt sure if there was a reason for that (like installing the provider as a user later) or if the repo should plan on landing in the pulumi space for ease of use
  • c

    calm-greece-42329

    04/14/2019, 6:02 PM
    sure
  • s

    stocky-spoon-28903

    04/14/2019, 6:02 PM
    (Ultimately they probably want to land in the
    pulumi
    namespace for now, until we sort out the ability for third party packages to install via
    pulumi plugin install
    )
  • c

    calm-greece-42329

    04/14/2019, 6:04 PM
    ok, i’ll plan on that
  • c

    calm-greece-42329

    04/14/2019, 6:04 PM
    fwiw its for https://github.com/sky-uk/terraform-provider-infoblox which is probably going to be something somewhat common
  • s

    stocky-spoon-28903

    04/14/2019, 6:05 PM
    From the current boilerplate repo: 0. Clone into the target path inside GOPATH even though we are using modules 1. Remove
    Gopkg.*
    2. Temporarily
    export GO111MODULE=on
    3.
    go get <http://github.com/pulumi/pulumi-terraform@master|github.com/pulumi/pulumi-terraform@master>
    4.
    go get <http://github.com/terraform-providers/terraform-provider-xyz@releasetag|github.com/terraform-providers/terraform-provider-xyz@releasetag>
    5. go mod vendor 6.
    unset GO111MODULE
    7. In .travis.yml, bump to
    go: 1.12.1
    (but not further) 8. Apply the diff to
    build/common.mk
    from here: https://github.com/pulumi/pulumi-aws/pull/514/files#diff-fd68401511ad5f7f12fb687d58ec8076 9.
    go get <http://github.com/pulumi/scripts/gomod-doccopy|github.com/pulumi/scripts/gomod-doccopy>
    9. The rest should be the same as the instructions
  • s

    stocky-spoon-28903

    04/14/2019, 6:06 PM
    Actually step 4a: copy the
    replace
    block from here into `go.mod`:https://github.com/pulumi/pulumi-aws/pull/514/files#diff-37aff102a57d3d7b797f152915a6dc16R30 and line 31
  • c

    calm-greece-42329

    04/14/2019, 6:07 PM
    not happy, ill wipe my mods and try again
  • s

    stocky-spoon-28903

    04/14/2019, 6:07 PM
    @calm-greece-42329 That’s step 4a 🙂
  • c

    calm-greece-42329

    04/14/2019, 6:08 PM
    😄
  • s

    stocky-spoon-28903

    04/14/2019, 6:08 PM
    It’s pretty irritating that replacements can’t be done at the library level, but that’s unfortunately how it is right now 😞
  • c

    calm-greece-42329

    04/14/2019, 6:12 PM
    ok finished step 9. ill chug along in the normal docs but no problems with that 👍
  • c

    calm-greece-42329

    04/14/2019, 6:36 PM
    is there a way to make a configuration option non-optional? 🙂
  • c

    calm-greece-42329

    04/14/2019, 6:36 PM
    for example the TF param is required:
    // "password": &schema.Schema{
    			// 	Type:        schema.TypeString,
    			// 	Required:    true,
    			// 	DefaultFunc: schema.EnvDefaultFunc("INFOBLOX_PASSWORD", nil),
    			// 	Description: "Password to authenticate with Infoblox appliance",
    			// },
  • c

    calm-greece-42329

    04/14/2019, 6:40 PM
    or being able to cast them as bool, or ints, stuff like that
  • s

    stocky-spoon-28903

    04/14/2019, 6:45 PM
    Yes, if there is no Default and it’s Required
  • c

    calm-greece-42329

    04/14/2019, 7:04 PM
    🎉 https://github.com/bigkraig/pulumi-infoblox
  • c

    calm-greece-42329

    04/14/2019, 7:36 PM
    hmm if i push it to npm will i be able to use it?
Powered by Linen
Title
c

calm-greece-42329

04/14/2019, 7:36 PM
hmm if i push it to npm will i be able to use it?
View count: 1