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

    adamant-dress-73325

    12/06/2022, 8:57 PM
    Does anyone know how to force pulumi to reinstall plugin binary for the aws provider using the right architecture? I'm on an m1 mac, and for some reason the plugin binary is using amd64 instead of arm.
    e
    • 2
    • 3
  • i

    important-receptionist-30715

    12/06/2022, 9:10 PM
    I am using pulumi with c# and I want to run some c# code ONLY if specific resource is created. how do I do it ?
    b
    m
    e
    • 4
    • 33
  • w

    wet-fall-57893

    12/06/2022, 11:10 PM
    Hey guys A question on upgrading
    confluentcloud
    provider from
    0.1.0
    to
    1.x
    pulumi up
    operation with
    refresh
    flag throws error below and I tried the approach suggested in this [thread](https://github.com/pulumi/pulumi-confluentcloud/pull/14) but unfortunately it didn’t work either as running
    refresh
    gave me the same error.
    panic: interface conversion: interface {} is nil, not string
    Another method I’ve tired without
    refresh
    while it didn’t emit the error, it wanted to replace the kafka topic which we cannot do as doing so would cause data loss in our prod environment. So I am looking for the right way to upgrade the package.
    • 1
    • 1
  • o

    orange-airport-64592

    12/07/2022, 3:45 AM
    Hi, Why is there an error ? as a different region for the bucket?
    aws:s3:Bucket (S3-IoT-stage-job-jar):
        error: deleting urn:pulumi:stage-import-clone::stage_only::aws:s3/bucket:Bucket::S3-IoT-stage-job-jar: 1 error occurred:
            * error deleting S3 Bucket (s3-iot-stage-job-jar-7e2c66a): IllegalLocationConstraintException: The ap-east-1 location constraint is incompatible for the region specific endpoint this request was sent to.
            status code: 400, request id: PP0EY31SN0BDDB95, host id: 3Ssyi806zke54MGOBFSsvK3pAh11K3QQi6eQZPulDsBUnAeR5rigSvGkVen91PNduIU3QPgcXJY=
     
      aws:s3:Bucket (S3-IoT-stage-onecloud-customer-files):
        error: deleting urn:pulumi:stage-import-clone::stage_only::aws:s3/bucket:Bucket::S3-IoT-stage-onecloud-customer-files: 1 error occurred:
            * error deleting S3 Bucket (s3-iot-stage-onecloud-customer-files-46fb81f): IllegalLocationConstraintException: The ap-east-1 location constraint is incompatible for the region specific endpoint this request was sent to.
            status code: 400, request id: PP03BQD656QWS92Z, host id: nbOU5sqTDuOe0KhiwElXHBpg942got9OavgN0ASR7MbMQp8MbhUcjpoE3oSpeeYmZJNhxfyz5HQ=
    But I create it by the same code.
    b
    • 2
    • 2
  • r

    refined-carpet-42005

    12/07/2022, 7:39 AM
    Hey, is there a way to force a recreate on a resource if another resource was updated? For example, if resource
    X
    is updated I always want resource
    Y
    to update as well (but not the inverse). I've tried to use
    depends_on
    but it doesn't make a difference
    e
    • 2
    • 2
  • p

    proud-hospital-15953

    12/07/2022, 10:45 AM
    Hi here, is there a way to easily update golang runtime to 1.19.3+ in pulumi to resolve vulnerabilities issues.
    m
    • 2
    • 1
  • g

    glamorous-answer-86536

    12/07/2022, 11:23 AM
    Hi, I am trying to deploy a VPC with
    pulumi-awsx
    to a newly created account using `assume_role`:
    import pulumi
    import pulumi_aws as aws
    import pulumi_awsx as awsx
    
    config: dict = {
        "skip_credentials_validation": True,
        "skip_metadata_api_check": False,
    }
    
    org_provider = aws.Provider("org-provider", **config)
    
    account = aws.organizations.Account(
        "account", email="<mailto:test@example.com|test@example.com>", role_name="account-role", opts=pulumi.ResourceOptions(provider=org_provider)
    )
    
    provider = aws.Provider(
        "account-provider",
        assume_role=aws.ProviderAssumeRoleArgs(
            role_arn=pulumi.Output.concat("arn:aws:iam::", account.id, ":role/", account.role_name)
        ),
        **config
    )
    
    vpc = awsx.ec2.Vpc("vpc", opts=pulumi.ResourceOptions(provider=provider))
    This throws an error on
    pulumi preview
    already:
    Exception: Cannot read properties of undefined (reading 'length')
        error: TypeError: Cannot read properties of undefined (reading 'length')
            at Vpc.getDefaultAzs (/snapshot/awsx/bin/ec2/vpc.js:184:26)
            at processTicksAndRejections (node:internal/process/task_queues:96:5)
            at Vpc.initialize (/snapshot/awsx/bin/ec2/vpc.js:45:103)
    My dependencies are:
    pulumi==3.48.0
    pulumi-aws==5.23.0
    pulumi-awsx==1.0.0
    When I comment out
    assume_role
    it works. It looks like it cannot resolve tha availability zones. When I add
    availability_zone_names=["eu-central-1a", "eu-central-1b"]
    to
    awsx.ec2.Vpc
    explicitly, it works as well. Is that intended behaviour? Am I missing something?
    b
    • 2
    • 3
  • i

    important-receptionist-30715

    12/07/2022, 7:53 PM
    Is there way to activate an existing workflow (that is triggered by workflow_dispatch) for repository, from Pulumi ? I have the Github token for GitHub API
    l
    • 2
    • 1
  • m

    miniature-musician-31262

    12/08/2022, 3:33 PM
    A few of us have noticed this with Python programs lately — wanted to share this here in case anyone else is seeing it too: https://pulumi-community.slack.com/archives/CDE799L1M/p1670513358998609
    • 1
    • 1
  • g

    glamorous-kilobyte-25827

    12/08/2022, 6:20 PM
    I'm using pulumi to write snowflake infrastructure. I originally imported many snowflake objects into pulumi resources and have all the python code for those resources. Recently I ran pulumi refresh to make sure the resources matched the state in snowflake and it deleted about 100 resources even though those resources still exist in snowflake. I have retainOnDelete and protect flags set on all the resources and can't figure out why they were deleted from pulumi state. Can anyone help with this?
    m
    • 2
    • 2
  • c

    cold-motherboard-88215

    12/09/2022, 9:43 AM
    Maybe a stupid question but I’ve created a polumi project locally … and I now want to move it to pulumi cloud … how can I do this ?
    b
    • 2
    • 2
  • b

    brainy-beach-36627

    12/09/2022, 3:44 PM
    Sorry if I missed something, but I just tried to upgrade the pulumi-eks library to version 1.0.0 (python code). And I get the following error :
    Exception: Invoke: Default provider for 'aws' disabled. 'aws:index/getPartition:getPartition' must use an explicit provider.
    If I downgrade the lib to my previous version, it works again
    a
    • 2
    • 11
  • r

    rapid-gpu-95788

    12/09/2022, 3:46 PM
    👋 Hi everyone! Does anyone have a good Pulumi example of deploying API Gateway + Lambda (similar to serverless.yml inputs)?
    s
    • 2
    • 4
  • a

    alert-analyst-72112

    12/10/2022, 7:12 AM
    Hey all. Has anyone had experience using Pulumi with PlanetScale?
  • a

    alert-garage-57347

    12/11/2022, 4:29 AM
    Hey guys. I'm unable to install Pulumi when building a Docker container for local dev. The problem is that in the official install script,
    TARBALL_DEST=$(mktemp -t pulumi.tar.gz.XXXXXXXXXX)
    works but
    EXTRACT_DIR=$(mktemp -d pulumi.XXXXXXXXXX)
    fails with permission denied. Does anyone know how to fix this?
    e
    • 2
    • 5
  • d

    dry-action-66059

    12/12/2022, 6:55 AM
    👋 Hi everyone! Is it possible in Pulumi to create logins on the fly for your operations maybe through some API (I have not checked the automation API to see if it supports the same, sorry about that). The use case is to run an API server that exposes certain routes which can help in creating of infra for a few different accounts based on the credentials passed in the request body. Any help on the same would be appreciated
    b
    • 2
    • 5
  • h

    high-translator-37096

    12/12/2022, 8:16 AM
    message has been deleted
  • j

    jolly-window-25842

    12/12/2022, 8:40 AM
    Hi, I have an issue with a team member. I tried inviting him and he did a
    pulumi up
    , however pulumi says it basically has to update everything when run from his computer. We share the same repo obviously, I’m on Mac, he is on Windows. What could it be? Thanks a lot for the help, I can’t figure this out!
    q
    • 2
    • 9
  • o

    orange-airport-64592

    12/12/2022, 8:47 AM
    Hi, I want to know if multiple projects can use the same backend and same stack?
    e
    • 2
    • 1
  • o

    orange-airport-64592

    12/12/2022, 9:29 AM
    if I use the self-managed backend, does It not support the organization?
    ➜  test2 pulumi stack init broomllc/staging
    warning: A new version of Pulumi is available. To upgrade from version '3.44.3' to '3.49.0', run 
       $ brew upgrade pulumi
    or visit <https://pulumi.com/docs/reference/install/> for manual instructions and release notes.
    error: stack names may not contain slashes
    e
    • 2
    • 6
  • f

    famous-train-16653

    12/12/2022, 9:54 AM
    Hi, just upgraded from 3.48 to 3.49 and I’m getting this error when deploying:
    CommandError: code: -2\n' +
        ' stdout: \n' +
        ' stderr: Command failed with exit code 255: pulumi stack select --stack settlemint/staging-ethereum-goerli-ade2 --non-interactive\n' +
        'error: stack names may not contain slashes\n' +
        ' err?: Error: Command failed with exit code 255: pulumi stack select --stack settlemint/staging-ethereum-goerli-ade2 --non-interactive\n' +
        'error: stack names may not contain slashes\n' +
        '\n' +
        '    at Object.createCommandError (/Users/adrienblavier/Documents/settlemint/bpaas/node_modules/.pnpm/@pulumi+pulumi@3.49.0/node_modules/@pulumi/automation/errors.ts:75:27)\n' +
        '    at Object.<anonymous> (/Users/adrienblavier/Documents/settlemint/bpaas/node_modules/.pnpm/@pulumi+pulumi@3.49.0/node_modules/@pulumi/automation/cmd.ts:84:15)\n' +
        '    at Generator.throw (<anonymous>)\n' +
        '    at rejected (/Users/adrienblavier/Documents/settlemint/bpaas/node_modules/.pnpm/@pulumi+pulumi@3.49.0/node_modules/@pulumi/pulumi/automation/cmd.js:19:65)\n' +
        '    at processTicksAndRejections (node:internal/process/task_queues:96:5)'
    e
    • 2
    • 3
  • h

    hallowed-oil-54879

    12/12/2022, 1:07 PM
    Hi everyone, First time writing here, want to say that I’m very exciting about the project! I’m reading docs on Pulumi Packages and wondering if I got it right that native providers can only be implemented with Go? That’s the only example I see in docs It might be obvious by the fact that pulumi itself is written on Go and “native” refers to that 🙂 But then I Iook at the “write once, use in all languages” pic here and it gives me hope that it’s not the case Also, does it support Java generation or maybe that’s at least on the horizon?
    e
    • 2
    • 10
  • d

    dry-keyboard-94795

    12/12/2022, 2:53 PM
    When using the
    import
    for ResourceOptions, is there a quick way to see what the differences are when presented with this warning?
    warning: inputs to import do not match the existing resource; importing this resource will fail
    b
    • 2
    • 16
  • b

    busy-island-31180

    12/13/2022, 1:15 AM
    Does anyone know what Pulumi does to get the json schema for terraform providers (that it uses for code-gen purposes) ?
    s
    • 2
    • 9
  • w

    wet-fall-57893

    12/13/2022, 5:34 AM
    Is there a way to tell which version of
    terraform-provider-aws
    the
    pulumi-aws
    provider is based on?
    b
    • 2
    • 1
  • o

    orange-airport-64592

    12/13/2022, 8:12 AM
    I don’t know why this reading step is slow : this is my code:
    vpce_execute = aws.ec2.VpcEndpoint.get(
        resource_name="vpce-execute",
        id=settings.vpce_execute_id
    )
    Can have some way to find the detailed reasons?
    s
    • 2
    • 9
  • j

    jolly-kangaroo-16457

    12/13/2022, 2:06 PM
    Is there any way to set default secrets-provider (like AWS KMS) per project?
    b
    • 2
    • 1
  • e

    eager-wall-56838

    12/13/2022, 5:54 PM
    Has anyone explored using Pulumi to template CI pipelines (GitHub Actions, GitLab CI, etc)? I think the existing functionality around Input and Output could be very useful for something like this. It would essentially be going from code to YAML, just like Pulumi can do for k8s manifests.
    s
    e
    • 3
    • 14
  • l

    lively-oxygen-34778

    12/13/2022, 6:08 PM
    Seeing this issue when I’m trying to destroy some EC2/EBS unsure of what is occurring but I am certain permissions are appropriate. Any suggestions on where to look next for a resolution? Thank you in advance.
    ##[error]Logging in using access token from PULUMI_ACCESS_TOKEN 
    
    ##[error][resource plugin aws-3.12.2] installing 
    
    ##[error]The process '/usr/local/bin/docker' failed with exit code 255 
    
    Finishing: Run pulumi up
  • s

    sparse-spring-91820

    12/13/2022, 6:12 PM
    Is there an option to create a custom reset password template for Auth0 using pulumi? As far I can see from the documentation, there is only option to customize the login page: https://www.pulumi.com/registry/packages/auth0/api-docs/branding/#brandinguniversallogin Am I missing something?
    m
    • 2
    • 7
Powered by Linen
Title
s

sparse-spring-91820

12/13/2022, 6:12 PM
Is there an option to create a custom reset password template for Auth0 using pulumi? As far I can see from the documentation, there is only option to customize the login page: https://www.pulumi.com/registry/packages/auth0/api-docs/branding/#brandinguniversallogin Am I missing something?
m

many-telephone-49025

12/13/2022, 6:22 PM
Hi Ivo, You could use https://www.pulumi.com/registry/packages/auth0/api-docs/emailtemplate/ for creating a custom email template
s

sparse-spring-91820

12/13/2022, 6:25 PM
Hello @many-telephone-49025, Thank you for your fast response. If I am not mistaken this is for email templates, right? What I need is to style login, register and reset password pages and not email templates
m

many-telephone-49025

12/13/2022, 6:30 PM
What about the https://www.pulumi.com/registry/packages/auth0/api-docs/tenant/
there is the option to set html in the
chnagePassword
and sorry @sparse-spring-91820, i did not see that you asked for the page and not the mail 😞 sorry
Looks like you have to use the Liquid syntax in the html
s

sparse-spring-91820

12/14/2022, 8:45 AM
No worries, I appreciate your help 🙌! It seems that Tenant is the way to go for changing the reset password screen. For the registration screen, I guess I will have to use auth0 API
View count: 1