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

    limited-solstice-34584

    07/09/2020, 1:50 AM
    it was db.,arn
  • l

    limited-solstice-34584

    07/09/2020, 1:50 AM
    db.arn
  • l

    limited-solstice-34584

    07/09/2020, 6:19 AM
    why is the following code not writing any secrets in aws?
  • l

    limited-solstice-34584

    07/09/2020, 6:19 AM
    let secretsToStore = {
      username: db.masterUsername,
      password: db.masterPassword,
      engine: db.engine,
      port: db.port,
      dbname: "macsgameboard",
      dbInstanceIdentifier: db.identifier,
    };
    
    const storedPassword = new aws.secretsmanager.SecretVersion(
      "macsdb_password",
      {
        secretId: 123,
        secretString: JSON.stringify(secretsToStore),
      },
      { dependsOn: db }
    );
  • a

    adventurous-garage-59192

    07/09/2020, 6:26 AM
    I updated to the 2.6 CLI today and am unable to run a
    pulumi destroy
    anymore.
    b
    s
    b
    • 4
    • 6
  • p

    proud-rain-51716

    07/09/2020, 6:33 AM
    Has anyone implemented a blue/green deploy EC2 AWS pipeline with Pulumi?
    • 1
    • 1
  • m

    magnificent-airport-79411

    07/09/2020, 9:25 AM
    Could anyone give me an example on how to use
    pulumi up -t
    ? I am trying to use
    pulumi up -t  azure:apimanagement:Service
    but it says, the target cannot be found.
    b
    • 2
    • 3
  • a

    astonishing-branch-30086

    07/09/2020, 9:38 AM
    Hi! I'm trying to put an existing AWS IAM configuration into Pulumi code. It's going well with users, groups and policies. However, I'm struggling with GroupMemberships and PolicyAttachments. It seems that I would need to be able to find the IDs of GroupMembership and PolicyAttachment resources to progress, but I don't know how I can get them from AWS. Any ideas? Thanks!
    • 1
    • 1
  • b

    bland-lamp-16797

    07/09/2020, 10:33 AM
    does pulumi have oh-my-zsh plugin ?
  • b

    bland-lamp-16797

    07/09/2020, 10:33 AM
    i could not find last time when i was looking. EDIT: Ohhh, with new version it has auto-compilation
  • b

    broad-dog-22463

    07/09/2020, 12:06 PM
    I am looking at this right now...
    b
    • 2
    • 4
  • l

    limited-solstice-34584

    07/09/2020, 1:46 PM
    does anyone have any documents on adding secrets in pulumi node.js?
  • l

    limited-solstice-34584

    07/09/2020, 1:46 PM
    aws
  • l

    limited-solstice-34584

    07/09/2020, 2:21 PM
    ok i think im close, but im getting:
  • l

    limited-solstice-34584

    07/09/2020, 2:21 PM
    Calling [toJSON] on an [Output<T>] is not supported. To get the value of an Output as a JSON value or JSON string consider either: 1: o.apply(v => v.toJSON()) 2: o.apply(v => JSON.stringify(v)) See https://pulumi.io/help/outputs for more details. This function may throw in a future version of @echoing-match-29901/pulumi.
  • l

    limited-solstice-34584

    07/09/2020, 2:23 PM
    i got it
  • l

    limited-solstice-34584

    07/09/2020, 2:23 PM
    i used the following for future reference:
  • l

    limited-solstice-34584

    07/09/2020, 2:24 PM
    const secret = new aws.secretsmanager.Secret("macsdb_password", {});
    
    const storedPassword = new aws.secretsmanager.SecretVersion(
      "macsdb_password",
      {
        secretId: secret.id,
        secretString: pulumi.output(secretsToStore).apply(JSON.stringify),
      },
      { dependsOn: db }
    );
    f
    • 2
    • 19
  • m

    millions-furniture-75402

    07/09/2020, 2:57 PM
    When running pulumi update, can I get information about the user who ran it at runtime? I want to inject it into AWS Tags.
    m
    • 2
    • 5
  • l

    limited-solstice-34584

    07/09/2020, 4:18 PM
    I have an issue where I am using pulumi to generate a lambda on a rest api endpoint, I will include the code, and the generated results in this thread. Any ideas?
    f
    f
    • 3
    • 80
  • c

    clever-plumber-29709

    07/09/2020, 5:08 PM
    Is there any guide or documentation on best practices when using self-managed backends? like setting up encryption and so on?
    b
    • 2
    • 4
  • c

    cool-egg-852

    07/09/2020, 6:47 PM
    Any idea why the github provider went with a breaking change and then reverted but without any backwards compatibility and no notice? No mention at all in the changelog.
    b
    w
    • 3
    • 17
  • l

    limited-solstice-34584

    07/09/2020, 6:52 PM
    Anyone know how to add cors to aws api gateway rest apis
  • l

    limited-solstice-34584

    07/09/2020, 6:52 PM
    ?
  • c

    chilly-hairdresser-56259

    07/09/2020, 7:12 PM
    Is it best practice to be very specific with your outputs. Meaning that with AWS when I create a VPC I create a specific output for VpcId?
  • l

    limited-solstice-34584

    07/09/2020, 7:16 PM
    I am not sure why its not working im using a gateway response object
  • b

    big-potato-91793

    07/09/2020, 7:34 PM
    Hey small question. we got this error today
    Updating (nonprod-east):
         pulumi:pulumi:Stack app-nonprod-east running 
      ~  kubernetes:<http://gitlab.devxtools.tktm.io:GitlabRunner|gitlab.devxtools.tktm.io:GitlabRunner> gitlab-runner updating [diff: ~metadata,spec]
      ~  kubernetes:<http://gitlab.devxtools.tktm.io:GitlabRunner|gitlab.devxtools.tktm.io:GitlabRunner> gitlab-runner updating [diff: ~metadata,spec]; error: update of resource prd2576/gitlab-runner-rxy8rm1g failed because the Kubernetes API server reported that it failed to fully initialize or become live: <http://gitlabrunners.gitlab.devxtools.tktm.io|gitlabrunners.gitlab.devxtools.tktm.io> "gitlab-runner-rxy8rm1g" not found
      ~  kubernetes:<http://gitlab.devxtools.tktm.io:GitlabRunner|gitlab.devxtools.tktm.io:GitlabRunner> gitlab-runner **updating failed** [diff: ~metadata,spec]; error: update of resource prd2576/gitlab-runner-rxy8rm1g failed because the Kubernetes API server reported that it failed to fully initialize or become live: <http://gitlabrunners.gitlab.devxtools.tktm.io|gitlabrunners.gitlab.devxtools.tktm.io> "gitlab-runner-rxy8rm1g" not found
         pulumi:pulumi:Stack app-nonprod-east running error: update failed
         pulumi:pulumi:Stack app-nonprod-east **failed** 1 error
      
     Diagnostics:
       pulumi:pulumi:Stack (app-nonprod-east):
         error: update failed
      
       kubernetes:<http://gitlab.devxtools.tktm.io:GitlabRunner|gitlab.devxtools.tktm.io:GitlabRunner> (gitlab-runner):
         error: update of resource prd2576/gitlab-runner-rxy8rm1g failed because the Kubernetes API server reported that it failed to fully initialize or become live: <http://gitlabrunners.gitlab.devxtools.tktm.io|gitlabrunners.gitlab.devxtools.tktm.io> "gitlab-runner-rxy8rm1g" not found
      
     Resources:
         1 unchanged
     Duration: 11s
    I wanted to know what was the reason of this error? Do you got any idea?
  • l

    limited-solstice-34584

    07/09/2020, 8:08 PM
    i cant find any good documentation on api gateway cors
  • c

    colossal-plastic-46140

    07/09/2020, 8:18 PM
    Hi Folks, I have a question about importing resources into pulumi. The documentation in some places suggests that once successfully importing a resource into the state file you must remove the import option. But there are blog posts that say removing it is optional, can someone help me understand the discrepancy https://www.pulumi.com/docs/reference/pkg/python/pulumi/
    • 1
    • 1
  • c

    cool-egg-852

    07/09/2020, 8:43 PM
    Did anything change with pulumi? We’re not sure if it’s related to change in pulumi, or an upgrade in typescript or what:
    Each member of the union type '{ <U>(func: (t: string) => Promise<U>): Output<U>; <U>(func: (t: string) => OutputInstance<U>): Output<U>; <U>(func: (t: string) => U): Output<...>; } | { ...; }' has signatures, but none of those signatures are compatible with each other.
    When trying to do:
    new gcp.pubsub.SubscriptionIAMMember(`${config.projectName}-${topicName}`, {
          member: serviceAccount.account.email.apply((e) => `serviceAccount:${e}`),
          role: 'roles/pubsub.subscriber',
          subscription: subscription.name,
        });
    • 1
    • 8
Powered by Linen
Title
c

cool-egg-852

07/09/2020, 8:43 PM
Did anything change with pulumi? We’re not sure if it’s related to change in pulumi, or an upgrade in typescript or what:
Each member of the union type '{ <U>(func: (t: string) => Promise<U>): Output<U>; <U>(func: (t: string) => OutputInstance<U>): Output<U>; <U>(func: (t: string) => U): Output<...>; } | { ...; }' has signatures, but none of those signatures are compatible with each other.
When trying to do:
new gcp.pubsub.SubscriptionIAMMember(`${config.projectName}-${topicName}`, {
      member: serviceAccount.account.email.apply((e) => `serviceAccount:${e}`),
      role: 'roles/pubsub.subscriber',
      subscription: subscription.name,
    });
Seems like everywhere we used
.apply
we are getting this
Basically this is breaking our entire IaC repo. 😞
Solved it, but not sure what broke it other than upgrading to pulumi 2.6.1.
Untitled
This was the diff that caused the issue.
I’m happy to open a issue, I just wanted to know if anyone else is having issues, or if something borked on our end.
Actually, weird, but now I can’t get the issue to happen after upgrading again.
My entire team and CI was having issues.
View count: 2