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
getting-started
  • b

    breezy-laptop-42679

    08/02/2022, 9:24 AM
    hope it helps
  • r

    rich-agency-75207

    08/02/2022, 3:40 PM
    Hi All. Has anyone had any success importing pre-existing active GCP resources into their Pulumi stack? I've tried various documented methods without success so far. E.G.
    error: Preview failed: unrecognized resource type (Read): gcp:compute:Instance
    Am probably missing something obvious. I've tried with stacks configured with
    gcp-python
    and
    google-native-yaml
    templates.
    l
    • 2
    • 3
  • r

    rich-agency-75207

    08/02/2022, 3:43 PM
    Example test.json:
    {
      "resources": [
        {
          "type": "gcp:compute:Instance",
          "name": "********",
          "id": "787623324243234"
        }
      ]
    }
    name
    and
    id
    sourced from
    gcloud compute instances describe ***** --zone **** --format=json
    output
  • r

    rich-agency-75207

    08/02/2022, 3:44 PM
    error from
    pulumi import -f test.json
  • b

    breezy-laptop-42679

    08/02/2022, 3:45 PM
    Hello James what was the pulumi preview like
  • b

    breezy-laptop-42679

    08/02/2022, 3:46 PM
    I mean what kinda error you read there
  • r

    rich-agency-75207

    08/02/2022, 3:46 PM
    It's a new project with json file.
  • r

    rich-agency-75207

    08/02/2022, 3:47 PM
    Have tried with
    "type": "google-native:compute/v1:Instance" too
    In this case I get
    error: Preview failed: selfLink property "selfLink" not found
  • v

    victorious-memory-43562

    08/02/2022, 5:33 PM
    Hey everyone! I have a multi-account AWS architecture with lots of resources that need to be provisioned dynamically. Most of my infra is in CloudFormation and I’m going to be migrating it all over to Pulumi. Need to do it as quickly as possible, so I would love some advice up front. Most specifically: 1. There’s a set of resources I need to deploy many instances of on demand. If I organize them into components and deploy instances of them with the Automation API, does that add those resources to the state so they can be redeployed if I rip down the whole architecture? 2. What Pulumi tooling is available to manage many AWS accounts? Think account-per-tenant provisioning 3. Is there a repository of examples of components?
    b
    • 2
    • 11
  • a

    acoustic-plumber-13001

    08/03/2022, 4:31 PM
    Hi folks, new to Pulumi and getting our team account set up with some basic testing to see how things work. I have yet another question about
    .apply
    which I think I'm just getting syntax wrong. Code in my first reply, but the general gist of what I'm attempting: • Given two projects, we'll call them
    bucket
    and
    iam
    • Export an s3 bucket from the
    bucket
    project • Get the string value of that bucket's ARN in the
    iam
    project
    b
    l
    c
    • 4
    • 13
  • b

    brief-baker-41837

    08/04/2022, 7:39 AM
    Hi there, is there a way to suppress the 'new version available' warnings in pulumi ?
  • f

    full-zebra-67293

    08/04/2022, 8:49 AM
    Hi Team Can u people help me How to install the pulumi in Windows through Gitbash or command Prompt??
    g
    • 2
    • 3
  • f

    few-lizard-48557

    08/04/2022, 12:18 PM
    Hello everyone, I have a question about azure-native, keyVault and WebApp. My use case is simple => I want to store a secret in keyVault, which I then want to access in the App Settings (Environment Settings) of the WebApp. Unfortunately, I create a circle reference when I try to do this and I don't get anywhere at this point. But here again individual actions I want to perform: 1.) new azure-native.web.WebApp(...): Create a WebApp with a managed System Identity and various AppSettings (Env. Variables) 2.) new azure-native.keyvault.Vault(...) Create a vault with an AccessPolicy for the WebApp created in 1.). For referencing the WebApp I use the outputs of the WebApp. 3.) new azure-native.keyvault.Secret(...) Create a Secret in the KeyVault created in point 2.) At this point it's over for me, because I want to access the Secret of the KeyVault in the AppSettings of the WebApp. If I now simply extend the AppSettings of the WebApp (see point 1.)) so that they access the Secret (Output Value) of the KeyVault I have created a circle reference. Can anyone tell me what I need to do to handle this in azure-native....
  • c

    calm-kitchen-4682

    08/04/2022, 3:33 PM
    Is there a simple way to get, from Pulumi, the currently / default configured kubernetes Provider? Or maybe the currently / default configured kubernetes cluster? I assume one is being built based on the values in the YAML file of the current stack behind the scenes.
    s
    • 2
    • 1
  • a

    acoustic-apple-75209

    08/06/2022, 9:03 AM
    hey folks.. I have a very newbie question , but maybe a complex scenario
    q
    • 2
    • 64
  • a

    acoustic-evening-77298

    08/08/2022, 3:40 PM
    Hi, we are looking at writing a custom component and the documentation is incomplete as to what should be supplied to the “props” of the component base class. Going with Python:
    super().__init__(
      "<component-type-id>",
      "<component-name>",
      props: Optional[Inputs],
      opts
    )
    In the examples I can find the
    props
    are not handled. Digging through the code that seems to resolve to the
    Resource.__init__(... props )
    To confirm, my best guess is that any
    pulumi.Input[]
    to my custom component should be forwarded to the base class
    __init__
    AND that part of the reason for this is to allow Pulumi to work out dependency ordering between my component and other resource outputs… BUT that it generally doesn’t matter in practice because these are forwarded to sub-resources of the component so the dependency ordering is handled that way. --- So the question here: (1) is the understanding above correct and (2) are there any other important reasons for specifying the component properties? In all of the Pulumi examples, they seem to pass
    None
    or
    {}
    (e.g. Azure Virtual Data Center)
    d
    q
    • 3
    • 3
  • d

    delightful-bear-69098

    08/08/2022, 6:55 PM
    Hi I am looking to run the getting started example with kubernetes and found some issues, the import for the kubernetes sdk in the docs don't work and I am getting the following error:
  • d

    delightful-bear-69098

    08/08/2022, 6:55 PM
    error: Running program [PID: 7304](unknown) failed with an unhandled exception: java.lang.UnsupportedOperationException: Convert [com.pulumi.kubernetes.apps.v1.Deployment.spec]: Error converting 'com.google.common.collect.RegularImmutableMap' to 'TypeShape{type=class com.pulumi.kubernetes.apps.v1.outputs.DeploymentSpec, parameters=[]}'. argument type mismatch at com.pulumi.serialization.internal.Converter.convertObjectUntyped(Converter.java:118) at com.pulumi.serialization.internal.Converter.convertValue(Converter.java:85) at com.pulumi.core.internal.OutputCompletionSource.setValue(OutputCompletionSource.java:95) at com.pulumi.deployment.internal.DeploymentImpl$ReadOrRegisterResourceInternal.lambda$completeResourceAsync$0(DeploymentImpl.java:1193) at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642) at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) Caused by: java.lang.IllegalArgumentException: argument type mismatch
    b
    • 2
    • 2
  • m

    most-mouse-38002

    08/09/2022, 11:14 AM
    We should just keep
    Pulumi.*.yaml
    files in git, right? So long as we store the secret key for the values within the file in a proper manner this is the way, correct?
    ✅ 1
    e
    • 2
    • 2
  • q

    quiet-state-82941

    08/09/2022, 6:23 PM
    If I begin trialing Pulumi on an individual free plan, can I upgrade that plan to a Team plan later? Or would I need to start fresh from a new account?
    b
    • 2
    • 2
  • g

    great-lifeguard-55102

    08/10/2022, 9:25 AM
    Hi and first message from me. We are looking into IaC and that's why I'm here now :-) We have three environments - QA, Stage and Production and an Azure setup for each of them. Today or TeamCity starts a new build workflow, unit tests, etc. All triggered by a commit to GitHub and TeamCity creates NuGet packages and deploys to our eight app services through Octopus deploy In this workflow I would like to introduce IaC and destroy / recreate "everything" in Azure every time we deploy to Azure. I would like to to this: - Create a new database from and apply a bunch of SQL scripts and insert misc. records into tables to have the same starting point each time. - Create a resource group - Create service plans, app services - Add access restrictions, etc. Is all the above possible with Pulumi and can we continue to use TeamCity / Octopus to reach this goal? If yes, then I will create a POC to convince my boss to invest in this project 😀
    b
    • 2
    • 2
  • l

    late-lizard-19909

    08/11/2022, 2:49 PM
    Is there good documentation somewhere for working with promises? I don't really understand what they are.
    m
    b
    • 3
    • 2
  • d

    delightful-bear-69098

    08/11/2022, 3:16 PM
    When using Pulumi with Kubernetes can we generate the output YAML files from Pulumi ?
    b
    • 2
    • 3
  • d

    delightful-bear-69098

    08/11/2022, 6:54 PM
    Hi I converted the quickstart k8s java example into Kotlin/JVM and I would like to share where: https://github.com/luistrigueiros/quickstart-pulumi-k8s-kotlin
    b
    • 2
    • 2
  • d

    delightful-bear-69098

    08/11/2022, 6:55 PM
    I would like to make in more Kotlin idomatic using a DSL support later
  • l

    lively-helmet-97905

    08/12/2022, 3:56 PM
    Hi, an official vscode extension for pulumi? To syntax highlight and auto completion?
    b
    • 2
    • 2
  • m

    microscopic-doctor-76377

    08/14/2022, 1:26 AM
    hi How to start stop a ec2 instance using pulumi automation api?
    e
    • 2
    • 5
  • s

    swift-apple-26877

    08/15/2022, 5:07 PM
    Hi Anyone know how I can create a stack from GitHub Actions? I can only see commands for "up", "refresh"... No stack creation options 🤔
    b
    w
    w
    • 4
    • 10
  • s

    shy-dentist-79386

    08/16/2022, 9:58 PM
    Hi, How do I get generated password from this https://www.pulumi.com/registry/packages/random/api-docs/randompassword/
    b
    m
    • 3
    • 16
  • h

    happy-processor-87181

    08/17/2022, 7:42 AM
    Howdy! I started a project then deleted it and am trying to re-use the name, but it's telling me that "a project with that name already exists". I assume that means y'all are using soft delete for projects? Is there a way to reuse a project name?
    e
    • 2
    • 4
Powered by Linen
Title
h

happy-processor-87181

08/17/2022, 7:42 AM
Howdy! I started a project then deleted it and am trying to re-use the name, but it's telling me that "a project with that name already exists". I assume that means y'all are using soft delete for projects? Is there a way to reuse a project name?
e

echoing-dinner-19531

08/17/2022, 7:44 AM
Did you delete the stacks for the project as well?
pulumi stack rm
etc
h

happy-processor-87181

08/17/2022, 7:47 AM
That was it! Much thanks!
e

echoing-dinner-19531

08/17/2022, 7:49 AM
n/p 🙂
View count: 3