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

    adamant-dress-73325

    09/23/2019, 7:38 PM
    Is anyone getting installation errors on pulumi like the below? I am trying to install pulumi deps using yarn, but grpc is not building it seems.
    node-pre-gyp ERR! Completion callback never invoked!
    node-pre-gyp ERR! System Darwin 18.7.0
    node-pre-gyp ERR! command "/usr/local/Cellar/node/12.6.0/bin/node" "/Users/snip/projects/snip/deployment/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
    node-pre-gyp ERR! cwd /Users/snip/projects/snip/deployment/node_modules/grpc
    node-pre-gyp ERR! node -v v12.6.0
    node-pre-gyp ERR! node-pre-gyp -v v0.13.0
    m
    b
    • 3
    • 6
  • b

    billowy-laptop-45963

    09/23/2019, 9:03 PM
    I'm trying out integration testing and getting what seems to be an error due to an upstream api change:
    <http://github.com/pulumi/pulumi/pkg/resource/deploy/providers/registry.go:326:30|github.com/pulumi/pulumi/pkg/resource/deploy/providers/registry.go:326:30>: multiple-value uuid.NewV4() in single-value context
  • b

    billowy-laptop-45963

    09/23/2019, 9:08 PM
    Nevermind I reinstalled everything as a go module and it seems to work now
  • f

    flat-guitar-86436

    09/23/2019, 10:24 PM
    What’s the best way of
    .apply
    multiple `Output`s ?
    /**
     * DevOps Role
     *
     * @description role to be assumed only by IAM entities in the Admin Account.
     */
    export const devopsRole = new aws.iam.Role(`${INFRA_CONFIG.ORG_NAME}-devops`, {
      assumeRolePolicy: adminAccount.id.apply(id =>
        JSON.stringify({
          Version: '2012-10-17',
          Statement: [
            {
              Action: 'sts:AssumeRole',
              Principal: {
                AWS: [id]
              },
              Effect: 'Allow',
              Sid: ''
            }
          ]
        })
      )
    });
    g
    • 2
    • 4
  • e

    elegant-crayon-4967

    09/23/2019, 11:33 PM
    I'm doing the simple
    Clusters: EKS - Hello World!
    tutorial, I updated my pulumi.yaml to use a profile and getting this error
    unable to recognize "/var/folders/xm/_hfzjmqs3571_r9_myjkmstm0000gn/T/tmp-767539RB6eLkfe2Z.tmp": Unauthorized
    i
    • 2
    • 3
  • l

    little-garage-43399

    09/24/2019, 12:07 AM
    Hi, I want to run CM tools only if a new instance has been created (not on preview, or 'up' that affects other resources), can it be done via Pulumi?
    s
    • 2
    • 1
  • f

    fancy-translator-86814

    09/24/2019, 2:23 AM
    Is there a way not to append hash after the resource name?
    w
    • 2
    • 2
  • i

    incalculable-engineer-92975

    09/24/2019, 3:48 PM
    When tearing down an EKS cluster, I need to wait after deleting an alb-ingress for the controller to notice the deletion and remove the associated AWS ALB. Is that possible to do?
    f
    • 2
    • 10
  • i

    incalculable-engineer-92975

    09/24/2019, 3:48 PM
    If not, are there cleanup handlers or something I can add to accomplish this?
  • s

    swift-postman-59572

    09/24/2019, 5:35 PM
    I want to discover the IPs of some EC2 that are stood up through an aws autoscaling group. These IPS need to be included in our application environment. The standing up of the EC2s and the creation of the application environment config are done in the same pulumi project. Anyone know of a good solution?
  • b

    broad-dog-22463

    09/24/2019, 5:36 PM
    You could shell out from your code to the AWS CLI for Lookup
    👍 1
    s
    g
    • 3
    • 4
  • c

    cold-car-23440

    09/24/2019, 8:29 PM
    does pulumi have the concept of provisioners like terraform does? Example use-case 1: Running an ansible playbook against newly provisioned infrastructure. Example use-case 2: Bootstrap infrastructure with Puppet agent
    b
    • 2
    • 7
  • w

    worried-city-86458

    09/25/2019, 5:40 AM
    const monitoringNamespace = new k8s.core.v1.Namespace("monitoring", { metadata: { name: "monitoring" } }, { provider : provider });
    
    const prometheusOperatorChart = new k8s.helm.v2.Chart("po", {
        repo: "stable",
        chart: "prometheus-operator",
        namespace: monitoringNamespace.metadata.name,
        values: {
            alertmanager: { persistentVolume: { storageClass: "gp2" } },
            server: { persistentVolume: { storageClass: "gp2" } }
        }
    }, { provider: provider });
  • w

    worried-city-86458

    09/25/2019, 5:41 AM
    Gives me a warning:
    Diagnostics:
      kubernetes:helm.sh:Chart (po):
        [Can't preview] all chart values must be known ahead of time to generate an accurate preview.
  • w

    worried-city-86458

    09/25/2019, 5:41 AM
    Not sure how to make sure the namespace is created first and not get this warning
    r
    s
    • 3
    • 11
  • w

    worried-city-86458

    09/25/2019, 5:42 AM
    Adding
    dependsOn
    makes no difference
  • r

    rhythmic-finland-36256

    09/25/2019, 8:44 AM
    Implementing dynamic resource provider for several resources and sharing configuration? Any best practices for that?
    c
    g
    f
    • 4
    • 19
  • t

    thankful-optician-22583

    09/25/2019, 2:06 PM
    (Kubernetes) is there a best practice for creating a hierarchical config structure for the application. For example a base configurations that has app name, memory, cpu, & then consume the Pulumi.prod.yaml. Seems like pulumi is able to understand the stack and look to a specific file. Can there be a tree of config files that it consumes.
    Pulumi.base.yaml -> Pulumi.prod.yaml  &&  Pulumi.base.yaml -> Pulumi.stage.yaml
    c
    • 2
    • 2
  • t

    thankful-optician-22583

    09/25/2019, 3:54 PM
    Right now, I wrote a script to set values before running
    Pulumi config set X, Pulumi set config Y,  Pulumi up
    For example, the image tag to pull from ecr, memory size. So its not sitting in a config file but its a set of values in a file that is consumed and set prior to deployment. We did this to eliminate config duplication.
  • n

    nice-airport-15607

    09/25/2019, 6:25 PM
    https://pulumi-community.slack.com/archives/CB36DSVSA/p1569431669010400
    c
    • 2
    • 2
  • h

    handsome-actor-1155

    09/25/2019, 6:35 PM
    Hello, I have a question regarding deploying helm charts with Pulumi. I understand that tiller does not need to be installed as Pulumi expands the chart and submits it to k8s. That being said, I'm trying to deploy an operator and it's components to k8s and can do so manually with helm + tiller but if I try to use Pulumi, the second component fails to deploy. (Rest in comments)
    c
    • 2
    • 113
  • p

    purple-appointment-43233

    09/25/2019, 7:30 PM
    Hello all, I’m trying to setup an ALB that invokes a lambda function; do y’all have any examples of setting up the certificate/dns (route 53)?
  • t

    thankful-optician-22583

    09/26/2019, 12:56 AM
    Hey guys, so I was looking at pulumi/pulumi/runtime/config.js and I noticed that the config file that we create for each stack, is set into an env variable called
    PULUMI_CONFIG
    This means that when we do
    Pulumi Up
    the file is loaded as a string and parsed into a map. This would mean that if we wanted to have a hierarchical config structure for the config, we need to append the base config to this env_variable
    PULUMI_CONFIG
    . My suggestion seems so hacky. As a team we decided to create a wrapper class for the config that reads from the pulumi Config class and also from a file. This way we can have a one level hierarchical structure.
  • t

    thankful-optician-22583

    09/26/2019, 12:57 AM
    I was wondering if anybody had any opinion or correction of my understanding
  • w

    worried-city-86458

    09/26/2019, 1:03 AM
    I'd also like to have hierarchical config. There's an issue for it: https://github.com/pulumi/pulumi/issues/2307
  • b

    big-caravan-87850

    09/26/2019, 1:10 AM
    Someone else in the issue you mentioned above would like a solution similar to the following: https://github.com/pulumi/examples/blob/master/aws-ts-static-website/Pulumi.yaml I think putting the shared configs in the Pulumi.yaml file seems like a reasonable place. If there are stack specific configs they would take precedence and it has the added benefit of not having to change any existing pulumi programs.
  • f

    freezing-artist-51725

    09/26/2019, 3:33 AM
    I am trying to add a node pool to a gke cluster. I have the following
    gpu_node_pool = NodePool(
        resource_name="gpu-pool-0", 
        cluster=k8s_cluster.name,
        initial_node_count=0,
        autoscaling={"minNodeCount":0, "maxNodeCount":1},
        node_config={"guest_accelerators": ["count", "1", "type", "nvidia-tesla-p100"], 
                    "disk_size_gb": 200, 
                    "diskType": "pd-standard",
                    "imageType": "COS"})
  • f

    freezing-artist-51725

    09/26/2019, 3:34 AM
    However, I am getting this error.
  • f

    freezing-artist-51725

    09/26/2019, 3:34 AM
    error: gcp:container/nodePool:NodePool resource 'gpu-pool-0' has a problem: node_config.0.guest_accelerator.0: expected object, got string
        error: gcp:container/nodePool:NodePool resource 'gpu-pool-0' has a problem: node_config.0.guest_accelerator.1: expected object, got string
        error: gcp:container/nodePool:NodePool resource 'gpu-pool-0' has a problem: node_config.0.guest_accelerator.2: expected object, got string
        error: gcp:container/nodePool:NodePool resource 'gpu-pool-0' has a problem: node_config.0.guest_accelerator.3: expected object, got string
  • f

    freezing-artist-51725

    09/26/2019, 3:35 AM
    The node config def is the following for "guest_acclerators":
    * `guest_accelerators` (`pulumi.Input[list]`)
            
                * `count` (`pulumi.Input[float]`)
                * `type` (`pulumi.Input[str]`)
Powered by Linen
Title
f

freezing-artist-51725

09/26/2019, 3:35 AM
The node config def is the following for "guest_acclerators":
* `guest_accelerators` (`pulumi.Input[list]`)
        
            * `count` (`pulumi.Input[float]`)
            * `type` (`pulumi.Input[str]`)
View count: 1