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

    millions-furniture-75402

    10/25/2021, 1:17 PM
    Where can I find the limitations of stack configuration? If I'm using remote state, specifically.
  • g

    gifted-megabyte-80050

    10/25/2021, 2:08 PM
    I'm trying to use Pulumi to create Azure Dashboards for application Insights. I've reviewed this sample here: https://www.pulumi.com/registry/packages/azure-native/api-docs/portal/dashboard/ The Metadata property does not appear to be valid C#. Some tweaking using the InputMap produces valid C# However when I've used
    pulumi import
    to import a more complex dashboard I've noticed that the
    MetaData
    properties are not set. Inspecting the dashboard with the
    az portal dashboard
    plugins It appears there is no way to set the Asset properties in the DashboardPartArgs class. Is there any best practice for deploying dashboards with Pulumi. Thanks
    v
    • 2
    • 1
  • r

    rhythmic-rain-31941

    10/25/2021, 3:33 PM
    Hi Team #general, Using pulumi over terraform, will give any edge on performance? we have a scenario where our states are getting longer and they are taking longer and longer when doing plan/apply, are there any documentation which talks about this?
    m
    b
    • 3
    • 7
  • f

    full-artist-27215

    10/25/2021, 3:44 PM
    Is it possible to access values from
    pulumi.Config()
    inside a Dynamic Provider implementation? I've tried this in both Python and TypeScript, and whenever I try to get something from the config, I get this error:
    error: Program run without the Pulumi engine available; re-run using the `pulumi` CLI
    b
    r
    • 3
    • 22
  • w

    wonderful-twilight-70958

    10/25/2021, 5:18 PM
    I have a string (escaped json) that I want to put in a secret, however whenever I
    pulumi set --secret xxx yyy
    (or when it decodes, not sure) i lose all my escaping šŸ˜•
    f
    • 2
    • 3
  • f

    fresh-wire-95028

    10/25/2021, 5:45 PM
    What's the right way to run db migrations using pulumi? So say I set up a docker image that runs migrations, and then a Fargate Task with that container definition. how do I tell pulumi to start that container only once in fargate during my deploy?
    • 1
    • 1
  • p

    prehistoric-kite-30979

    10/25/2021, 5:51 PM
    Hi all, Im getting the following error across all stacks for a single project.
    pulumi stack select
    Please choose a stack, or create a new one: <redacted>
    ...
    error: invalid character '}' after top-level value
    Has anyone seen this before? I’ve looked through all the stack and pojrect configs as well as the code and it all looks fine
    f
    r
    • 3
    • 7
  • a

    astonishing-quill-88807

    10/25/2021, 6:57 PM
    I've got a terraform project that I'm attempting to convert using
    tf2pulumi
    but when I run it I get the output
    no resource plugin '' found in the workspace or on your $PATH
    b
    • 2
    • 12
  • m

    melodic-tent-12974

    10/25/2021, 6:58 PM
    Hi this is a question about
    pulumi stack output
    . I have a JSON property and want to get at a leaf node. Can this be done directly with
    pulumi stack output
    ? I want to do something like
    pulumi stack output root.tree.subtree.leaf
    but that doesn’t work. I can do it myself like
    pulumi stack output root | jq .tree.subtree.leaf
    but I feel like that is just a workaround.
    r
    • 2
    • 1
  • b

    bitter-island-28909

    10/25/2021, 7:13 PM
    I am creating my own Component Package with Pulumi, and I am having trouble passing through a ā€œsecretā€ output. My package and client are both written in TypeScript. The resource in my package has a property of type output<string>. When I construct a resource and pass it a string, or a standard output, it works fine. However, when I pass it a secret Output, it isn’t passed into the package resource as a string… instead it’s some sort of object (which prints to a string as [object Object] . Shouldn’t the value be ā€œunwrappedā€ to a regular string at that point, even if it was intended to be a secret? Or is there something special I need to do in my resource to handle values that are passed in as secrets? I did try the
    unsecret
    function but it threw a
    val.resources is not a function
    exception… guess the object I passed it is the wrong type, somehow?
  • l

    little-soccer-5693

    10/25/2021, 8:55 PM
    i'm giving tf2pulumi a try for the first time but it just seems to stack dump. any suggestions?
    b
    c
    • 3
    • 3
  • s

    steep-cartoon-89174

    10/25/2021, 9:05 PM
    lsusb
  • s

    steep-cartoon-89174

    10/25/2021, 9:05 PM
    oups sorry
  • m

    miniature-advantage-31279

    10/25/2021, 9:19 PM
    hi guys, just wondering any way to omit docker build logs warning during
    pulumi up
    ?
  • r

    rough-rain-68282

    10/26/2021, 5:54 AM
    hi guys, I could see limited documentation on pulumi policy , is there any place where I could find some more?
  • b

    blue-pharmacist-31672

    10/26/2021, 10:14 AM
    Hello there, I'm trying to use an
    IServiceProvider
    with Pulumi in .NET as documented here. However, I'm getting an error of
    System.ApplicationException: Failed to resolve instance of type MyStack from service provider.
    As far as I am aware I have configured the stack in my service provider but I cannot work out how to solve this error. Looking at the source code it seems like it should work. My entry point for the application is simply
    static Task Main()
        {
            var serviceCollection = new ServiceCollection();
            var serviceProvider = serviceCollection
                .AddSingleton<Stack, MyStack>()
                .BuildServiceProvider();
    
            return Deployment.RunAsync<MyStack>(serviceProvider);
        }
    And my Pulumi Stack
    class MyStack : Stack
    {
        public MyStack(System.IServiceProvider provider)
        {
    
        }
    }
    A trivially simple application, but I've had the same issue on the main application I'm building. Am I doing something wrong with my use of the
    IServiceProvider
    ? It's not specified in the docs so I am not sure. Any help is greatly appreciated. Thank you.
    b
    b
    +2
    • 5
    • 7
  • b

    brave-nightfall-19158

    10/26/2021, 3:52 PM
    Hey y'all. Just trying to import some route 53 records and seem to be struggling as some records have underscores in their name which seems to cause the Pulumi parser to fail, for example: import: "Z04038S9IIMG2LG_k1._domainkey.domain.com_CNAME" The problem is "k1._domainkey" and as the import parser for routes seems to split on "_" it thinks this is the next part, but it isn't. Any ideas?
  • p

    plain-keyboard-29627

    10/26/2021, 4:53 PM
    Is it possible to use ES6/import with JavaScript (not TypeScript)? If I create a skeleton using
    pulumi new javascript
    and attempt to change
    const pulumi = require("@pulumi/pulumi");
    into
    import pulumi from "@pulumi/pulumi";
    , if I run/preview, I always get the following error:
    error: Running program 'c:\code\xyz\infra' failed with an unhandled exception:
    Error [ERR_REQUIRE_ESM]: require() of ES Module c:\code\xyz\infra\index.js from c:\code\xyz\infra\node_modules\@pulumi\pulumi\cmd\run\run.js not supported.
    Instead change the require of index.js in c:\code\xyz\infra\node_modules\@pulumi\pulumi\cmd\run\run.js to a dynamic import() which is available in all CommonJS modules.
        at Object.<anonymous> (c:\code\xyz\infra\node_modules\@pulumi\pulumi\cmd\run\run.js:219:31)
    b
    • 2
    • 8
  • d

    dazzling-family-13566

    10/26/2021, 4:56 PM
    Will be much appreciated if anyone experiencing such error messages share some light on what possible error message the underlying provider could be sending and ignored in … assertions … Expecting error but … error lost ?
    expected non-nil error with nil state during Create of urn:pulumi:
    b
    • 2
    • 6
  • g

    gorgeous-minister-41131

    10/26/2021, 6:30 PM
    Is there a suggested workflow for doing templated/instanced style deployments with the Kubernetes provider? Example, I have 30 variations of an application that need to be deployed. Most share similar characteristics, albeit there are some differences. The first thing that comes to mind is a stack-per-variation, of course… but I wanted the option to be able to deploy all of these stacks say, via a Superstack of the sorts, so they all maintain their own individual state, but the superstack maintains the state of all the other child stacks… Maybe I missed something in the documentation and this paradigm is blatantly obvious and documented…
    b
    • 2
    • 14
  • c

    colossal-vr-62639

    10/27/2021, 5:41 AM
    Hey everyone, i'm trying to create an Environment under GitHub and i'm seeing the following.
    github:index:RepositoryEnvironment (test-environment):
        error: PUT <https://api.github.com/repos//my-repository/environments/test-environment>: 404 Not Found []
    I'm following the API Docs here which states you should be using theĀ 
    Repository.Name
    . What I do notice here is after theĀ 
    /repos/
    Ā there's a double forward slash (
    /
    ) as if it's missing the owner. If I try theĀ 
    Repository.FullName
    Ā I get
    github:index:RepositoryEnvironment (test-environment):
        error: PUT <https://api.github.com/repos//pgermishuys/my-repository/environments/test-environment>: 404 Not Found []
  • h

    handsome-restaurant-93114

    10/27/2021, 2:48 PM
    Hi all, I'm wondering if anyone has done any work getting Bitbucket and Pulumi to work together in terms of commenting on Bitbucket PRs with the
    pulumi preview
    ?
  • g

    gray-city-50684

    10/27/2021, 3:02 PM
    Hi, I have a question about Pulumi’s Kubernetes support, specifically Helm charts (let’s start a thread)
    b
    • 2
    • 14
  • s

    swift-island-2275

    10/27/2021, 6:40 PM
    Hi, I've a general question regarding Pulumi, does Pulumi have a concept of data source ? (in Terraform, we use data keywoard for that, https://www.terraform.io/docs/language/data-sources/index.html)
    f
    r
    • 3
    • 7
  • f

    fast-river-57630

    10/27/2021, 7:09 PM
    Strange. Our org does not list any admins. Did we become admin-less when I removed Regy?
    b
    • 2
    • 1
  • e

    elegant-pager-5412

    10/28/2021, 5:05 AM
    Has anyone else experienced a bug with attaching an Authorizer to routes in HTTP API Gateway? I’m creating a JWT authorizer and then attaching it to several routes using the
    authorizerId
    property on the route. Pulumi detects it and says it’s going to update it, however, it does nothing on AWS. In fact, when I try to re-deploy, it shows me again that it’s going to update the routes but once again, it does nothing
    l
    • 2
    • 7
  • b

    better-shampoo-48884

    10/28/2021, 7:19 AM
    Is there any way to target -only- a new code block for
    pulumi up
    ? I know it's possible to
    -t
    existing URNs for updating (again, would also work if there was an -exclude, but hey) - but if its new code it wouldn't have a URN to target yet.. Basically, can i get pulumi to create only this:
    +   │  ā”œā”€ azure-native:keyvault:Secret                                                     secret-keypair-vault-public-1                                  create
    l
    • 2
    • 6
  • b

    bumpy-bear-61087

    10/28/2021, 8:42 AM
    Is it possible to run pulumi locally comparable to terraform? I don't want to use a SaaS for storing sensitive state.
    p
    l
    b
    • 4
    • 15
  • b

    bland-cat-29878

    10/28/2021, 10:25 AM
    Not sure if this has been shared before but Pulumi are on the ThoughtWorks tech radar šŸ™‚ https://www.thoughtworks.com/content/dam/thoughtworks/documents/radar/2021/10/tr_techno[…]XEllw7vwdHcftAKzcLAgSUg-rvPc8NiKdRTaUbr4IHjvtfHLCoaasKBS94
    šŸ‘ 1
  • h

    high-holiday-63390

    10/28/2021, 10:34 AM
    Is there a way to reference the current stack so it gets included in an AWS resource name?
    p
    • 2
    • 2
Powered by Linen
Title
h

high-holiday-63390

10/28/2021, 10:34 AM
Is there a way to reference the current stack so it gets included in an AWS resource name?
p

prehistoric-activity-61023

10/28/2021, 10:46 AM
https://www.pulumi.com/docs/intro/concepts/stack/#getting-the-current-stack-programmatically
h

high-holiday-63390

10/28/2021, 10:55 AM
thanks
View count: 2