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

    jolly-egg-4894

    07/16/2019, 12:37 PM
    Is it possible to set the runtime of my
    .onObjectCreated()
    lambda (in typescript) to
    nodejs10.x
    or am I looking at completely recreating the
    BucketEventSubscription
    class? I’ve looked at the options that are passed through to the handler but it’s just
    { parent: this }
    w
    • 2
    • 3
  • r

    rapid-eye-32575

    07/16/2019, 12:39 PM
    Hmm
    CustomResource
    -objects are broken for me with the current release (I'm using
    v0.17.22
    ). I always get the following error:
    TypeError: opts.parent.__aliases is not iterable
            at new Resource ([...]/node_modules/@pulumi/pulumi/resource.js:117:51)
            at new CustomResource ([...]/node_modules/@pulumi/pulumi/resource.js:270:9)
            at new Resource ([...]/node_modules/@pulumi/pulumi/dynamic/index.js:40:9)
            at new DatabaseUser ([...]/src/database/database-user.ts:7:9)
            at [...]/src/database/gcp/gcp-database-cluster.ts:64:13
    The instance of
    GCPDatabaseCluster
    (which has no aliases) is the parent of a
    DatabaseUser
    (again without aliases). Maybe this has something to do with the new feature of renaming resources (https://github.com/pulumi/pulumi/pull/2774)? Has anyone seen a similar behavior? The code still worked last week ago 🤔
    w
    • 2
    • 8
  • f

    flaky-engine-87606

    07/16/2019, 2:18 PM
    Im getting the following error when attempting to create a gcs bucket acl:
    gcp:storage:BucketACL (bucket-acl):
      error: Plan apply failed: all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: Error while dialing dial tcp 127.0.0.1:52527: connect: connection refused"
    -.txt
    w
    • 2
    • 2
  • b

    boundless-monkey-50243

    07/16/2019, 5:42 PM
    I am getting a protobuf assertion error from Pulumi. I assume it means I'm passing bad data to a gRPC call but the data from
    --debug
    is not particularly helpful. Is there a way to get more information, like "what resource is wrong"?
    b
    w
    • 3
    • 11
  • h

    handsome-actor-1155

    07/16/2019, 6:41 PM
    Just out of curiosity, is this the best way to create an ECR and build/upload an image?
    const ecr = new aws.ecr.Repository("ecr", {
            name: "stream-app/corrective-action-producer"
        });
    
        const ecrCreds = ecr.registryId.apply(async (registryId) => {
            const credentials = await aws.ecr.getCredentials({
                registryId: registryId,
            });
            const decodedCredentials = Buffer.from(credentials.authorizationToken, "base64").toString();
            const [username, password] = decodedCredentials.split(":");
            return { server: credentials.proxyEndpoint, username, password };
        });
    
        return new docker.Image("correctiveActionProducer", {
            imageName: ecr.repositoryUrl,
            build: "./",
            registry: ecrCreds
        });
  • b

    broad-dog-22463

    07/16/2019, 9:57 PM
    @brief-school-94535 FYI, cutting the release of the GCP provider now to fix your bug...
  • b

    bored-river-53178

    07/17/2019, 8:24 AM
    Is there any existing module or example creating security groups from some simple yaml or json configuration?
    b
    b
    • 3
    • 17
  • g

    glamorous-waitress-51149

    07/17/2019, 1:26 PM
    hey all, is anyone using pulumi and azure devops release pipelines together? I have some questions if so and you want to help a man out! 😃
    s
    c
    • 3
    • 12
  • r

    rapid-eye-32575

    07/17/2019, 1:28 PM
    When trying to run
    pulumi up
    in a typescript project utilizing
    @pulumi/pulumi-kubernetes
    , the preview shows that all Kubernetes resources would be replaced, since the
    <http://app.kubernetes.io/managed-by|app.kubernetes.io/managed-by>: pulumi
    label ought to be removed. The details show changes along the line of:
    [provider: urn:pulumi:dev::project::eks:index:Cluster$pulumi:providers:kubernetes::project-dev-provider::617c0adc-0f4b-47cc-8e2a-319f67902782 => urn:pulumi:dev::project::eks:index:Cluster$pulumi:providers:kubernetes::project-dev-provider::output<string>]
    ~ metadata  : {
        - labels   : {
            - <http://app.kubernetes.io/managed-by|app.kubernetes.io/managed-by>: "pulumi"
          }
      }
    In another project with the same package versions (
    0.25.2
    ) this doesn't happen, however. Has anyone seen a similar behaviour or has an idea what might be causing this?
    w
    • 2
    • 5
  • s

    salmon-beard-79336

    07/17/2019, 2:02 PM
    https://www.pulumi.com/blog/ci/cd-made-easy-with-pulumi-and-azure-pipelines did this article got moved somewhere? was loading a few days ago and the content was very relevant for a project I’ve resumed
    r
    b
    • 3
    • 11
  • i

    incalculable-angle-91273

    07/17/2019, 5:37 PM
    After updating to
    @pulumi/kubernetes
    version 0.25.2 I’m seeing this error:
    warning: resource plugin kubernetes is expected to have version >=0.25.2, but has 0.25.1-dev.1561392430+g1853784.dirty; the wrong version may be on your path, or this may be a bug in the plugin
    I tried removing all plugins with
    pulumi plugin rm --all
    and then reinstalling with
    npm i
    to refresh it but I still get the warning. Is the package set up to install the correct plugin?
    g
    • 2
    • 2
  • c

    cuddly-barista-79466

    07/17/2019, 7:50 PM
    @white-balloon-205 How does this compare to Pulumi? Have you guys seen this yet? thoughts? https://docs.aws.amazon.com/cdk/latest/guide/home.html
    i
    h
    +2
    • 5
    • 8
  • l

    lemon-greece-30910

    07/17/2019, 8:10 PM
    hello. is someone able to point me in the direction of an example for creating a mapping from a domain name (e.g.
    <http://example.com|example.com>
    ) to a service (like the example on: `https://www.pulumi.com/docs/reference/tutorials/aws/tutorial-service`)?
  • c

    cool-egg-852

    07/17/2019, 8:12 PM
    I keep getting
    Cannot read property name of undefined
    with
    envFrom: configMaps.map(function(configMap) {
                  return {
                    configMapRef: {
                      name: configMap.metadata.name
                    }
                  };
                }),
    where
    configMaps
    is an array of resources.
  • c

    cool-egg-852

    07/17/2019, 8:12 PM
    Anyone have any ideas?
  • c

    cool-egg-852

    07/17/2019, 8:17 PM
    Ah, figured it out
  • c

    cool-egg-852

    07/17/2019, 8:17 PM
    Bad design of my component resource
  • g

    glamorous-printer-66548

    07/17/2019, 10:56 PM
    I have an instance where pulumi tries to "replace" a resource after an upgrade of pulumi-gcp from 0.17.1 to 0.18.12 even though nothing in that resource has changed. This problem is similar to https://github.com/pulumi/pulumi-gcp/issues/88 however in this case it's a VM that pulumi attempts to replace.
    +-gcp:compute/instance:Instance: (replace)
            [id=vpn-00a]
            [urn=urn:pulumi:gcp-project-solvvy-prod::gcp-project-solvvy-prod::gcp:compute/instance:Instance::instance]
          ~ networkInterfaces: [
              ~ [0]: {
                      + __defaults   : []
                      ~ accessConfigs: [
                          ~ [0]: {
                                  + __defaults: []
                                    natIp     : "32.247.25.46"
                                }
                        ]
                        networkIp    : "10.0.16.10"
                        subnetwork   : "us-west1/vpn-subnetwork"
                    }
            ]
    there's absolutely 0 change on that resource except that i upgraded the pulumi gcp version do you have a quick idea how to resolve this? I'm fine editing the state if that helps, but I need to know what the state should look like for pulumi to not trigger a replace.
    g
    • 2
    • 1
  • g

    glamorous-printer-66548

    07/17/2019, 10:58 PM
    here's the source code for the resource:
    const vpnInstance = new gcp.compute.Instance(
        'instance',
        {
            name: 'vpn-00a',
            zone: 'us-west2-b',
            machineType: 'n1-standard-1',
            canIpForward: true,
            deletionProtection: true,
            metadata: { 
                'startup-script-url': startupScriptURL
            },
            scheduling: {
                automaticRestart: true
            },
            bootDisk: {
                initializeParams: {
                    image: 'ubuntu-os-cloud/ubuntu-minimal-1804-lts',
                },
            },
            networkInterfaces: [{
                subnetwork: vpnSubNetwork.id,
                networkIp: vpnInternalStaticIP,
                accessConfigs: [{
                    natIp: vpnExternalIP.address
                }]
            }],
            serviceAccount: {
                scopes: ['<https://www.googleapis.com/auth/cloud-platform>'],
            },
        },
        { dependsOn: [vpnFirewall] });
    w
    • 2
    • 2
  • c

    cool-egg-852

    07/18/2019, 1:32 AM
    Weird. Pulumi refresh is detecting the changes, but when I run pulumi up, it does not try to apply the changes. There is currently 1 replica, I refreshed (because it should have been 2 but it is 1 for some reason), ran up, and it shows no changes.
    w
    • 2
    • 2
  • c

    colossal-beach-47527

    07/18/2019, 4:15 AM
    b
  • f

    fast-motherboard-21624

    07/18/2019, 4:36 AM
    typescript question... having trouble compiling some typescript that required me to add a
    global.d.ts
    declaration file. TSC in vscode understands the declartion is there but
    pulumi
    doesn't seem to
  • f

    fast-motherboard-21624

    07/18/2019, 4:36 AM
    is there a trick to configuring pulumi's special tsconfig to help it find declarations
  • f

    fast-motherboard-21624

    07/18/2019, 4:36 AM
    ?
    w
    • 2
    • 5
  • r

    rapid-eye-32575

    07/18/2019, 7:48 AM
    It seems that Pulumi wants to replace all k8s resources because the provider of the underlying EKS cluster is marked to be replaced as well. The EKS cluster was created via
    new eks.Cluster(stackName, {
      instanceType: "t2.medium",
      desiredCapacity: 2,
      minSize: 2,
      maxSize: 4,
      nodeRootVolumeSize: 60
    });
    and that code hasn't changed in months. Does anybody have an idea what might be going on and how to fix this? The preview just states that the provider will be replaced but no diff is provided.
    b
    g
    • 3
    • 13
  • c

    colossal-yacht-76770

    07/18/2019, 12:11 PM
    Does Pulumi support using Ansible as configuration management when deploying an EC2 instance? How would I provision using Type Script?
    g
    • 2
    • 3
  • c

    cool-egg-852

    07/18/2019, 3:42 PM
    Anyone know how to grant
    roles/errorreporting.viewer
    ? Does this have to be done as a project iammember policy?
  • c

    clever-nest-47198

    07/18/2019, 5:32 PM
    Howdy, I'm testing https://github.com/pulumi/pulumi/pull/2893 the new import functionality in Pulumi a lot and have found some odd behavior I think? I didn't want to keep spamming the PR, and thought here would be a good place to go through it. I'm importing an ELB in Python, and I've only set these parameters to the ELB
    elb = elb.LoadBalancer(resource_name=elb_name, opts=resource_opts, internal=scheme, name=elb_name, listeners=listeners, tags=tags)
    The ELB I have configured in AWS explicitly has configuration I have not set here ^ however, Pulumi preview/up think that my state defined in Python 100% matches the state from AWS. I'm missing ELBHealthchecks, security groups, AZ's, and a bunch of other options. I'm surprised Pulumi didn't yell at me that I was missing these settings?
  • c

    clever-nest-47198

    07/18/2019, 5:33 PM
    You can see that Pulumi preview does show that Pulumi is aware that the missing options do exist and are set in AWS, but doesn't complain that my code is missing those options. Pulumi goes through with the import successfully, but I think this is bad behavior since I'm missing random options I had configured.
    Untitled
  • c

    clever-nest-47198

    07/18/2019, 5:35 PM
    I can't quite figure out how Pulumi is deciding what properties must be defined before import, and which seem to just be optional. If I leave off tags, or listeners, Pulumi yells at me that there's a config difference, but if I leave out subnets, sourceSecurityGroup, securityGroups, idleTimeout, healthCheck, crossZoneLoadBalancing, connectionDraining, connectionDrainingTimeout, or availabilityZones, Pulumi doesn't care.
    b
    • 2
    • 1
Powered by Linen
Title
c

clever-nest-47198

07/18/2019, 5:35 PM
I can't quite figure out how Pulumi is deciding what properties must be defined before import, and which seem to just be optional. If I leave off tags, or listeners, Pulumi yells at me that there's a config difference, but if I leave out subnets, sourceSecurityGroup, securityGroups, idleTimeout, healthCheck, crossZoneLoadBalancing, connectionDraining, connectionDrainingTimeout, or availabilityZones, Pulumi doesn't care.
b

broad-dog-22463

07/18/2019, 5:47 PM
@microscopic-florist-22719 this will be in your wheelhouse
View count: 1