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

    most-lighter-1731

    11/20/2019, 10:11 AM
    Hi, I was wondering if there was a way to force deployment of a new docker image in an
    ecs.EC2Service
    ?
    w
    q
    • 3
    • 2
  • i

    incalculable-engineer-92975

    11/20/2019, 1:39 PM
    Has anyone built a provider to manipulate resources within Codefresh? I'm not talking about using Pulumi from inside Codefresh, but creating pipelines, triggers, etc. using Pulumi.
  • n

    numerous-dream-98392

    11/20/2019, 4:50 PM
    I have a resource that is always tainted (spurious diff) - how do I go about tracking down if the issue is with pulumi or terraform plugin? Is state diff something that pulumi handles or is it entirely delegated to terraform?
  • c

    cool-egg-852

    11/20/2019, 5:29 PM
    Any reason
    vault.Policy
    requires the
    policy
    property as a string instead of an object?
    b
    w
    • 3
    • 30
  • t

    tall-carpet-41250

    11/20/2019, 6:19 PM
    I have a resource (Kubernetes Container Cluster) that won’t allow two properties to update at the same time (node count and version) as the api rejects them as mutually exclusive changes. This is a problem in Terraform as well that I haven’t quite figured a good solution for. Is there a good way in Pulumi to model updating a resource, then coming back in and updating that resource again as a separate task and not compound the changes to that resource with both updates?
    w
    • 2
    • 2
  • c

    cool-egg-852

    11/20/2019, 6:29 PM
    Is there a way to see what the diff is when you get
    Plan apply failed: inputs to import do not match the existing resource
    ?
    t
    b
    +2
    • 5
    • 26
  • s

    straight-insurance-27894

    11/20/2019, 8:19 PM
    @gentle-diamond-70147 Hi Cameron, I work with Duck over at Vizient. We are building our own pulumi module which wraps up various in house patterns into an easily consumable module. It's written in typescript against Azure. I am currently actively developing this typescript module 'vznpulumi' and trying to spin it up in a known good stack. The vznpulumi module sits at the same directory level as my working stack "hondofoozle". I have imported this local version of the vznpulumi module and the other modules we need like this
  • s

    straight-insurance-27894

    11/20/2019, 8:20 PM
    import * as aad from '@pulumi/azuread'; import * as pulumi from "@pulumi/pulumi"; import * as azure from "@pulumi/azure"; import * as vzn from '../vznpulumi/src';
  • s

    straight-insurance-27894

    11/20/2019, 8:20 PM
    But when running pulumi up, I get this wierd error.
  • s

    straight-insurance-27894

    11/20/2019, 8:20 PM
    Previewing update (vizientinc/sandbox): Type Name Plan Info + pulumi😛ulumi:Stack hondofoozle-sandbox create 1 error + └─ azure:core:ResourceGroup rg create Diagnostics: pulumi😛ulumi:Stack (hondofoozle-sandbox): error: Running program 'C:\work\repos\hondofoozle' failed with an unhandled exception: Error: EBUSY: resource busy or locked, open '\\.\pipe\pulumi1444445712\invoke_req' at Object.openSync (fs.js:448:3) at Object.tryGetSyncInvokes (C:\work\repos\hondofoozle\node_modules\@pulumi\pulumi\runtime\settings.js:163:29) at invokeSync (C:\work\repos\hondofoozle\node_modules\@pulumi\pulumi\runtime\invoke.js:95:36) at Object.invoke (C:\work\repos\hondofoozle\node_modules\@pulumi\pulumi\runtime\invoke.js:84:24) at Object.getSubnet (C:\work\repos\hondofoozle\node_modules\@pulumi\network\getSubnet.ts:37:62) at Object.<anonymous> (C:\work\repos\hondofoozle\index.ts:26:30) at Module._compile (internal/modules/cjs/loader.js:936:30) at Module.m._compile (C:\work\repos\hondofoozle\node_modules\ts-node\src\index.ts:439:23) at Module._extensions..js (internal/modules/cjs/loader.js:947:10) at Object.require.extensions.<computed> [as .ts] (C:\work\repos\hondofoozle\node_modules\ts-node\src\index.ts:44
  • s

    straight-insurance-27894

    11/20/2019, 8:21 PM
    THere are no other instances of node or pulumi running. It's a fresh reboot. All yarn files match. And I can't find anything about this on the net. Chris Duck is running the same setup and is not having this issue. Have you see this issue?
    g
    l
    • 3
    • 37
  • m

    miniature-potato-84713

    11/20/2019, 8:51 PM
    I’m using a Javascript function for Lambda on Edge, with
    runtime: aws.lambda.NodeJS8d10Runtime,
    but then received an email from AWS that that runtime will be obsoleted:
    your AWS Account currently has one or more Lambda functions using Node.js 8.10, which will reach its EOL at the end of 2019.
    So I wanted to switch to then next version but
    error TS2551: Property 'NodeJS10dXRuntime' does not exist on type 'typeof import("/.../node_modules/@pulumi/aws/lambda/i...'. Did you mean 'NodeJS6d10Runtime'
    Note that
    NodeJS10dXRuntime
    is still documented here: https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/aws/lambda/#NodeJS10dXRuntime So I changed to using the string
    "nodejs10.x"
    which didn’t work
    error: aws:lambda/function:Function resource 'language-redirect' has a problem: expected runtime to be one of [dotnetcore1.0 dotnetcore2.0 dotnetcore2.1 go1.x java8 nodejs4.3 nodejs4.3-edge nodejs6.10 nodejs8.10 provided python2.7 python3.6 python3.7 ruby2.5], got nodejs10.x
    and then went back to
    runtime: "nodejs8.10"
    which is the one that will be obsoleted soon. So… what should I do here?
    t
    • 2
    • 10
  • e

    early-intern-90238

    11/20/2019, 10:12 PM
    There is some serious jank with Release Channels
  • e

    early-intern-90238

    11/20/2019, 10:12 PM
    for instance there is no way to define the latest version of a Release Channel for the initial create of your cluster with a release channel
    w
    • 2
    • 19
  • e

    early-intern-90238

    11/20/2019, 10:13 PM
    you would expect there to be a filter clause on getEngineVersions something like channel, but no...
  • e

    early-intern-90238

    11/21/2019, 1:13 AM
    Ok I found an interesting problem I think
  • e

    early-intern-90238

    11/21/2019, 1:14 AM
    a pulumi refresh doesn't pull stack reference info, so if you share your provider via a stack and your nodes change because of a replacement in a microstack, when you attempt to do a pulumi update in another microstack that depends on the provider from a stack reference you get a timeout error
  • e

    early-intern-90238

    11/21/2019, 1:16 AM
    It would be interesting to let you run a command to update certain stack references
  • e

    early-intern-90238

    11/21/2019, 1:18 AM
    I guess you can do this via --target
  • e

    early-intern-90238

    11/21/2019, 1:24 AM
    so yes that works great, but its a pain in the butt to do it that way...
    w
    • 2
    • 6
  • a

    adventurous-garage-59192

    11/21/2019, 2:49 AM
    Hello, I'm getting `System.InvalidOperationException: Expected System.String but got System.Collections.Immutable.ImmutableArray`1[[System.Object, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] deserializing Pulumi.Azure.AppService.AppService.appSettings` after updating to Pulumi 1.6.0
    w
    t
    l
    • 4
    • 23
  • e

    elegant-twilight-2745

    11/21/2019, 12:18 PM
    How to delete and start login account all over again
    m
    • 2
    • 4
  • n

    nice-cat-91582

    11/21/2019, 12:39 PM
    This feels like a dumb question... but am I supposed to commit my stack config files, like
    Pulumi.dev.yaml
    ? Seems like that would all be stored in Pulumi Cloud
    b
    • 2
    • 2
  • p

    plain-eye-9759

    11/21/2019, 12:57 PM
    This builds on Joe's question: In the stack config files, the encryption salt and the secret are both saved in the file like so:
    encryptionsalt: v1:xyz==
    config:
      my-project:secretConfig:
        secure: v1:DtxM
    Doesn't this pose a security challenge? In what other ways can this be done?
    c
    • 2
    • 3
  • c

    colossal-plastic-46140

    11/21/2019, 2:06 PM
    Good Morning. We are working on the CI pipeline for adding a pulumi preview check prior to merging a PR. It currently looks like when selecting --stack on the command line one is not able to do stack init automatically/ if the stack file is already committed to git? I was wondering if anyone had suggestions that work with a s3 backend
    c
    • 2
    • 2
  • i

    incalculable-engineer-92975

    11/21/2019, 2:08 PM
    Can we please, please, please get an event notification or overall Promise or defer mechanism that fires when a 'pulumi up' is finished? We're jumping through hoops to have integration tests when a pulumi run is done. In most cases we wrap individual tests in 'apply' or 'all' but that doesn't always work. We just had a case where a test would start before a model was assigned to a variable so we couldn't use either approach and had to switch to an event emitter to hold the test back. This seems ridiculous. Why can't we get an overall 'pulumi up/preview/destroy' is done, run your follow-on code now?
    m
    w
    • 3
    • 13
  • e

    elegant-twilight-2745

    11/21/2019, 2:50 PM
    Within corporate environment under ADMIN mode Powershell, I was able to login and pulumi whoami recognized username, but pulling down from existing project created previously outside of corporate environment with: > pulumi new aws-typescript -s USERNAME/aws-typescript/dev > > ENTER to log in using your browser > > but opens: "Pulumi doesnt support this version of Microsoft Internet Explorer" please consider upgrading. > > and I dont think I can upgrade at Microsoft IE at clients site??? Please advise if anyone I am sure has faced this situation as well as it is asking for Windows Security iexplore credentials
    w
    • 2
    • 11
  • e

    elegant-twilight-2745

    11/21/2019, 3:10 PM
    Can Pulumi and Terraform both exist within a project? So that if someone still wants to work with Terraform and deploy to AWS, and I use Pulumi to deploy to the same AWS cluster? is that ok?
    c
    • 2
    • 12
  • n

    nice-guitar-97142

    11/21/2019, 3:52 PM
    Can I have Pulumi read the state of current infrastructure and use that as a starting point for the first
    pulumi up
    ?
  • n

    nice-guitar-97142

    11/21/2019, 3:52 PM
    specifically with the azure provider, if that matters
    w
    b
    • 3
    • 7
Powered by Linen
Title
n

nice-guitar-97142

11/21/2019, 3:52 PM
specifically with the azure provider, if that matters
w

white-balloon-205

11/21/2019, 3:53 PM
Yes - the
import
feature does this. There are some details here: https://www.pulumi.com/blog/adopting-existing-cloud-resources-into-pulumi/
n

nice-guitar-97142

11/21/2019, 3:55 PM
ohhh i see! I was, for some reason, expecting this to be a CLI function. but now it’s obvious that wouldn’t make a whole lot of sense. thanks!
can I drop the
import
argument after the first
pulumi up
?
b

broad-dog-22463

11/21/2019, 4:13 PM
Yes @nice-guitar-97142
You can remove it
n

nice-guitar-97142

11/21/2019, 4:14 PM
thanks @broad-dog-22463
b

broad-dog-22463

11/21/2019, 4:15 PM
👍
View count: 1