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

    bumpy-easter-72049

    02/25/2021, 8:36 PM
    is the only way to create an azure ad application using the AzureAD provider (that is, you can’t do it with azure-nextgen?)
  • s

    sparse-intern-71089

    02/25/2021, 10:10 PM
    This message was deleted.
    l
    s
    • 3
    • 2
  • c

    cuddly-actor-99406

    02/25/2021, 10:46 PM
    I'm trying to apply a bunch of k8s resources from a single file with k8s.yaml.ConfigFile(). Is there any guarantee that they are applied in order as read from the file? I'm noticing e.g. CRDs not being applied first which is causing other things to fail. Thanks.
    b
    • 2
    • 5
  • f

    full-winter-70537

    02/26/2021, 3:07 AM
    Is there a way of knowing if Pulumi is going to destroy a resource prior to running
    pulumi up
    ? When I run preview it simply says
    update
    , with no indication of what impact the update will have. My use case is that I am running on PaaS (App Service & servless in Azure) and I want to be able to run updates against the live infrastructure. In order to do this safely, I need to assess if resources will be destroyed & recreated or merely updated.
    b
    s
    • 3
    • 3
  • f

    full-winter-70537

    02/26/2021, 3:38 AM
    Perhaps I need to rephrase my earlier question: What are some good technique(s) for either a) ensuring resources aren't destoryed or b) warning/stopping before destroying resources?
    b
    k
    • 3
    • 6
  • b

    bitter-river-54082

    02/26/2021, 10:26 AM
    Hey, I have an issue with cloudwatch metrics creation. I have
    rds.ts
    where I create an AWS RDS instance :
    import * as config from "./config"
    import * as iam from "./iam"
    import * as secrets from "./secrets"
    import * as vpc from "./vpc"
    
    const dbSubnets = new aws.rds.SubnetGroup("dbsubnets", {
        subnetIds: vpc.vpc.privateSubnetIds,
    });
    
    let analyticsDBConf = config.services.aws.analyticsdb
    export const instance = new aws.rds.Instance("analyticsdb", {
        engine: "postgres",
        engineVersion: "12.5",
        
        instanceClass: analyticsDBConf.instanceType!,
        
        name: "DBName",
        username: "DBMasterUser",
        password: secrets.analyticsdb.passsword.result,
        
        dbSubnetGroupName: dbSubnets.name,
        vpcSecurityGroupIds: [
            vpc.sgAnalyticsDB!.id
        ],
        domainIamRoleName: iam.servicesInstanceRole.name,
        
        allocatedStorage: 20,
        maxAllocatedStorage: 100,
        backupRetentionPeriod: 7,
        backupWindow: "05:18-05:48",
        skipFinalSnapshot: true,
    });
    Then, in
    cloudwatch.ts
    , I try to create cloudwatch metric alarm on the RDS instance's free disk space :
    import * as analyticsdb from "./rds"
    import * as sns from "./sns"
    import * as config from "./config"
    import * as aws from "@pulumi/aws"
    
    new aws.cloudwatch.MetricAlarm("analyticsdb-storage", {
        alarmActions: [sns.alarmsTopic],
        alarmDescription: "Monitoring space usage on analytics DB",
        comparisonOperator: "GreaterThanThreshold",
        datapointsToAlarm: 10,
        evaluationPeriods: 10,
        metricName: "FreeStorageSpace",
        namespace: "AWS/RDS",
        dimensions: {
            DBInstanceIdentifier: analyticsdb.instance.identifier
        },
        okActions: [sns.alarmsTopic],
        period: 60,
        statistic: "Maximum",
        threshold: 90,
        tags: {
            deployment: config.deploymentName,
        },
    }, {
        dependsOn: [
            analyticsdb.instance
        ],
    })
    But when I do
    pulumi up
    I keep getting the following exception on preview, even though I've added an explicit dependency on the RDS instance :
    TypeError: Cannot read property 'identifier' of undefined
            at Object.<anonymous> (/home/ort/work/private-cloud/cloudwatch.ts:15:52)
    b
    • 2
    • 6
  • f

    flat-insurance-25294

    02/26/2021, 12:10 PM
    Did Pulumi change its search functionality on the docs site?
    b
    b
    l
    • 4
    • 14
  • f

    flat-insurance-25294

    02/26/2021, 12:25 PM
    Does anyone know where the repo for https://github.com/joeduffy/project-cloudysky is? Related to

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

  • b

    broad-dog-22463

    02/26/2021, 12:29 PM
    @flat-insurance-25294 it looks from the video to be a private repo
  • f

    flat-insurance-25294

    02/26/2021, 12:29 PM
    Ah.
  • f

    flat-insurance-25294

    02/26/2021, 12:29 PM
    Well I had a question regarding that video.
  • f

    flat-insurance-25294

    02/26/2021, 12:30 PM
    How would you separate the stacks between
    infra
    and
    app
    When dealing with CI while keeping one project on pulumi and one github repo?
    b
    • 2
    • 67
  • b

    broad-dog-22463

    02/26/2021, 12:31 PM
    if you are looking at using our GitHub Action, please be aware - in about 1 hour - we are publishing a new major version that has changed to be native to Actions rather than docker based
  • f

    flat-insurance-25294

    02/26/2021, 12:31 PM
    ah I preferred docker based ones!
  • b

    broad-dog-22463

    02/26/2021, 12:32 PM
    the docker based action will be deprecated and be in use for 6 more months
  • f

    flat-insurance-25294

    02/26/2021, 1:06 PM
    Is there a way to run pulumi up without a stack and create it in code? LIke ephemeral stacks, the docs mentioned it but never said how
  • f

    flat-insurance-25294

    02/26/2021, 1:07 PM
    https://www.pulumi.com/docs/guides/testing/integration/#ephemeral-environments
  • f

    flat-insurance-25294

    02/26/2021, 1:19 PM
    @broad-dog-22463 Does that mean that I can’t reference pulumi workflow in my own docker image? The reason is, we got our on image for running on Github actions, it runs some scripts that eventually triggers Pulumi
    b
    • 2
    • 2
  • t

    thousands-notebook-24918

    02/26/2021, 1:25 PM
    pulumi supports aws timestream ?
  • f

    flat-insurance-25294

    02/26/2021, 1:47 PM
    What if I don’t use Pulumi actions, but make my own and just install pulumi CLI?
  • b

    broad-dog-22463

    02/26/2021, 1:53 PM
    our Pulumi docker images will not be going away - just the action based on docker
  • r

    rapid-raincoat-36492

    02/26/2021, 4:53 PM
    Hello, I am looking into moving to Pulumi from terraform, and am wondering about accessing pulumi output values in application code. Say I want a simple server that displays the VPC the app resides in. With terraform I would create the VPC, then create the server, passing in the VPC id as an env var, and then in my application code access the env var value to display. With Pulumi, if my infrastructure code and app code were both in the same language, like say typescript, would I be able to directly import the value of the VPC id somehow? What would getting the value of that output look like, and what security would need to be set up so that only select apps could access sensitive state?
    b
    • 2
    • 1
  • f

    flat-insurance-25294

    02/26/2021, 8:47 PM
    @billowy-army-68599 Woaaah, jesus christ, this new
    automation
    is stuff I asked for a year ago.
    b
    • 2
    • 3
  • f

    flat-insurance-25294

    02/26/2021, 8:47 PM
    LocalWorkspace.createOrSelectStack
  • f

    flat-insurance-25294

    02/26/2021, 8:48 PM
    Can we run that on CI to run our Pulumi stuff, and create new stacks on teh fly?
    b
    r
    • 3
    • 8
  • b

    bumpy-easter-72049

    02/26/2021, 9:05 PM
    is there a way to have a config file that is common to a group of stacks? for example, in the parent folder of all of my stacks?
  • l

    lively-ice-73493

    02/26/2021, 9:27 PM
    message has been deleted
  • b

    broad-dog-22463

    02/26/2021, 9:57 PM
    Thanks @lively-ice-73493 - this is excellent!
    l
    • 2
    • 2
  • b

    brief-spoon-92183

    02/26/2021, 11:19 PM
    Hey everyone! 👋 Have any of you run into an issue with
    pulumi.runtime.registerStackTransformation
    not being invoked? I want to apply tags to all resources, and am following this article, but no luck with getting this to work 😞 Pulumi version is
    2.19.0
    , and I've followed this Github issue but the problem persists. Any help is greatly appreciated! 🍻
    b
    • 2
    • 4
  • w

    wide-crayon-4093

    02/27/2021, 10:57 AM
    has anyone had trouble with go runtime spending ridiculous amount of time building and linking? i've rewrote my stack in go figuring it would give me a faster bootstrap, but instead i'm observing like a 30-60 second latency before I even get to running it. i'm on go 1.16 and macos
    l
    • 2
    • 3
Powered by Linen
Title
w

wide-crayon-4093

02/27/2021, 10:57 AM
has anyone had trouble with go runtime spending ridiculous amount of time building and linking? i've rewrote my stack in go figuring it would give me a faster bootstrap, but instead i'm observing like a 30-60 second latency before I even get to running it. i'm on go 1.16 and macos
l

lemon-agent-27707

02/27/2021, 3:35 PM
This is a known issue. Due to a lack of generics, we have to generate a very large number of types and functions in our Go SDKs. In v2.18.2 we rolled out an update that improved this by ~50%. I would make sure your pulumi Go SDK and provider SDKs are at the latest versions. One thing that might help is using a
go install
based workflow. By default, pulumi invokes your program with
go run main.go
but you can set the
options.binary
property in your pulumi.yaml to point to a precompiled binary. This way you can run a
go install
to do an incremental build and then have
pulumi up
use the pre-built binary. https://www.pulumi.com/docs/intro/concepts/project/#pulumi-yaml
There is also a #golang channel that you can join for more Go discussion.
w

wide-crayon-4093

02/28/2021, 9:46 AM
thank you so much! i'll start looking into it
View count: 1