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

    refined-terabyte-65361

    07/28/2021, 10:28 PM
    Hello I am stuck with below error how can i fix this ?
    aws:route53:Record (xxx):
        error: 1 error occurred:
        	* [ERR]: Error building changeset: InvalidChangeBatch: [Tried to create resource record set [name='xxx', type='CNAME'] but it already exists]
        	status code: 400, request id: 7c1eac32-4a1b-4b36-9e31-2882bf2f53e4
    l
    • 2
    • 6
  • q

    quaint-dinner-37903

    07/29/2021, 12:03 PM
    Hi all, General question why when using python sdk I still need to install pulumi client ?
    g
    • 2
    • 2
  • a

    agreeable-hair-34658

    07/29/2021, 12:58 PM
    Hi guys, I am currently stuck with the following error, that arises when doing var virtualNetwork = Network.VirtualNetwork.Get(config.Network.Vnet.Key, config.Network.Vnet.Value); the error message is error: Code="ResourceNotFound" Message="The Resource 'Microsoft.Network/virtualNetworks/testvnet' under resource group 'ghd-dwhnet-prod-rg' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" the virtual network I need to reference is in another resource group than the resources, that I want to create
    g
    b
    • 3
    • 13
  • g

    great-sunset-355

    07/29/2021, 1:11 PM
    Is there a way to get a graph for the preview?
  • m

    modern-toothbrush-56347

    07/29/2021, 2:58 PM
    Hi all, Is there a way to create a "temporary" resource for use inside the Pulumi program only? I'm creating an Azure MySQL Server (DBforMySQL) and then use the "MySQL" Pulumi package to create some users and grants. However, I need to create a firewall rule in between these steps so that the MySQL Pulumi package can connect to the database. Ideally after creating the users I'd like to remove the firewall rule.
    b
    b
    • 3
    • 3
  • q

    quiet-architect-91246

    07/29/2021, 6:27 PM
    Hi, im currently working through https://www.pulumi.com/blog/build-publish-containers-iac/, and its been really helpful! When i run a 
    pulumi up
     on the full code given in the walkthrough Im running in the following issue: The cluster (not in the scope of the walkthrough but I create it in the same .go file just before the repository), image and repository are created without problem, but when trying to create the service using the image it fails since its trying to use my local .kube/config to access the cluster which isnt updated. When I manually update it for the newly generated cluster and run 
    pulumi up
     again the service is created without problem. Is there anyway to hand in the kubeconfig from the cluster by using 
    cluster.kubeconfig
     in the service declaration somehow? I looked through all the Parameters used in 
    appsv1.NewDeployment()
     but couldnt find anything suitable. If anyone has any idea on how this could be solved Id greatly appreciate it!
    b
    • 2
    • 13
  • s

    stale-nail-78326

    07/29/2021, 7:42 PM
    Hello, is there a TypeScript API to get the
    pulumi whoami
    information? I'm want to add this information as a label/tag when creating some resources, but couldn't find it in the docs.
    b
    • 2
    • 1
  • a

    agreeable-hair-34658

    07/29/2021, 7:57 PM
    hi guys, is there any guidance on when to use the resource getter, e.g.
    AzureNative.Resources.ResourceGroup.Get(name, id)
    and when to use the getresource function, e.g. https://www.pulumi.com/docs/reference/pkg/azure/network/getvirtualnetwork/#example-usage? I am not sure, when to use which of both.
    b
    • 2
    • 5
  • a

    able-pager-97491

    07/29/2021, 9:41 PM
    hey! I’m trying the inline automation api and getting the error added by https://github.com/pulumi/pulumi/pull/7349
    error: Unhandled exception: Error: Detected multiple versions of '@pulumi/pulumi' in use in an inline automation api program.
        Use the yarn 'resolutions' field to pin to a single version: <https://github.com/pulumi/pulumi/issues/5449>.
    r
    l
    • 3
    • 13
  • w

    wet-sunset-4939

    07/30/2021, 1:44 AM
    Hi Everyonce, Just quick question. I'm not able to get Azure client token with current login (Service Principal) when using this method. Not sure what is wrong.
    function getClientToken(args: GetClientTokenArgs, opts?: InvokeOptions): Promise<GetClientTokenResult>
  • p

    powerful-jelly-35580

    07/30/2021, 10:22 AM
    Hello All, I am trying to use automation API and I was wondering: is there a way to pass arguments to the program? We have this function and I was wondering what to do if my
    program
    expects some arguments from the user?
    auto.create_or_select_stack(
                stack_name=self.config.environment,
                project_name=self.deployment_name,
                program=self.program,
                opts=self.workspace_opts)
    b
    r
    • 3
    • 5
  • b

    bright-orange-69401

    07/31/2021, 11:17 AM
    Hey there, Does someone know how to use the
    StackReference.get_provider
    function ? I’m trying to get the AWS provider from stack
    A
    while in stack
    B
    to do some cross-account provisioning Here’s the doc I found: https://www.pulumi.com/docs/reference/pkg/python/pulumi/#pulumi.Resource.get_provider What is the
    module_member
    argument supposed to be exactly ?
    g
    l
    • 3
    • 8
  • b

    bright-orange-69401

    07/31/2021, 6:23 PM
    I’m trying to integrate Snowflake with AWS via Pulumi and I have sort of a circular resource dependency going on Here’s what I’m trying to do: 1. Create
    Role
    in AWS 2. Create
    StorageIntegration
    in Snowflake using
    Role
    from step 1 3. Update
    Role
    by adding parameters obtained after creating the
    StorageIntegration
    in step 2 Is there a way to solve such a pattern in Pulumi ? (Other than manually hard-coding stuff and re-deploying) Is there maybe an
    UpdateRole
    resource that I can provision in my step 3 ? (NB: it’s specifically the
    assume_role_policy
    that I need to alter in step 3)
    g
    • 2
    • 11
  • m

    modern-belgium-42936

    07/31/2021, 9:50 PM
    Greetings everyone! I am trying to reason about the deletion process of the S*potInstances*. When I initiate a destroy command on my stack (1 spotRequest instance), the instance never gets terminated. Is it expected for me to terminate this instance by hand (from the console)?
  • p

    proud-pizza-80589

    08/01/2021, 5:45 PM
    on linux, where are the installed plugins stored? I’m caching my dependencies on GHA but if i just cache the node modules i’m missing the plugin binaries.
    b
    • 2
    • 2
  • a

    ambitious-battery-86624

    08/01/2021, 8:31 PM
    I have a dynamic resource where I forgot to save an API key after creation. Now I can't delete it anymore, and Pulumi doesn't destroy the stack. I can delete the resource from the cloud provider manually, but how to I get it out of the stack again?
    p
    • 2
    • 8
  • r

    rough-bear-39440

    08/02/2021, 7:36 AM
    Hey all, we are experiencing that pulumi cli get stuck on running indefinitely, could anyone point us in direction how to solve this?
    g
    • 2
    • 3
  • g

    green-tent-73437

    08/02/2021, 9:43 AM
    I'm trying to test aws s3 bucket create operation with pulumi and jest, but couldn't find a good example for typescript yet.
  • g

    green-tent-73437

    08/02/2021, 9:43 AM
    I have also posted a question on SO, can someone have a look at it and help?
    • 1
    • 1
  • g

    green-tent-73437

    08/02/2021, 9:44 AM
    Thanks a lot in advance.
  • g

    green-tent-73437

    08/02/2021, 9:44 AM
    https://stackoverflow.com/questions/68617412/how-to-test-pulumi-s3-bucket-event-handlers-with-jest-in-typescript
  • a

    agreeable-ram-97887

    08/02/2021, 1:27 PM
    Is there a way to replace my pulumi account’s “Web Identity” on GitLab? I only see an option for ‘refresh’
    • 1
    • 1
  • m

    millions-furniture-75402

    08/02/2021, 1:54 PM
    I'm guessing no because Pulumi plans lack a mature standard, but Is there anything like https://github.com/terraform-docs/terraform-docs for Pulumi?
    b
    • 2
    • 2
  • l

    little-whale-73288

    08/02/2021, 2:43 PM
    Hi, is there a canonical way to emit a warning log message whenever a particular resource has been created?
    m
    • 2
    • 23
  • a

    ancient-night-64850

    08/02/2021, 5:06 PM
    Can't seem to find anything for turning on managed identity for an azure container registry object. Any ideas? work around? https://www.pulumi.com/docs/reference/pkg/azure-native/containerregistry/registry/#sku
    • 1
    • 1
  • b

    billions-xylophone-85957

    08/02/2021, 6:36 PM
    what exactly does pulumi CLI upload on
    up
    ? We're using an s3 backend and every change to a rather simple stack (3 stack references, 92 resources) takes 7-8 minutes on 5mbps upload/160ms latency to S3
    b
    • 2
    • 11
  • i

    icy-helmet-84765

    08/02/2021, 6:42 PM
    Is there a way to upload an AMI to AWS similar to how we can upload an image to Openstack (Using the Pulumi API)?
    s
    • 2
    • 1
  • r

    refined-terabyte-65361

    08/02/2021, 11:34 PM
    Hi I deployed some resources in in aws using pulumi deployment went as expected now i have some changes which i want to deploy but when i run pulumi up changes are not reflecting do we need to do something like reset or rebase for pulumi to pick latest changes from file ?
    l
    • 2
    • 1
  • l

    little-cartoon-10569

    08/03/2021, 1:18 AM
    Can anyone recommend a model for dealing with versioned cloud resources?
    • 1
    • 7
  • w

    wet-sunset-4939

    08/03/2021, 2:52 AM
    Hi @tall-librarian-49374 I'm trying to migrate pulumi azure to native but many resources are not able to find in native version. Ex: I'm not able to find FirewallNatRuleCollection resource in azure-native. What is alternative for this resource?
    t
    • 2
    • 2
Powered by Linen
Title
w

wet-sunset-4939

08/03/2021, 2:52 AM
Hi @tall-librarian-49374 I'm trying to migrate pulumi azure to native but many resources are not able to find in native version. Ex: I'm not able to find FirewallNatRuleCollection resource in azure-native. What is alternative for this resource?
t

tall-librarian-49374

08/03/2021, 5:22 AM
There’s no 1:1 mapping between the old model and ARM. I believe you have to define NAT rules inline in the AzureFirewall resource https://www.pulumi.com/docs/reference/pkg/azure-native/network/azurefirewall/#natrulecollections_nodejs
❤️ 1
w

wet-sunset-4939

08/15/2021, 1:00 AM
Thanks, I found a solution to fix it already.
View count: 1