• b

    bitter-army-70832

    5 months ago
    pulumi login <https://app.pulumi.com/georgeportillo>                                                                                                                                                                   ──(Fri,Apr15)─┘
    Manage your Pulumi stacks by logging in.
    Run `pulumi login --help` for alternative login options.
    Enter your access token:
    error: problem logging in: getting user info from <https://app.pulumi.com/georgeportillo>: unmarshalling response object: invalid character '<' looking for beginning of value
    b
    m
    +1
    6 replies
    Copy to Clipboard
  • f

    full-king-49894

    5 months ago
    Ok, trying to grok Pulumi outputs. My use-case is creating an AWS CloudFront distribution with a custom OriginAccessIdentity, in NodeJS. I have
    const originAccessIdentity = new aws.cloudfront.OriginAccessIdentity("oai", {
      comment: "Some comment",
    });
    But now I need to dereference the newly created ETag/Id to use in
    ...
      origins: [
        {
          domainName: bucketV2.bucketRegionalDomainName,
          originId: s3OriginId,
          s3OriginConfig: {
            originAccessIdentity: `origin-access-identity/cloudfront/${originAccessIdentity.id}` <=== Does not work
          },
        },
      ],
    ...
    It does not seem possible to simply use
    originAccessIdentity.id
    as the returned value is an object wrapped in pulumi sugar. I have tried all sorts of ways to try and get properties from the returned object including: originAccessIdentity.id originAccessIdentity.get() originAccessIdentity.get("id") originAccessIdentity.id.apply(id=>id) I am following along on https://www.pulumi.com/docs/intro/concepts/inputs-outputs/ as well as using step-through debugging via VSCode to inspect the returned object.
    f
    b
    41 replies
    Copy to Clipboard
  • s

    strong-intern-84363

    5 months ago
    Hi, someone in this community interested to participate in a project involving aws/gcp cloud, pulumi and python ? We are looking for a skilled pulumi person that could help us improve our existing pulumi/python code base/skills, either by coaching or by working on a per function basis. Let me know if interested and let’s have a chat about it. Have a nice day.
    s
    b
    2 replies
    Copy to Clipboard
  • b

    brainy-church-78120

    5 months ago
    hello wonderful people! @sticky-planet-19341, one of Pulumi's ux designers, will be running some short interviews next week to gather some information to help improve the experience of using Pulumi. we are looking to talk with people who have lots of experience with Pulumi and with folks new to Pulumi, along with people somewhere in the middle. If you have 15 minutes to spare some time next week, please add an emoji to this message or thread a comment, and we will reach out to you to get you scheduled.
    b
    1 replies
    Copy to Clipboard
  • k

    kind-translator-33451

    5 months ago
    Hello everybody nice to discover pulumi. Great idea. Do you know if a book has been edited in order to learn all pulumi functionalities ? Thanks
    k
    b
    +1
    3 replies
    Copy to Clipboard
  • w

    witty-vegetable-61961

    5 months ago
    Need a memory refresher, but wen I create a stack, do a create the yaml file manually in my project?
    w
    a
    +1
    9 replies
    Copy to Clipboard
  • b

    bright-horse-50102

    5 months ago
    Hi! I have a statefulset:
    const labels = { appClass: 'app' };
    
    export const appSvc = new k8s.core.v1.Service('app-svc', {
      metadata: {
        labels,
        name: 'app-svc',
      },
      spec: {
        type: 'ClusterIP',
        clusterIP: 'None',
        selector: labels,
      },
    }, {
      provider,
    });
    
    export const interactionsApp = new k8s.apps.v1.StatefulSet('app', {
      metadata: {
        labels,
      },
      spec: {
        serviceName: 'app-svc',
        replicas: 3,
        selector: {
          matchLabels: labels,
        },
        template: {
          metadata: {
            labels,
          },
          spec: {
            imagePullSecrets: [
              { name: registryCredentials.metadata.name },
            ],
            containers: [
              { /* ... */ },
            ],
          },
        },
      },
    }, {
      provider,
      dependsOn: [
        registryCredentials,
        databaseUser,
        redisInstance,
      ],
    });
    I hardcode the service's
    metadata.name
    to
    'app-svc'
    and the statefulset's
    spec.serviceName
    to
    'app-svc'
    as well. While this works, it feels wrong because now the resource name is not managed by pulumi. If I don't specify
    metadata.name
    in the service definition, and pass
    appSvc.metadata.name
    to the statefulset
    spec.serviceName
    , the statefulset is never created.. it waits for the
    appSvc
    to become ready, but the
    appSvc
    will never become ready because the statefulset hasn't been made yet:
    kubernetes:core/v1:Service (app-svc):
      error: 2 errors occurred:
          * resource default/app-svc-4kc42v1c was successfully created, but the Kubernetes API server reported that it failed to fully initialize or become live: 'app-svc-4kc42v1c' timed out waiting to be Ready
          * Service does not target any Pods. Selected Pods may not be ready, or field '.spec.selector' may not match labels on any Pods
    how do I solve this issue? Is hardcoding the service name a good idea?
    b
    l
    +1
    33 replies
    Copy to Clipboard
  • g

    gray-state-1017

    5 months ago
    I everybody! I have a simple question: I run a pulumi up with tho big charts: the cli is running for more than half an hour now and I would like to do something like a pulumi destroy. I tried logging in with another client and it says I should delete the lock. Is there an easier/faster way to proceed in such cases?
    g
    b
    21 replies
    Copy to Clipboard
  • a

    able-bird-91336

    5 months ago
    Hello all! So here is yet another question about
    Output<string>
    from a n00b. 😃 I have tried reading the q/a given in this Slack, the doc and other blogs but still can't really wrap my head around it. I don't get how to apply (pun) this to my situation. The solution I have today works, but feels wrong. Could somebody give some pointers on how to do this "for real"? The problem: I'm creating a Kubernetes Service "LoadBalancer" and need to get hold of the created IP-adr. I then need to use this IP-adr when creating a ConfigMap using it as data to create a file of it used by a Deployment. (please see code below for what I'm trying to do) The code (simplified, a lot more going on but it is the gist of it):
    // TypeScript & Azure
    myService.status.loadBalancer.ingress[0].ip.apply(hostname => {
          const yamlConfigGroup = new kubernetes.yaml.ConfigGroup(
               "deploymentconfigmap-yml",
               {
                 yaml: `
                 apiVersion: v1
                 kind: ConfigMap
                 metadata:
                   name: deployment-config
                   namespace: kube-system
                   labels:
                     k8s-app: theapp
                 data:
                   thedata.yml: |-
                     thesettings.monitors:
                     - type: mydata
                       hosts: ["${hostname}"]
                 `
               }
             );
    });
    This works but "feels" wrong because it doesn't show the creation in Preview.
    a
    b
    6 replies
    Copy to Clipboard
  • i

    incalculable-thailand-44404

    5 months ago
    Hi Folks, any recommended documentation with examples for setting up an AWS RDS cluster with read write RDS instances with Pulumi?
    i
    i
    3 replies
    Copy to Clipboard