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

    breezy-apartment-46543

    03/17/2021, 4:35 PM
    Can you get the value of running pulumi whoami from code? Similar to pulumi.getProject() or pulumi.getStack() in JS
    m
    g
    r
    • 4
    • 8
  • c

    clever-plumber-29709

    03/17/2021, 5:14 PM
    Is there a way pulumi can monitor a ecs deploy? when i run up, it triggers a deploy, but i'll like pulumi to keep watching that deploy
    l
    • 2
    • 2
  • c

    creamy-crowd-26033

    03/17/2021, 5:58 PM
    Is there any notion of your c# stack executing in debug mode vs release mode? And by this I am referring to the netcore debug/release configuration - not a pulumi setting.
    b
    • 2
    • 1
  • b

    better-shampoo-48884

    03/17/2021, 6:10 PM
    I've been trying to read docs and blogs and whatnot - and I still can't seem to get my mind around this.. I know it's possible to change the name of a stack - and in the
    --help
    it even indicates that it's possible to change the organization\project\name of the stack (of course with local provider, doing so sends your stack faaar away into a dev/null mode and you have to fish out your backups ;)).. ..But can I just change the name of the project? Right now I've tried multiple projects to get my config just right, and I've got some infra provisioned that I'd prefer not to have to reprovision in a new project/stack (though that would be my next step) - but I'd really love to just change the project name.
    l
    • 2
    • 3
  • b

    billowy-ocean-41790

    03/17/2021, 8:36 PM
    Can someone describe what the
    stringArray
    format for cli options such as
    --config
    ? We’re trying to wrap up some common things we do in scripts, and one thing that we are having trouble with is passing
    gcp.project
    to
    pulumi new gcp-typscript
    .
    l
    • 2
    • 11
  • h

    hallowed-rain-9096

    03/17/2021, 9:11 PM
    I'm having some trouble with
    pulumi up
    going for more than 10 minutes without output, which causes CircleCI (my CI provider) to kill the job. Is there a better option than just turning up the verbosity until it no longer happens?
    b
    • 2
    • 8
  • m

    microscopic-egg-7304

    03/17/2021, 10:00 PM
    Hi team 👋. I am pretty new here and am trying out a few things with Pulumi for some of my dev projects. My Q: I am trying to get the resources (AWS components) data that a stack creates after deploy, through the automation api. I was unable to find that in the docs. Any help would be appreciated.
    l
    • 2
    • 3
  • p

    prehistoric-nail-50687

    03/17/2021, 10:01 PM
    how can I install an older pulumi version via
    brew
    ? it seems only the latest version is available in the formula: https://formulae.brew.sh/api/formula/pulumi.json (currently 2.23)
  • b

    busy-apartment-9626

    03/17/2021, 10:20 PM
    Is there any way of accessing a stack configuration value in a Dynamic Provider? For example a DB access key?
    b
    • 2
    • 3
  • p

    proud-pizza-80589

    03/17/2021, 10:28 PM
    Is there a way to recover (in the sense that it should delete whatever it can and ignore changed k8s providers) from an error like
    resource urn:pulumi:production::bpaas-clusters::bpaas:cluster$eks:index:Cluster$kubernetes:core/v1:ConfigMap::eks-india-nodeAccess refers to unknown provider urn:pulumi:production::bpaas-clusters::bpaas:cluster$eks:index:Cluster$pulumi:providers:kubernetes::eks-india-eks-k8s::2751b010-74ca-42d6-963b-c23775d863d5
    I was playing around with my nodegroup/eks setup and for some reason it freaked out and replaced the provider breaking already deployed resources. the json file is huge so manually removing resources is a pain
    l
    b
    • 3
    • 5
  • b

    brash-airline-37413

    03/18/2021, 5:18 AM
    Does
    pulumi new
    currently support installing into an existing application repository and appending to package.json etc ?
    g
    • 2
    • 1
  • c

    curved-pharmacist-41509

    03/18/2021, 5:28 AM
    Does
    import
    create the resource if it doesn’t exist? I have lambdas which have created their own log groups, they are untagged. I would love if I could somehow just get pulumi to take over if it exists then apply the tags, or create if it doesn’t exist
    g
    • 2
    • 4
  • r

    refined-scientist-90265

    03/18/2021, 8:11 AM
    Hi! I have a question. Is it possible to enable Azure Blob versioning via Pulumi? (As described here: https://docs.microsoft.com/da-dk/azure/storage/blobs/versioning-enable?tabs=template) If so, where in the Pulumi data structures can I set this? Thanks a lot in advance! 🙂
  • r

    refined-scientist-90265

    03/18/2021, 8:27 AM
    And I have another question related to my one above: In order to get logging working on my Azure instance I had to install a site extension for application logging. There are at least two ways to do this in the UI: 1. Find your app service on https://portal.azure.com/ 2. In the left-hand menu under Monitoring go to App Service logs. 3. Click the banner that says "Click here to install the ASP.NET Core site extensions to enable Application Logging". Other way: 1. Find your app service on https://portal.azure.com/ 2. In the left-hand menu, under the heading Development Tools go to Extensions. 3. Click Add, then Choose extension and find "ASP.NET Core Logging Integration". Click it. 4. Click "Accept legal terms" and OK, then OK again. Can I automate this with Pulumi?
  • w

    worried-knife-31967

    03/18/2021, 9:27 AM
    You actually dont need the site extension for asp.net core. Just the appsettings and the libraries injected at startup. If you're referring to the APM, that's different though.
    r
    • 2
    • 3
  • w

    worried-knife-31967

    03/18/2021, 9:29 AM
    It does also backfill the application insights instance with a tag that has the name of your AppService instance, however, other than it allowing the UI to know that you've linked it to an AI instance, I've not found that it actually does anything.
    r
    • 2
    • 2
  • i

    icy-jordan-58549

    03/18/2021, 9:29 AM
    after upgrade to 2.23.0 I got this
    warning: A new version of Pulumi is available. To upgrade from version '0.0.0' to '2.23.0', run 
       $ brew upgrade pulumi
    or visit <https://pulumi.com/docs/reference/install/> for manual instructions and release notes.
    b
    b
    • 3
    • 13
  • b

    brainy-bear-32920

    03/18/2021, 12:06 PM
    I like the idea of representing infrastructure as code but am also entertaining the idea if using a tool such as pulumi to automate generating actual code. In one case I am looking into the end result is multiple Vue-based apps where I would like to configure the different routes in for example pulumi and then have pulumi generate the actual Vue code. Is this osmething that someone her has explored? Does it feel completely wrong for pulumi?
    b
    • 2
    • 2
  • a

    adorable-musician-67025

    03/18/2021, 12:21 PM
    Hey, how can I access specific output of given resource if I didn't exported it intentionally? I can run
    .get_output('resource_id')
    but there is more than one
    'resource_id'
    and I will get first one.
    b
    • 2
    • 2
  • w

    wet-noon-14291

    03/18/2021, 12:30 PM
    Any know network issues or anything. I can't download the random plugin: https://get.pulumi.com/releases/plugins/pulumi-resource-random-v0.6.1-linux-amd64.tar.gz.
    b
    b
    • 3
    • 26
  • w

    worried-knife-31967

    03/18/2021, 2:01 PM
    has the new github action broken the ability to pass
    --refresh
    to the command?
    - uses: pulumi/actions@v2
            with:
              command: up --refresh
    That used to work, but it's failing now.. /cc @broad-dog-22463
  • b

    bumpy-laptop-30846

    03/18/2021, 2:58 PM
    Hi, is there a way to run local commands from a pulumi program ? Do you use your language capabilities to do this, for example in nodejs something as child_process.exec?
    h
    • 2
    • 1
  • a

    adamant-translator-31969

    03/18/2021, 3:39 PM
    Hi! I want to change a variable inside of pulumi.all.apply method ... but when I these method end, values become to original values .... how could this value be maintained?
    b
    • 2
    • 3
  • e

    echoing-breakfast-73834

    03/18/2021, 4:47 PM
    What possible causes are there for pulumi requiring a non-existent provider version? Getting this when I try to preview my stack:
    ~  pulumi:providers:aws environment-aws_provider update [diff: +skipCredentialsValidation,skipGetEc2Platforms,skipMetadataApiCheck,skipRegionValidation,version]
       pulumi:providers:cloudflare environment-cloudflare_provider  error: no resource plugin 'cloudflare-v3.33.0' found in the workspace or on your $PATH, install the plugin using `pulumi plugin install resource cloudflare v3.33.0`
    The latest plugin version is 2.14.0 (https://github.com/pulumi/pulumi-cloudflare/blob/master/CHANGELOG.md)
  • b

    big-account-56668

    03/18/2021, 5:53 PM
    I've just got
    panic: send on closed channel
    
    goroutine 1149 [running]:
    <http://github.com/pulumi/pulumi/pkg/v2/engine.diagEvent(0xc002a41480|github.com/pulumi/pulumi/pkg/v2/engine.diagEvent(0xc002a41480>, 0xc0020c9c80, 0xc001b5a380, 0x1c, 0xc001813620, 0x51, 0x1cd1d42, 0x5, 0x0)
    	/Users/runner/work/pulumi/pulumi/pkg/engine/events.go:578 +0x20c
    <http://github.com/pulumi/pulumi/pkg/v2/engine.(*eventEmitter).diagErrorEvent(...)|github.com/pulumi/pulumi/pkg/v2/engine.(*eventEmitter).diagErrorEvent(...)>
    	/Users/runner/work/pulumi/pulumi/pkg/engine/events.go:602
    <http://github.com/pulumi/pulumi/pkg/v2/engine.(*eventSink).Errorf|github.com/pulumi/pulumi/pkg/v2/engine.(*eventSink).Errorf>(0xc002a41480, 0xc0020c9c80, 0x0, 0x0, 0x0)
    	/Users/runner/work/pulumi/pulumi/pkg/engine/eventsink.go:88 +0x127
    <http://github.com/pulumi/pulumi/pkg/v2/resource/deploy.(*stepExecutor).executeChain(0xc00213a300|github.com/pulumi/pulumi/pkg/v2/resource/deploy.(*stepExecutor).executeChain(0xc00213a300>, 0x48, 0xc001558b50, 0x1, 0x1)
    	/Users/runner/work/pulumi/pulumi/pkg/resource/deploy/step_executor.go:231 +0x36a
    <http://github.com/pulumi/pulumi/pkg/v2/resource/deploy.(*stepExecutor).worker.func1(0xc00213a300|github.com/pulumi/pulumi/pkg/v2/resource/deploy.(*stepExecutor).worker.func1(0xc00213a300>, 0x48, 0xc001558b50, 0x1, 0x1, 0xc00249c240)
    	/Users/runner/work/pulumi/pulumi/pkg/resource/deploy/step_executor.go:377 +0xc5
    created by <http://github.com/pulumi/pulumi/pkg/v2/resource/deploy.(*stepExecutor).worker|github.com/pulumi/pulumi/pkg/v2/resource/deploy.(*stepExecutor).worker>
    	/Users/runner/work/pulumi/pulumi/pkg/resource/deploy/step_executor.go:374 +0x2e7
    after
    ^C^C
    on
    pulumi up
    . Now executing
    pulumi up
    prompts to create stack and
    pulumi stack select x
    yields
    error: no stack named 'x' found
    Any quick ideas on what's going on?
    • 1
    • 2
  • w

    worried-knife-31967

    03/18/2021, 6:36 PM
    $ pulumi login --local
    
    [PREVIEW] Additionally, you may leverage supported object storage backends from one of the cloud providers to manage the state independent of the service. For instance,
    are cloud provider backends in preview? I thought they were GA?
    b
    • 2
    • 4
  • w

    worried-knife-31967

    03/18/2021, 6:43 PM
    if you're using the passphrase secrets provider, should all the stacks have the same passphrase?
    g
    • 2
    • 3
  • c

    clever-cartoon-41433

    03/18/2021, 8:21 PM
    Any way I can await the completion of a k8s job in pulumi? Or have other resources depend on it?
    g
    • 2
    • 1
  • w

    wet-noon-14291

    03/19/2021, 8:08 AM
    Let's say that you use pulumi to provision a set of resources that should be "stable". If you later on would like to wrap those resources in a ComponentResource where the ComponentResource becomes the parent, is it possible to do so without deleting the set of resources and re-create them? What I would like to happen is that everything would remain the same and the resources just gets marked with a new parent, as long as they have the same name... but maybe that is the case?
    b
    • 2
    • 7
  • w

    wet-noon-14291

    03/19/2021, 8:39 AM
    @broad-dog-22463, you seem to be the most active one on the pulumi-provider. Have you experienced anything like this before: https://github.com/pulumi/pulumi-github/issues/111
    b
    • 2
    • 8
Powered by Linen
Title
w

wet-noon-14291

03/19/2021, 8:39 AM
@broad-dog-22463, you seem to be the most active one on the pulumi-provider. Have you experienced anything like this before: https://github.com/pulumi/pulumi-github/issues/111
b

brave-planet-10645

03/19/2021, 10:38 AM
That's weird. It says it's been replaced in the stack but it's gone in github
w

wet-noon-14291

03/19/2021, 11:31 AM
Have you reproduced it @brave-planet-10645 ?
I didn’t try it on a smaller example, but I think it should be reproducible.
b

brave-planet-10645

03/19/2021, 11:32 AM
Yes
import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";
import * as random from "@pulumi/random";

const org = github.getOrganization({
    name: "karsenbarg"
});

const secret = new random.RandomString("secret", {
    length:  15
});

const orgSecret = new github.ActionsOrganizationSecret("orgSecret", {
    plaintextValue: secret.result,
    secretName: "mysecret",
    visibility: "all"
});
and then changed the length of the secret
👍 1
w

wet-noon-14291

03/19/2021, 12:40 PM
Do you need anything more input from me @brave-planet-10645, or will you update the ticket?
b

brave-planet-10645

03/19/2021, 12:40 PM
I'll update the ticket shortly
👍 1
View count: 1