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

    great-optician-69584

    07/01/2021, 2:16 PM
    hi to all
  • g

    great-optician-69584

    07/01/2021, 2:16 PM
    I am having issues with pulumi_azuread
  • g

    great-optician-69584

    07/01/2021, 2:16 PM
    I have install the lib thru pip3, it is install etc..
    b
    • 2
    • 7
  • g

    great-optician-69584

    07/01/2021, 2:17 PM
    but pulumi does not seem to recognize it
  • g

    great-optician-69584

    07/01/2021, 2:17 PM
    on another issue
  • g

    great-optician-69584

    07/01/2021, 2:17 PM
    I want to generate stack on the fly
  • g

    great-optician-69584

    07/01/2021, 2:17 PM
    is there a way to do that bypassing the passphrase step
    b
    • 2
    • 3
  • p

    purple-lawyer-35555

    07/01/2021, 2:41 PM
    any suggestion?
  • c

    cold-motherboard-287

    07/01/2021, 4:46 PM
    What would be the recommended pattern to have
    async
    "things" happening inside of a ComponentResource? I need to use await and inside of the constructor, AFAIK, is not possible.
    b
    • 2
    • 4
  • b

    bright-sandwich-93783

    07/01/2021, 10:30 PM
    pulumi.DependsOn only declares a dependency between pulumi resources. Is there a way to declare a dependency on Pulumi outputs?
    l
    • 2
    • 9
  • b

    bland-florist-21412

    07/01/2021, 10:36 PM
    I'm trying to create a
    BigQuery
    Dataset
    with code like the following:
    ds = Dataset('product_metrics_dataset',
                     dataset_id='pm',
                     location=location,
                     project=project_id)
    and I'm getting this error:
    googleapi: Error 400: Invalid dataset ID "projects/fullsuitetest/datasets/pm". Dataset IDs must be alphanumeric (plus underscores and dashes) and must be at most 1024 characters long., invalid
    it appears that the
    projects/fullsuitetest/datasets/
    prefix is an error but Pulumi is adding that on my behalf. Any ideas what's going wrong?
    • 1
    • 1
  • b

    billowy-army-68599

    07/02/2021, 9:45 AM
    https://pulumi-community.slack.com/archives/CB36DSVSA/p1625219103082200
    🙌 1
  • h

    helpful-hair-30515

    07/02/2021, 2:39 PM
    @all I have some issue with pulumi i am trying to create folders and projects in google cloud using pulumi python....i did
    pulumi up
    and it created the 29 resources after that if i do
    pulumi preview
    it again deleting the resources i did not change any of my source code i am using pulumi version
    3.5.1
    b
    • 2
    • 75
  • m

    mysterious-lighter-33699

    07/02/2021, 6:54 PM
    There's no way to set permissions on a stack programmatically, is there? e.g. by setting a key in Pulumi.yaml? (I would like "derivative" stacks to be shared with other people in my org without having to click through the UI)
  • b

    better-shampoo-48884

    07/04/2021, 8:12 AM
    Just a simple question out of curiosity.. what's the performance like for most of you in terms of pulumi and resource usage? On my end, node (running typescript pulumi) consumes at minimum 2gb of memory for infrastructure provisioning, and 3.5 gigs for kubernetes (these are the two programs I'm predominantly running). Also, with any major changes to code or if there's been a while, the first run takes about 10 minutes (at least) to reach preview stage. For me - the benefits far outweigh the gains, but I'm wondering if there might be a blog post somewhere about pulumi performance tuning that I could peruse to see if i'm having any pitfalls..
    b
    • 2
    • 5
  • i

    icy-football-94152

    07/04/2021, 9:09 AM
    My Pulumi automation program has started throwing exceptions (via the dotnet-sdk) when I call stack.UpAsync(). The exception message includes "stderr: warning: A new version of Pulumi is available. To upgrade from version '3.5.1' to '3.6.0'". Is the Pulumi sdk really throwing an exception to force me to upgrade?
    b
    • 2
    • 3
  • c

    colossal-battery-24701

    07/05/2021, 11:03 AM
    Hey guys, I am trying to add env variables from stack config to lambda API in API Gateway with awsx. But I am getting error
    Type 'Output<string> | undefined' is not assignable to type 'Input<string>'.
    How can I add these variables neatly? This example shows only one API and few variable but in actual code, I have many routes and 20+ env variable. Any help is appreciated
    export const apiGateway = new awsx.apigateway.API('retool-lambda-api-gw', {
        routes: [
            {
                path: '/oc/d-sup',
                authorizers: authorizerAPI,
                method: 'POST',
                eventHandler: new aws.lambda.CallbackFunction('retool-lambda-delete-supporter', {
                    callback: async (event: awsx.apigateway.Request) => {
                        return routes.deleteSupporterHandler(event);
                    },
                    environment: {
                        variables: {
                            DB_HOST: config.getSecret('DB_HOST'), // this and the below vars throw error
                            DB_USER: config.getSecret('DB_USER'),
                            DB_PASSWORD: config.getSecret('DB_PASSWORD'),
                            DB_NAME: config.getSecret('DB_NAME'),
                        }
                    },
                    role: role,
                    vpcConfig: {
                        subnetIds: [awsNetworkingEnvVariables.SUBNET_ID],
                        securityGroupIds: [lambdaSecurityGroup.id],
                    }
                }),
            },
        ],
    });
    c
    • 2
    • 1
  • i

    icy-football-94152

    07/05/2021, 2:48 PM
    When using the automation API I sometimes wish to schedule a workspace.Refresh() followed by an workspace.Up(). Should the workspace be recreated between these calls or is it safe to call Refresh then Up consecutively using the same workspace instance? My motivation here is to speed up deployments because in the case of a small component stack I find the workspace initialization is about 30% of the overall deployment time. I am using the C# Pulumi sdk.
    b
    • 2
    • 1
  • a

    ambitious-article-39970

    07/05/2021, 3:03 PM
    hey guys having some issues using outputs im attempting to use them like so
    'secrets': [{ 'name': "dbpassword", 'valueFrom': str(db_password.arn.apply(lambda a : f"{a}"))}],
    when I use the lambda to write the value down to the log *pulumi.warn im getting the expected arn value however this doestn appear to be what is sent to aws
  • a

    ambitious-article-39970

    07/05/2021, 3:22 PM
    no matter what I seem to do I just get this warning: payload is ------ [{‘name’: ‘pulumi-test-app’, ‘image’: ‘nginx’, ‘portMappings’: [{‘containerPort’: 80, ‘hostPort’: 80, ‘protocol’: ‘tcp’}], ‘secrets’: [{‘name’: ‘dbpassword’, ‘valueFrom’: {<pulumi.output.Output object at 0x109bbc400>}}]}]
    b
    • 2
    • 13
  • i

    icy-football-94152

    07/05/2021, 3:35 PM
    What resource types are the quickest to create and tear down in Azure? Sometimes I just want to test something in my Pulumi automation code and need to create 3 resources of any type in my project.
    b
    • 2
    • 2
  • f

    flaky-school-82490

    07/05/2021, 10:06 PM
    Hello all, I am working with an AzureAD.Application (https://www.pulumi.com/docs/reference/pkg/azuread/application/). I need to set the Web RedirectUris property to something like: "msal{id}://auth", where id is the actual provider-assigned unique ID for this managed resource (in that case, the Application (client) ID). The Web property is read-only. @billowy-army-68599 @tall-librarian-49374 is this actually possible?
    t
    • 2
    • 7
  • b

    bored-monitor-99026

    07/06/2021, 3:21 AM
    hi everyone! the cloud sever provider i use doesn't have a terraform/pulumi provider, i decide to implement the provider according to their API docs. since i have very limited knowledge about writing tf/pulumi provider, i'd like to consult you a few questions. appreciate any help!
    l
    • 2
    • 5
  • a

    alert-monitor-28534

    07/06/2021, 9:38 AM
    Asked this in #golang but sharing here also if anybody can help.
  • n

    nutritious-shampoo-16116

    07/06/2021, 1:38 PM
    is it forbidden to export twice the same resource with pulumi? I have this code which is working
    ecs_target_groups = [
            {'arn': target_group_4004.arn, 'port': target_group_4004.port},
            {'arn': target_group_443.arn, 'port': target_group_443.port},
        ]
        pulumi.export('ecs_target_groups', ecs_target_groups)
    But this code is giving me null for the two resources already exported previously
    ecs_target_groups = [
            {'arn': target_group_4004.arn, 'port': target_group_4004.port},
            {'arn': target_group_443.arn, 'port': target_group_443.port},
        ]
    
        temp_ecs_target_groups = [
            {'arn': target_group_4004.arn, 'port': target_group_4004.port},
            {'arn': target_group_443.arn, 'port': target_group_443.port},
            {'arn': target_group_4000.arn, 'port': target_group_4000.port},
        ]
    
        pulumi.export('ecs_target_groups', ecs_target_groups)
        pulumi.export('temp_ecs_target_groups', temp_ecs_target_groups)
  • b

    bright-sandwich-93783

    07/06/2021, 1:59 PM
    Hi all. the
    pulumi.DependsOn
    option requires a resource. Is there a way to enforce dependency on `Outputs`instead? Since I cannot implement a custom resource provider in Go, the best I can do is use an
    ApplyT
    call on an output to make manual API calls, and reeturn a
    BoolOutput
    to indicate success or not. I would like subsequent resources created to
    Depend On
    that
    BoolOutput
    . Any thoughts?
    b
    • 2
    • 9
  • b

    bright-sandwich-93783

    07/06/2021, 2:02 PM
    i.e, I would like to implement the following psuedo code:
    resource1 := NewResource(...)
    
    output2 := resource1.output1.ApplyT(func(s) bool { 
        // make API calls to external service
        return true
      }
    
    resource2 := NewResource(..., pulumi.DependsOn(output2))
                                                    ^ arg requires pulumi.Resource
  • d

    damp-school-17708

    07/06/2021, 2:21 PM
    Hi all, I think I've hit a bug with pulumi building docker images, I am trying to build a multiarch image, in order to do that I've setup my mac (M1) to use buildx by default. When I add the
    --platform
    flag into the pulumi code I get back an error, that the command is not right. If I copy the command and paste into the terminal as-is the docker build works... I've put a very simple sample into github to reproduce https://github.com/aterreno/pulumi-docker-multiarch What's the best repo to open an issue on github @pulumi/pulumi? Or am I missing something else and it's not a bug? Thanks
    a
    • 2
    • 5
  • m

    many-yak-61188

    07/06/2021, 3:24 PM
    hello all 👋 Does anyone have a sample project that combines
    github actions + python source managed by poetry + pulumi-aws also managed by poetry
    most of the examples / documentation utilize
    pip
    i'm running into an issue with my combination and figured I'd ask if someone had a pointer
    b
    • 2
    • 3
  • f

    full-island-88669

    07/06/2021, 3:26 PM
    Hi! How do I get bucket name? I'm trying to access it as
    bucket.name
    , but having an error:
    'Bucket' object has no attribute 'name'
    b
    • 2
    • 2
Powered by Linen
Title
f

full-island-88669

07/06/2021, 3:26 PM
Hi! How do I get bucket name? I'm trying to access it as
bucket.name
, but having an error:
'Bucket' object has no attribute 'name'
b

billowy-army-68599

07/06/2021, 3:28 PM
it's
bucket.bucket
f

full-island-88669

07/06/2021, 4:26 PM
yea, thanks
View count: 1