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

    average-lifeguard-69220

    07/23/2018, 2:38 PM
    I'm finding that when defining a nodejs lambda function via Pulumi that I must explicitly define all the required modules even though the required file already defines them... eg:
    // Alexa skill - lambda function 
    const alexaSkill = new cloud.Function("my-alexa-skill", (event, context, callback) => {
      // Not a big fan of redeclaring required libraries here - seems to be a limitation?
      require('ask-sdk');
      require('ask-sdk-core');
      require('ask-sdk-model');
      require('axios');
      require('moment-timezone');
      require('timezoner');
      require('node-geocoder');
      require('lodash');
      require('./alexa/my-service');
      require('./alexa/utils');
    
      // the alexa/index.js file has the appropriate require statements already
      const skill = require('./alexa/index');
      skill.handler(event, context, callback);
    });
    s
    l
    • 3
    • 6
  • a

    average-lifeguard-69220

    07/23/2018, 2:38 PM
    Curious if I'm missing something or if this is just the design/limitation of how it computes what to upload to AWS
  • a

    adamant-restaurant-73893

    07/23/2018, 5:45 PM
    This week, @white-balloon-205 will be talking 'Migrating to Pulumi' on our live stream: Wed, 25th July, 11am PDT. Join us then.

    https://www.youtube.com/watch?v=R3OfgFHkj3o▾

    s
    • 2
    • 1
  • m

    modern-diamond-82589

    07/23/2018, 10:14 PM
    Hello. I'm looking for some advice on how to correctly implement an AWS API Gateway SDK downloader as a custom resource/plugin class. This class would take arguments like the
    restApiId
    ,
    stageName
    ,
    sdkType
    , and
    destinationDirPath
    (all as `pulumi.Input<T>`s, of course), and after pulumi has created/updated the API Gateway in the AWS cloud, the downloader would fetch the generated SDK. I sort of understand the
    Resource
    ,
    CustomResource
    , and
    ComponentResource
    hierarchy's division of labor, and it seems like this type of thing fits in somewhere between CustomResource and ComponentResource. For a quick first attempt at getting things working, I subclassed ComponentResource using TypeScript. And it works for downloading the SDK, but it does so too early--during the preview step (which means it probably breaks if the
    RestApi
    and
    Stage
    resources haven't been created during a previous run). Is there a way to perform the download during the update step instead, after the API Gateway resources are created/updated but before the web client's S3 bucket is created/updated? While still implementing all the CRUD logic in TypeScript/JavaScript?
    l
    • 2
    • 60
  • s

    stocky-spoon-28903

    07/24/2018, 3:38 AM
    Hi all, I put together a Digital Ocean resource provider based on the Terraform bridge while trying to understand the mechanics of the bridge. Thanks to @microscopic-florist-22719 for helping with some dependency resolution earlier. I’ve not pushed any packages to (e.g) npm for now, but it seems to work pretty well locally! https://github.com/jen20/pulumi-digitalocean
    🎉 3
  • l

    limited-businessperson-17480

    07/24/2018, 9:53 AM
    Hello guys
    👋 2
  • h

    hundreds-twilight-49246

    07/24/2018, 11:25 AM
    Hello, I'm trying to follow the Pulumi + Azure instructions at https://pulumi.io/install/azure.html. I'm sure this has been asked before but I've tried searching on Google but cannot find it. How do I get the "client secret" that the instructions ask for?
    s
    b
    • 3
    • 4
  • h

    hundreds-twilight-49246

    07/24/2018, 1:09 PM
    More Pulumi + Azure problems following https://pulumi.io/install/azure.html. I've entered the settings via
    $ pulumi config set azure:clientId <clientID>
     $ pulumi config set azure:clientSecret <clientSecret> --secret
     $ pulumi config set azure:tenantId <tenantID>
    s
    b
    w
    • 4
    • 17
  • h

    hundreds-twilight-49246

    07/24/2018, 1:11 PM
    But I get the message
    error: no Pulumi.yaml project file found
    error: no Pulumi.yaml project file found
    error: no Pulumi.yaml project file found
    for each command. Any ideas, anyone?
  • h

    happy-forest-75452

    07/24/2018, 3:45 PM
    Hi, I'm wondering how to share a resource like an RDS database between two pulumi projects, one would be container based and the other a nodejs lambda (or could be a container too actually).
    b
    • 2
    • 2
  • s

    stocky-spoon-28903

    07/24/2018, 6:55 PM
    This is an interesting post, I wonder how much overlap there is here, and how many of the abstractions can be appropriated: https://blog.golang.org/go-cloud
  • a

    adamant-restaurant-73893

    07/25/2018, 3:02 PM
    Hello all - a reminder that we'll be live streaming as usual at 11am PDT today, talking about Migrating to Pulumi.

    https://www.youtube.com/watch?v=R3OfgFHkj3o▾

  • a

    adamant-restaurant-73893

    07/25/2018, 3:03 PM
    There's been a couple of glitches with YT where it may not flip to live as the stream starts, so I suggest a manual refresh on the page around that time!
  • a

    adamant-restaurant-73893

    07/25/2018, 7:24 PM
    New blog from @big-piano-35669 - tons of code examples http://blog.pulumi.com/program-the-cloud-with-12-pulumi-pearls
    👍 2
    s
    b
    m
    • 4
    • 7
  • b

    breezy-agency-15661

    07/26/2018, 6:28 AM
    Hello everybody! My first attempt at pulumi has failed ;( Was trying to run aws containers tutorial, got this: “Plan apply failed: creating urn😛ulumi:container-quickstart-dev::container-quickstart:☁️service:Service$aws:ecs/service:Service:😛ulumi-nginx: InvalidParameterException: Unable to assume the service linked role. Please verify that the ECS service linked role exists. status code: 400, request id: 9dd78dfb-909b-11e8-afda-af12f1327ba0 “pulumi-nginx-08a04d9" update failed”
    w
    • 2
    • 1
  • b

    breezy-agency-15661

    07/26/2018, 6:28 AM
    Anybody else run into this?
  • s

    shy-garden-29015

    07/26/2018, 5:16 PM
    Is there a GCP-specific channel right now?
  • i

    incalculable-sundown-82514

    07/26/2018, 5:18 PM
    there’s not, but feel free to shoot any GCP questions in here though!
  • n

    narrow-elephant-93283

    07/26/2018, 6:33 PM
    Hello! I'm probably missing something obvious but couldn't figure out how to roll back to a previous state. Let's say my latest pulumi update broke things and I want to go to a previous state. How do I do it?
    m
    b
    • 3
    • 3
  • s

    shy-garden-29015

    07/27/2018, 1:55 AM
    not to be the GCP guy, but is there any documentation for getting started? I'm poking around and I can't quite figure out how to do a basic deploy of a function a la AWS lambdas
    t
    • 2
    • 1
  • t

    tall-librarian-49374

    07/27/2018, 4:08 PM
    What do I do after I Ctrl-C'ed and now all is broken (aka
    panic: fatal: An assertion has failed
    on update and
    Duplicate resource URN...
    on refresh)?
    b
    w
    i
    • 4
    • 20
  • p

    polite-helicopter-45187

    07/27/2018, 7:18 PM
    Hey all - it would be nice to have some higher level abstractions to work with GCP. Are the maintainers amenable to some PRs against pulumi-cloud implementing part of that API for GCP?
    s
    c
    +2
    • 5
    • 8
  • s

    stocky-spoon-28903

    07/30/2018, 7:54 PM
    Typescript 3 is looking nice!
    ❤️ 2
  • b

    big-piano-35669

    07/31/2018, 5:40 AM
    find . -name 'package.json' | xargs sed -i '' 's/"typescript": ".*"/"typescript": "^3.0.0"/g'
    🎉
  • s

    strong-helicopter-19655

    07/31/2018, 8:08 AM
    Wishlist: moving a
    cloud.API
    to a production domain like
    <http://api.example.com|api.example.com>
    without getting my hands dirty with
    aws.acm
    and `api.attachCustomDomain`'s certificate content stuff. I don't know how this'd work in a provider-agnostic way…
    w
    • 2
    • 2
  • a

    adventurous-jordan-10043

    07/31/2018, 8:19 AM
    I'm wondering if there is a way to reference Pulumi resources after deployment in a node script? If I explicitly don't want to use cli stack outputs.
    w
    • 2
    • 7
  • s

    strong-helicopter-19655

    07/31/2018, 10:32 AM
    How do I find out what config options a module, e.g. pulumi/cloud-aws, supports?
    w
    • 2
    • 1
  • t

    tall-librarian-49374

    07/31/2018, 3:06 PM
    Any example of AWS Lambda triggered by a Cloudwatch event? Can't figure out how to pass Input payload.
  • a

    adventurous-jordan-10043

    07/31/2018, 3:16 PM
    This is how I do it @tall-librarian-49374
    Lambda_triggered_on_CloudWatch_event.ts
    👍 3
  • s

    stocky-spoon-28903

    07/31/2018, 4:23 PM
    @big-piano-35669 Have you seen this? https://github.com/awslabs/aws-cdk
    c
    • 2
    • 7
Powered by Linen
Title
s

stocky-spoon-28903

07/31/2018, 4:23 PM
@big-piano-35669 Have you seen this? https://github.com/awslabs/aws-cdk
c

colossal-beach-47527

07/31/2018, 4:26 PM
That’s really interesting. It looks like it’s very similar to Pulumi.
Though, it doesn’t support multi-cloud or some of the more advanced things we do with the Pulumi Service. e.g. I don’t know how the the
cdk
reacts if two people try to update the same set of resources at the same time. Or version tracking, etc.
s

stocky-spoon-28903

07/31/2018, 4:27 PM
It both is and isn’t. It’s more similar to Troposphere.
It generates cloudformation under the hood
(See the
cdk synth
command)
c

colossal-beach-47527

07/31/2018, 4:28 PM
Gotcha. So it doesn’t even try to do any execution engine-type stuff. It is just code -> cloud formation type tool?
s

stocky-spoon-28903

07/31/2018, 4:30 PM
That’s what it looks like to me. Someone just pointed it out to me and I thought it was interesting enough to raise in here, I’ve not tried it
View count: 1