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

    busy-air-16359

    09/26/2019, 10:38 AM
    I’m using pulumi to manage gke cluster but everytime I’m doing a
    pulumi up
    it replaces all my nodepools (although nothing changed). The diff says
    ~nodeConfig
    . Any way to find out what the diff is?
    b
    • 2
    • 5
  • i

    icy-engineer-10830

    09/26/2019, 2:13 PM
    In the terraform gcp code for an instance template there's the ability to set lifecycle data but I do not see the equivalent in pulumi. am I missing something or is the not present?
    w
    c
    g
    • 4
    • 6
  • b

    broad-dog-22463

    09/26/2019, 2:18 PM
    @icy-engineer-10830 can you link me to it?
    i
    • 2
    • 4
  • c

    cold-car-23440

    09/26/2019, 2:19 PM
    are you referring to the option that allows you to specify whether a replacement resource is created before or after a destroy @icy-engineer-10830?
  • c

    cold-car-23440

    09/26/2019, 2:20 PM
    @broad-dog-22463 i think he’s referring to this https://www.terraform.io/docs/configuration/resources.html#lifecycle-lifecycle-customizations
  • i

    important-librarian-11689

    09/26/2019, 2:29 PM
    hi there o/ I see pulumi scripts need to be invoked using a custom runtime, "pulumi". I would be interested in using pulumi as a library, from a custom k8s operator. Is this possible somehow - for example if I run the engine in a separate k8s pod?
    b
    w
    • 3
    • 3
  • i

    icy-engineer-10830

    09/26/2019, 2:57 PM
    this is given as an example for a GCP `InstanceTemplate`:
    * const instanceTemplate = new gcp.compute.InstanceTemplate("instanceTemplate", {
     *     // boot disk
     *     disks: [{}],
     *     machineType: "n1-standard-1",
     *     namePrefix: "instance-template-",
     *     // networking
     *     networkInterfaces: [{}],
     *     region: "us-central1",
     * });
    but fails on creation with:
    Diagnostics:
      gcp:compute:InstanceTemplate (instanceTemplate):
        error: gcp:compute/instanceTemplate:InstanceTemplate resource 'instanceTemplate' has a problem: "name": conflicts with name_prefix
    g
    w
    • 3
    • 6
  • s

    stale-park-1622

    09/26/2019, 4:26 PM
    Hi, When I build a docker image for ECR using the awsx package for node i.e.
    awsx.ecr.Repository
    &&
    repository.buildAndPushImage
    how can I add a custom tag to the image? right now, it is being tagged as 'latest'. I would like to add a custom tag name for the image. Is this possible? thanks
  • n

    nice-cat-91582

    09/26/2019, 4:44 PM
    Hey folks - I'm getting a rather confusing error when trying to create a lambda via a
    lambda.CallbackFunction
  • n

    nice-cat-91582

    09/26/2019, 4:44 PM
    when i execute the lambda, I get this
    "errorType": "TypeError",
      "errorMessage": "Symbol.prototype [ @@toPrimitive ] requires that 'this' be a Symbol"
  • n

    nice-cat-91582

    09/26/2019, 4:45 PM
    which is coming from some of the boilerplate code that
    lambda.CallbackFunction
    generates
  • n

    nice-cat-91582

    09/26/2019, 4:45 PM
    specifically out of the last line of this:
  • n

    nice-cat-91582

    09/26/2019, 4:45 PM
    var __fn_prototype = {};
    Object.defineProperty(__fn_prototype, "constructor", { configurable: true, writable: true, value: __f1 });
    __fn.prototype = __fn_prototype;
    var __fn_sym = Object.create(global.Symbol.prototype);
    __fn[__fn_sym] = __fn;
  • n

    nice-cat-91582

    09/26/2019, 4:45 PM
    anyone happen to understand what would be causing that error? I've tried it on both the Node 8 and Node 10 runtimes
    c
    • 2
    • 3
  • e

    early-musician-41645

    09/26/2019, 5:27 PM
    I'm using the
    awsx
    module for creating a Windows ec2 instance. Is there any way to specify that the instance should join a Microsft AD domain? The domain controller already exists as a managed Microsoft AD directory in AWS. I can get the instance to join "seamlessly" by creating it in the console: https://docs.aws.amazon.com/directoryservice/latest/admin-guide/launching_instance.html Or by logging in to the instance and configuring it: https://docs.aws.amazon.com/directoryservice/latest/admin-guide/join_windows_instance.html How can I achieve this with Pulumi?
    a
    c
    • 3
    • 16
  • q

    quick-australia-29016

    09/26/2019, 6:24 PM
    Could you point me the way to attach pulumi to vscode debugger?
    👀 1
    c
    w
    • 3
    • 6
  • h

    handsome-actor-1155

    09/26/2019, 6:32 PM
    Quick question, can I set a pulumi config from within the program or is it CLI only?
    w
    • 2
    • 2
  • b

    billowy-laptop-45963

    09/26/2019, 6:54 PM
    what version of go are you guys using to use integration testing?
  • b

    billowy-laptop-45963

    09/26/2019, 7:36 PM
    is there an absolute minimal example repo I could clone and
    go test
    to see if the tooling versions I have are ok
  • s

    shy-daybreak-62210

    09/26/2019, 7:55 PM
    I was actually asked to implement a nightmare scenario everyone fears of IaC solutions like tf/pulumi: Destroy everything not managed. Is there a hook to destroy inverse-state?
    b
    • 2
    • 1
  • w

    worried-city-86458

    09/26/2019, 8:42 PM
    Has anybody got the prometheus-operator installing via pulumi on an eks cluster using the helm chart? I'd be interested to see your config values...
  • d

    damp-book-35965

    09/26/2019, 9:12 PM
    Is there a way to replicate
    pulumi stack ls
    in typescript code currently ?
  • a

    adamant-dress-73325

    09/26/2019, 9:27 PM
    We are seeing pulumi take 3+ minutes to read aws:ec2:Vpc and subnets during an update? This is slowing our deployments quite a bit, any reason this might be happening?
    const vpc = awsx.ec2.Vpc.fromExistingIds("vpc", {
      privateSubnetIds: vpcPrivateSubnetIds,
      publicSubnetIds: vpcPublicSubnetIds,
      vpcId
    });
  • b

    brash-plastic-65797

    09/26/2019, 9:52 PM
    AWS suggests that you create alarms for EC2 instances which recover/reboot the instance if the status checks fail. This is easy to create through the AWS console, but having some trouble with Pulumi
    • 1
    • 7
  • w

    worried-city-86458

    09/27/2019, 12:19 AM
    https://github.com/helm/charts/tree/master/stable/prometheus-operator#kubeproxy Is there an easy way to do the above with Pulumi?
    w
    c
    • 3
    • 10
  • w

    worried-city-86458

    09/27/2019, 12:20 AM
    i.e. patch metricsBindAddress from 127.0.0.1:10249 to 0.0.0.0:10249, or more generally how to patch a k8s resource
  • w

    worried-city-86458

    09/27/2019, 4:57 AM
    Re prometheus operator above, nearly there:
    const monitoringNamespace = new k8s.core.v1.Namespace("monitoring", { metadata: { name: "monitoring" } }, { provider : provider });
    
    function setMonitoringNamespace(obj: any) {
        if (obj.metadata.namespace === undefined) {
            obj.metadata.namespace = "monitoring";
        }
    }
    
    const prometheusOperatorChart = new k8s.helm.v2.Chart("po", {
        repo: "stable",
        chart: "prometheus-operator",
        namespace: "monitoring",
        transformations: [ setMonitoringNamespace ],
        values: {
            kubeControllerManager: { enabled: false },
            kubeEtcd: { enabled: false },
            kubeScheduler: { enabled: false },
            kubeTargetVersionOverride: k8sVersion,
            prometheusOperator: { createCustomResource: false }
        }
    }, {
        dependsOn: monitoringNamespace,
        provider: provider
    });
  • w

    worried-city-86458

    09/27/2019, 4:57 AM
    Now just seem to have a problem that the grafana-test pod fails and Pulumi waits for it until timeout
  • w

    worried-city-86458

    09/27/2019, 5:00 AM
    pulumi-up.txt
  • w

    worried-city-86458

    09/27/2019, 5:01 AM
    Not sure how to work around the test pod failure.
Powered by Linen
Title
w

worried-city-86458

09/27/2019, 5:01 AM
Not sure how to work around the test pod failure.
View count: 2