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

    helpful-ice-5738

    02/15/2019, 12:13 AM
    I also used pulumi refresh 😕
  • h

    helpful-ice-5738

    02/15/2019, 1:05 AM
    How would you suggest folks add settings to apigateway stages vs to specific methods? Is there something in addition to
    MethodSettings
    ?
  • b

    brave-angle-33257

    02/15/2019, 1:34 AM
    getting some weird things.. I updated to pulumi/azure 16.9
    w
    s
    • 3
    • 40
  • h

    helpful-holiday-1475

    02/15/2019, 2:10 AM
    Hello guys, I'm looking into pulumi which looks great! I have a question about resource that can't be updated. Say I have a GKE cluster running production workloads. I want to change the machine type. Manually, I would follow this tutorial : https://cloud.google.com/kubernetes-engine/docs/tutorials/migrating-node-pool Is there a way to do this gracefully with pulumi?
    c
    • 2
    • 5
  • s

    sparse-action-84781

    02/15/2019, 4:02 PM
    This pulumi t-shirt you sent is really nice quality. Thanks guys 🙂
    😛ulumipus-8bit: 2
    g
    • 2
    • 2
  • c

    cuddly-eye-68174

    02/15/2019, 6:26 PM
    Hi Guys, I try to use microstacks and I would like to calculate a 3 available fix IPs 1/subnet in a VPC (in the current stack I know the vpcId), I need these IPs in different subnets. How should I do this with Pulumi? 😉 I can use 3rd party tools to achieve this goal
    b
    s
    • 3
    • 9
  • f

    faint-vegetable-61837

    02/15/2019, 9:50 PM
    Hello, just starting with Pulumi, and going though kubernetes the production way tutorial. My question is if Pulumi stores stack outputs in the stack state. The tutorial outputs AWS secrets, which maybe too sensitive to store inside Pulumi
    c
    • 2
    • 1
  • h

    helpful-ice-5738

    02/16/2019, 1:12 AM
    I have set up an api through a gaggle of pulumi components. One of them is a usage plan. The usage plan is not associating with my api, but it is set to.
    const demo_usage_plan = new aws.apigateway.UsagePlan("DemoUsagePlan", {
        apiStages: [
            {
                apiId: demo_api.id,
                stage: demo_deployment.stageName,
            },
        ],
        description: "demo",
    the demo_deployment and the demo_api exist. I ran refresh, no changes to UsagePlan (or api or the stage):
    ├─ aws:apigateway:UsagePlan       DemoUsagePlan
    I require an API Key. the API key is associated with the usage plan. The usage plan is not associated with an API --> I cannot use my API with an APIKey. I did have a stack working where this was fine. The code hasn’t changed and even if it had, I’d expect pulumi to err at the stageName if it doesn’t exist or something. Any thoughts on what I might have missed or if there’s a bug here?
    s
    g
    • 3
    • 24
  • m

    millions-judge-24978

    02/16/2019, 1:25 AM
    I'm trying to use the new
    deleteBeforeReplace
    option added in
    0.16.14
    (with typescript). I have the correct version of the
    @pulumi/pulumi
    package, but it does not seem to have this new option on the
    CustomResourceOptions
    type.
    w
    • 2
    • 6
  • p

    powerful-elephant-53462

    02/16/2019, 10:32 PM
    Where’s the best place to find information on configuration settings for the Kubernetes provider? (e.g. to set the GCP region, use “gcp:region”). GCP has a list of the configuration keys in https://pulumi.io/quickstart/gcp/index.html , and and Azure/AWS providers have similar pages w/ a configuration section. But, the kubernetes page doesn’t have a ‘Configuration’ section like the others https://pulumi.io/quickstart/kubernetes/index.html
    w
    • 2
    • 2
  • p

    proud-artist-4864

    02/17/2019, 1:12 PM
    Question related to using the python API, in particular the "get_x" functions in aws.ec2. In my main I want to get the VPC ID of an existing VPC that a new VPC will peer with. So I tried the obvious: another_vpc = ec2.get_vpc(tags={"Name":"another"}) But then, if I try to reference another_vpc, eg another_vpc.id I get the error: AttributeError: 'coroutine' object has no attribute 'id' Now looking at the source, I can see that get_vpc is defined as an async def, but I can't await it because I get an invalid syntax error. So, how do I call the various get_x functions in pulumi_aws.ec2 etc?
  • b

    brave-salesmen-42327

    02/17/2019, 4:33 PM
    Is there a best practice for logging into an aws ecr repository? For example, using the aws javascript sdk one can call
    ecr.getAuthorizationToken()
    and pass that to
    docker login
    to allow docker to push images. The CLI solution is to execute something like:
    $(aws ecr get-login --region $AWS_DEFAULT_REGION --no-include-email)
    . Is this baked into pulumi somewhere or do I need to wrangle all that manually?
    w
    • 2
    • 2
  • e

    enough-quill-87570

    02/18/2019, 12:26 AM
    Still no AWS Custom Authorizers for Cloud API (API Gateway)? https://github.com/pulumi/pulumi-aws/issues/352 I assume the other course of action here is to manually do the stack with regular pulumi-aws instead of cloud-aws?
    • 1
    • 3
  • e

    enough-quill-87570

    02/18/2019, 1:20 AM
    (Also having
    pulumi down
    resort to
    pulumi destroy
    would be a nice misc. change, with
    pulumi up
    being the apply command 😛)
  • f

    fast-boots-34053

    02/18/2019, 8:48 AM
    Hi, I am attempting to deploy k8s on google compute engine, My use case does not provide the feasibilty of deploying it on a GKE cluster. Can I achieve the same using pulumi or does pulumi only deploy on an existing cluster?
    c
    • 2
    • 24
  • g

    gifted-island-55702

    02/18/2019, 2:04 PM
    Hi. I would like to rename my stack - shall I ping someone from Pulumi team via a DM to make this happen?
    g
    • 2
    • 2
  • b

    better-quill-77184

    02/18/2019, 2:39 PM
    Hi, I’m trying to create a Google Cloud Function that is triggered on a push to a pre-existing pubsub topic. I can’t seem to find any API that allows me to use Pulumi’s magical “create a serverless function based on a closure” for GCP’s pubsub anywhere. Does this functionality exist in some other place? It doesn’t seem to be available anywhere in the pubsub Topic or Subscription interfaces.
  • e

    enough-quill-87570

    02/18/2019, 10:48 PM
    Anyone know how to pull a route resource Id from Cloud.API (AWS)? I am able to grab the restAPI id, but I'm trying to pull the list of routes w/ their associated resource Ids.
  • e

    enough-quill-87570

    02/18/2019, 10:48 PM
    Spitting out the Cloud.API seems to only reveal the routes, no IDs
  • f

    freezing-house-86375

    02/19/2019, 3:27 AM
    Hey guys, super excited to see this project. Is there some kind of "emulator" or something that I can use to do end-end testing?
  • e

    enough-quill-87570

    02/19/2019, 3:30 AM
    New to Pulumi myself, if you're wanting to test cloud infra + OS level you can do some InSpec tests with Pulumi outputs
  • f

    freezing-house-86375

    02/19/2019, 3:55 AM
    Hi @enough-quill-87570, thanks for answering. Do you have some reference that I can read more about it?
  • e

    enough-quill-87570

    02/19/2019, 3:56 AM
    Nothing that's tailored toward Pulumi, I use InSpec + Terraform in Jenkins automation... No reason Pulumi couldn't achieve the same thing. Willing to chat about anything in DMs, but only have worked with TF automation/testing.
  • e

    enough-quill-87570

    02/19/2019, 3:59 AM
    Also depends on the tests you're looking for...
  • f

    freezing-house-86375

    02/19/2019, 4:00 AM
    Ah, I see, it's not specific to Pulumi. I'll take a look to see how it works . I'll DM you when I need some help. Thanks a lot @enough-quill-87570
    👍 1
  • f

    freezing-house-86375

    02/19/2019, 4:10 AM
    One more question, I tried this exampl https://github.com/pulumi/examples/tree/master/cloud-ts-url-shortener , I see that it's written in typescript. But I didn't see the transpile process typescript => javascript . Is it handled automatically by palumi? or how does it works?
    e
    • 2
    • 4
  • f

    freezing-house-86375

    02/19/2019, 8:18 AM
    Hi guys
    import * as cloud from "@pulumi/cloud";
    import * as pulumi from "@pulumi/pulumi";
    
    const app = new cloud.API("my-app");
    
    const config = new pulumi.Config();
    const test = config.require("sendgrid_apikey");
    
    // Serve a simple REST API on `GET /hello`:
    app.get("/hello", async (_, res) => {
      res.json({
        cred: test
      });
    });
    
    export let url = app.publish().url;
    That code, and this code
    import * as cloud from "@pulumi/cloud";
    import * as pulumi from "@pulumi/pulumi";
    
    const app = new cloud.API("my-app");
    
    const config = new pulumi.Config();
    
    // Serve a simple REST API on `GET /hello`:
    app.get("/hello", async (_, res) => {
      res.json({
        cred: config.require("sendgrid_apikey")
      });
    });
    
    export let url = app.publish().url;
    The first one works, but the second one throws error like this
    2019-02-19T15:13:34.381+07:00[                my-app1c06b73d] (node:1) UnhandledPromiseRejectionWarning: Error: Cannot find module '@pulumi/pulumi/runtime/index.js'
        at Function.Module._resolveFilename (module.js:547:15)
        at Function.Module._load (module.js:474:25)
        at Module.require (module.js:596:17)
        at require (internal/module.js:11:18)
        at /var/task/__index.js:238:23
        at __f3.__f4 (/var/task/__index.js:269:6)
        at __f3.<anonymous> (/var/task/__index.js:374:24)
        at __f3.__f14 (/var/task/__index.js:382:34)
        at /var/task/__index.js:451:22
        at Generator.next (<anonymous>)
    g
    • 2
    • 3
  • f

    freezing-house-86375

    02/19/2019, 8:18 AM
    I am guessing it has something to on how pulumi deploy the app?
  • f

    freezing-house-86375

    02/19/2019, 8:19 AM
    Is there any rules on how to write the with pulumi
  • f

    freezing-house-86375

    02/19/2019, 8:19 AM
    ?
Powered by Linen
Title
f

freezing-house-86375

02/19/2019, 8:19 AM
?
View count: 1