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

    elegant-oil-67420

    02/24/2021, 2:32 AM
    l
    2 replies · 2 participants
  • e

    elegant-oil-67420

    02/24/2021, 2:32 AM
    I am trying to import a virtual machine in azure to pulumi
  • w

    wide-crayon-4093

    02/24/2021, 4:19 AM
    hey folks, is it possible to migrate from one runtime to another? i want to switch from nodejs/ts to go. how does one do that without messing up the state?
    w
    2 replies · 2 participants
  • c

    clever-cartoon-41433

    02/24/2021, 5:07 AM
    Why do I need to check so many errors when I write golang pulumi code? What is actually erroring? Aren't I just specifying a config file when this thing runs?
    b
    w
    4 replies · 3 participants
  • c

    clever-cartoon-41433

    02/24/2021, 5:11 AM
    The pulumi output model reminds me of haskell's monads actually, it's kind of funny. I think they're actually just the same idea
  • b

    bumpy-easter-72049

    02/24/2021, 6:11 AM
    is it by design that a child resource inherits its parent’s
    protected
    status?
  • b

    bumpy-easter-72049

    02/24/2021, 6:13 AM
    for example, i have a
    protected
    storage account, then i create a second resource and pass
    parent = storageAccountReference
    , then the second resource shows up as protected in the pulumi state
    w
    1 reply · 2 participants
  • k

    kind-mechanic-53546

    02/24/2021, 8:25 AM
    Hey folks, The docs for
    pulumi destroy --target {urn}
    states that
    All resources necessary to destroy this target will also be destroyed
    This would seem to imply that child resources of a @pulumi/kubernetes.yaml.ConfigGroup would be destroyed as well but this is not the case
    --target-dependents
    also doesn't cause the child resources to be destroyed Am I missing something?
    w
    3 replies · 2 participants
  • c

    cold-motherboard-287

    02/24/2021, 8:49 AM
    Is it possible to
    .filter
    resources in Typescript that you've just created based on some property? I'm struggling do it with created resources since they all use the
    Output<T>
    in the properties
    w
    4 replies · 2 participants
  • e

    elegant-island-39916

    02/24/2021, 11:18 AM
    Hi how do I perform
    --set-file
    with helm charts using
    pulumi-kubernetes
    ? I'm using Python. Thanks!
    ✅ 1
    2 replies · 1 participant
  • m

    millions-market-17062

    02/24/2021, 1:16 PM
    Does anyone have an example on serving S3 Static Web from API Gateway using Private (VPC_LINK) mode?
  • g

    gentle-monitor-55086

    02/24/2021, 2:38 PM
    I keep hitting this bug where my aws lambdas are not getting api gateway triggers even though the methods properly show the link to the lambda I'll put details in a comment...
    2 replies · 1 participant
  • b

    breezy-apartment-46543

    02/24/2021, 3:12 PM
    Is is possible to have multiple stacks, each pointing to a specific index.js (without multiple projects)? Say you want to have one index.js for an HTTP trigger and one for a Blob trigger all in the same pulumi project but within separate folders.
    👀 1
    l
    2 replies · 2 participants
  • b

    bland-dawn-25389

    02/24/2021, 4:23 PM
    Hi! I encounter an error when trying to import a GCP Cloud Run Domain Mapping (
    gcp:cloudrun/domainMapping:DomainMapping
    ):
    Diagnostics:
      gcp:cloudrun:DomainMapping (domain-mapping):
        error: gcp:cloudrun/domainMapping:DomainMapping resource 'domain-mapping' has a problem: Computed attribute cannot be set
        error: gcp:cloudrun/domainMapping:DomainMapping resource 'domain-mapping' has a problem: Computed attribute cannot be set
        error: gcp:cloudrun/domainMapping:DomainMapping resource 'domain-mapping' has a problem: Computed attribute cannot be set
        error: gcp:cloudrun/domainMapping:DomainMapping resource 'domain-mapping' has a problem: Computed attribute cannot be set
        error: Preview failed: one or more inputs failed to validate
    I tried the three formats documented in Pulumi's docstring: 1.
    pulumi import gcp:cloudrun/domainMapping:DomainMapping default locations/{{location}}/namespaces/{{project}}/domainmappings/{{name}}
    2.
    pulumi import gcp:cloudrun/domainMapping:DomainMapping default {{location}}/{{project}}/{{name}}
    3.
    pulumi import gcp:cloudrun/domainMapping:DomainMapping default {{location}}/{{name}}
    With the third format, without a project part, I receive the error
    project: required field is not set
    . The two first formats seem happy with the `id`string passed, i.e. not complaining about a missing field, but return the 4 errors mentioned above. Yet I could import many other GCP resources successfully; this is the only one that gives me trouble. I tried with Pulumi versions 2.21.1 and 2.21.2. These errors are similar to other reported errors (https://pulumi-community.slack.com/archives/C84L4E3N1/p1608570994454500 / https://github.com/pulumi/pulumi/issues/5828, https://github.com/pulumi/pulumi-terraform-bridge/issues/74), where the workaround solution was to remove an argument, but this was in the context Pulumi code, not a resource import. Any ideas? Thanks in advance!
    1 reply · 1 participant
  • e

    early-motorcycle-69706

    02/24/2021, 7:00 PM
    Anyplans to support org repos with
    github.Repository
    ?
  • e

    early-motorcycle-69706

    02/24/2021, 7:01 PM
    docs say,
    This resource allows you to create and manage repositories within your GitHub organization or personal account.
    but there is no attribut to work with ogs
  • e

    early-motorcycle-69706

    02/24/2021, 7:01 PM
    since github_tokens can only be issued for individuals
  • e

    early-motorcycle-69706

    02/24/2021, 7:01 PM
    you need to be explicit about the org
  • e

    early-motorcycle-69706

    02/24/2021, 7:02 PM
    ...oh wait. do you have set the env var?
  • e

    early-motorcycle-69706

    02/24/2021, 7:04 PM
    its clear in the GH repo, but not web docs
    b
    5 replies · 2 participants
  • a

    adamant-translator-31969

    02/24/2021, 7:54 PM
    Hi! I have an error when i want to delete my resources ... the message obtained is:
    deleting urn:pulumi:develop::mycomponent::awsx:x:ec2:Vpc$aws:ec2/vpc:Vpc::cloud-pulumi: 1 error occurred:
        	* Error deleting VPC: DependencyViolation: The vpc 'vpc-xxxxxx' has dependencies and cannot be deleted.
        	status code: 400, request id: 6b680395-95b2-463b-8d58-0023e5
    b
    l
    7 replies · 3 participants
  • c

    chilly-night-36370

    02/24/2021, 9:01 PM
    If I create a password with
    random.RandomPassword
    , and then use it for something like a database admin password. Is there a way that I can get that password if I want to login to the DB manually? Similar to a password manager like Bitwarden/Lastpass. The docs only explains how it is stored in state but I can't see anything on how you can view that password.
    b
    3 replies · 2 participants
  • v

    victorious-sugar-42620

    02/24/2021, 10:41 PM
    https://github.com/pulumi/pulumi-awsx/pull/643 any reviewers on this?
    b
    2 replies · 2 participants
  • e

    echoing-breakfast-73834

    02/24/2021, 11:00 PM
    Is there a design pattern for replacing a resource when a config var is
    true
    ? I'd like to have a 'password reset' configuration option for some secrets in AWS secrets manager that would, when set, trigger a rotation. Was thinking about generating a random string to append to the resource name, or creating a dynamic resource that the rotation resource is dependent on, but both approaches have a couple of problems
  • l

    little-cartoon-10569

    02/24/2021, 11:13 PM
    Is there a way to create a fake StackReference for unit tests?
    4 replies · 1 participant
  • l

    little-cartoon-10569

    02/25/2021, 2:47 AM
    Is there a way in unit testing to await all resources?
    f
    7 replies · 2 participants
  • c

    cuddly-actor-99406

    02/25/2021, 4:37 AM
    Is it possible to tag an aws resource after its creation? I need to create a subnet, pass it to a pulumi_eks.Cluster(), then tag the subnet with the cluster name. thanks.
    b
    6 replies · 2 participants
  • w

    wide-crayon-4093

    02/25/2021, 6:02 AM
    Is there an example for writing custom components as good as this, but for Go? https://github.com/pulumi/examples/blob/master/aws-ts-serverless-datawarehouse/datawarehouse/index.ts I've only found simple components, but curious to see how people structure components scope.
    b
    6 replies · 2 participants
  • c

    cuddly-actor-99406

    02/25/2021, 8:32 AM
    If I create a new eks cluster in a stack, how do I switch to that cluster to then apply a k8s resource? Is it enough to simply create a Provider(cluster=cluster) resource? k8s.yaml.ConfigFile doesn't seem to take a provider argument. Thanks.
    w
    2 replies · 2 participants
  • b

    billowy-queen-29529

    02/25/2021, 12:28 PM
    I’ve been combing through the typescript source code and the documentation trying to find an example of unit testing a Component Resource, but the examples I stumble across seem to be for direct resource uses in a file, and not say exporting the Component Resource class and initialising it. Does anyone happen to know where I can find an example/documentation for this?
Powered by Linen
Title
b

billowy-queen-29529

02/25/2021, 12:28 PM
I’ve been combing through the typescript source code and the documentation trying to find an example of unit testing a Component Resource, but the examples I stumble across seem to be for direct resource uses in a file, and not say exporting the Component Resource class and initialising it. Does anyone happen to know where I can find an example/documentation for this?
View count: 1