• b

    bulky-policeman-29913

    9 months ago
    @here can anyone tell me if there is a supported way to do a stack reference across different pulumi projects? Specifically we are using the AWS S3 backend and each project is in a new directory. Pulumi login though only logs into the active project, I would need to get shared resources from a different one.
    b
    g
    +2
    19 replies
    Copy to Clipboard
  • m

    magnificent-lifeguard-15082

    8 months ago
    Has anyone encountered any oddities working with nix (ie.
    nixpkgs.pulumi-bin
    ) and versions of plugins? In CI (Github actions where admittedly nix is not fully configured yet) it complains the aws plugin isn't available - though it is in my package-lock.json
    pulumi:providers:aws (default_4_33_0):
        error: no resource plugin 'aws-v4.33.0' found in the workspace or on your $PATH, install the plugin using `pulumi plugin install resource aws v4.33.0`
    Weirder, when I run locally it warns of a mismatch:
    resource plugin aws is expected to have version >=4.33.0, but has 4.27.2
    But when checking versions locally it seems ok..
    % pulumi plugin ls
    NAME       KIND      VERSION  SIZE    INSTALLED  LAST USED
    aws        resource  4.33.0   360 MB  1 day ago  38 minutes ago
    docker     resource  3.1.0    39 MB   1 day ago  38 minutes ago
    terraform  resource  5.5.1    85 MB   1 day ago  19 hours ago
    m
    b
    24 replies
    Copy to Clipboard
  • q

    quiet-plastic-34312

    8 months ago
    anyone know if there is any initiative for pulumi oracle cloud infrasctructure?
    q
    b
    2 replies
    Copy to Clipboard
  • a

    able-camera-57198

    8 months ago
    Are there any plans to address a lot of the usability issues around state? (See this ticket: https://github.com/pulumi/pulumi/issues/8450#issuecomment-1009519047 , amongst others.)
    a
    1 replies
    Copy to Clipboard
  • a

    average-arm-52191

    8 months ago
    Hello, I have auth0 secrete in my Pulumi.yml where I have set auth0 secrete likes this
    pulumi config set --secret auth0Secret S3cr37
    Now I have use case to use Auth0 API (management api) from auth0 SDK,
    import { Config, Output } from '@pulumi/pulumi'
    import * as Auth0 from 'auth0' // This is auth0 management api sdk.
    
    const auth0Config = new Config('auth0')
    
    const auth0 = new Auth0.ManagementClient({
      domain: '<http://test-linktree.us.auth0.com|test-linktree.us.auth0.com>',
      clientId: auth0Config.requireSecret('clientId'),
      clientSecret: auth0Config.requireSecret('clientSecret')
    }) 
    
    await auth0.getClients();
    Issue is output of
    auth0Config.requireSecret('clientId')
    have type Output<T>, Is there way to get plain text out of it. Please help. Thanks
    a
    1 replies
    Copy to Clipboard
  • m

    mysterious-australia-14256

    8 months ago
    Hi, I had a deployment fail today and as a result the stack was no longer showing when I did a list. I am using an Azure blob for storing the stacks and looking in there I could see the stack.json.bak file but not the stack.json file. I created a copy of the stack file as stack.json and can now see it from the cli. I need to do a bit of clean-up on it so I exported it and the export is over 200MB in size. This seems crazy big. 90% of the file seems to be aliases for a handful of azure servicebus topics and related subscriptions. Does this seem reasonable ?
    m
    2 replies
    Copy to Clipboard
  • s

    square-car-84996

    8 months ago
    what is the difference between pulumi.dynamic.ResourceProvider and pulumi.ProviderResource? I'm trying to create my own set of custom resources on a provider (i.e. a database connection) but the provider needs to be from another Resource that gets created earlier in the run... so i'm trying to figure out how to structure this
    s
    1 replies
    Copy to Clipboard
  • l

    lively-author-18255

    8 months ago
    Hi, I am trying to migrate from helm charts to using kubernetes manifests directly. But I run into this issue. "some resources have the same name on kubernetes. Pulumi though thinks they are different but unrelated, so it attempts to create the new resources through, which fails as the resource already exists." I tried setting the createBeforeDelete option but it did not work, which I think makes sense since I am adding it to the ConfigFile resource and not the Chart one (which is removed). Any suggestions? Thanks!
    l
    b
    5 replies
    Copy to Clipboard
  • w

    wet-noon-14291

    8 months ago
    What is the correct way of retrieving "async" values in a custom
    ComponentResource
    ? We struggle with having a stack hanging if the async requests fails. We are doing something like this:
    export class Team extends pulumi.ComponentResource {
        teamId: pulumi.Output<string>
    
        constructor(name: string, teamSpec: types.TeamSpec) {
            super("something", name, {});
            const azureAdConfig = azuread.getClientConfig({})
    
            const usersIds = pulumi.output(getUsers(teamSpec.members)); // getUsers is something that returns a promise
    
            const adGroup = new azuread.Group(`${teamSpec.teamName}-ad-group`, {
                displayName:  teamSpec.teamName,
                owners: [azureAdConfig.then(c => c.objectId)],
                description: "Created and managed by Automation",
                securityEnabled: true,
                members: usersIds
            });
       ....
    if the call to
    getUsers
    fails everything will just hang. I would expect pulumi to catch that and fail the whole process. Am I doing something wrong or is this a bug?
    w
    l
    25 replies
    Copy to Clipboard
  • f

    fancy-egg-38667

    8 months ago
    In Pulumi, I want to target a specific Kubernetes cluster in my kubectx. I have three envs: • local ( local docker ) • dev • stg How do I explicitly target these k8s clusters in code? I am in GoLang.
    f
    s
    2 replies
    Copy to Clipboard