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

    witty-diamond-30724

    07/19/2021, 6:50 PM
    Hello everyone. I use Pulumi with go lang programing provider. I have a stack reference doubt. Is it possible to interpolate the result into a string? Example, arn of a bucket would like to interpolate a StringOuput with another word, of type string.
    b
    • 2
    • 1
  • b

    better-shampoo-48884

    07/19/2021, 7:44 PM
    so... a weird thing happened.. killed a pulumi up command, the stack is backed by azure blob storage, and the stack disappeared from blob storage - i could only find the .json.bak version of the stack. After unsuccessfully downloading, renaming, and trying to upload it - I try re-creating the stack in pulumi cli (pulumi stack init..) and importing the .bak file (pulumi stack import --file).. I get this:
    λ pulumi stack import --file c:\tempstack\stage.k8s.deployment.json
    error: could not deserialize deployment: unexpected end of JSON input
    Any other hints on what to do? It's a 25mb stack..
  • b

    bumpy-businessperson-79451

    07/19/2021, 8:12 PM
    How can I set the feature gates of a Kubernetes cluster from pulumi? I tried searching for the option but I couldn't find them. I just want either a confirmation that it isn't possible or the correct option to set
    b
    b
    • 3
    • 7
  • e

    echoing-twilight-40421

    07/19/2021, 8:17 PM
    are there any examples of creating an AWS Cognito Identity Pool with attached Roles? Using the example from the docs, I was able to create the Pool but cannot attach the Role to it. No errors, it just doesn’t happen, it still says “You have not specified roles for this identity pool. Click here to fix it.” in the console.
    • 1
    • 1
  • a

    able-pager-97491

    07/19/2021, 8:25 PM
    Hey everyone! I’m trying to follow this guide (Kubernetes, GKE, typescript) to create a simple service with an ingress, and I can’t get the application ingress to find the existing endpoint associated with the service.
    b
    • 2
    • 10
  • l

    limited-rain-96205

    07/20/2021, 12:33 AM
    If one were to put a new root ComponentResource (which is not describing anything in the cloud -- it's basically a stub) as a new parent resource of everything currently at the topmost level, what would be the easiest & fastest way to apply the change, without having to re-create any existing resources?
    b
    • 2
    • 2
  • c

    creamy-raincoat-13266

    07/20/2021, 12:54 AM
    Running into this issue when I'm trying to run pulumi with circleci
  • c

    creamy-raincoat-13266

    07/20/2021, 12:55 AM
    error: getting secrets manager: secrets (code=Unknown): AccessDeniedException: The ciphertext refers to a customer master key that does not exist, does not exist in this region, or you are not allowed to access.
    	status code: 400
    Look to be related to something like this https://github.com/pulumi/pulumi/issues/4665 - has anyone been able to resolve this?
  • f

    fierce-market-67222

    07/20/2021, 8:57 AM
    Hello,
    
    i got a problem with the pulumi_gcp, the existing DNS records are not overwritten anymore…pulumi fails with resource is existing…
    
    It was working on pulumi 2 and its not working anymore in 3 … i need to make sure to delete all the existing records sets before…
    
    Does anybody has the same issue?
    
    
    
    > **Note:** The provider treats this resource as an authoritative record set. This means existing records (including
    the default records) for the given type will be overwritten when you create this resource in the provider
    b
    • 2
    • 7
  • s

    sticky-match-71841

    07/20/2021, 11:14 AM
    Hi, does anyone know if some tools exists that can help parse a preview json file? We would like something a bit better than the Pulumi GitHub app, and tried parsing the raw data ourselves but found it to be hard to grok how exactly to do it. Or is there maybe a feature brewing that would help make the diffs easier to parse?
    p
    • 2
    • 1
  • r

    rough-dinner-7791

    07/20/2021, 2:35 PM
    Hi, I'm deploying many container en gcp, using
    gcp.container.Registry
    then
    docker.image.Image
    to build it. Every time i make a pulumi up, it's took a looooong time to compile my dockers and then to repush then on my registry, even if their is no change. Pulumi don't use cache ? If i do it manually using
    docker build
    command, it's instant. Thank's
    s
    • 2
    • 1
  • g

    gorgeous-minister-41131

    07/20/2021, 8:32 PM
    So I renamed a stack for a project to one that somehow already existed in pulumi.com some how, and now my state has a ton of duplicate URNs… is this a known issue?
    f
    • 2
    • 51
  • p

    prehistoric-london-9917

    07/20/2021, 8:45 PM
    Question about required config values from structured config: Suppose I have an interface:
    interface PeopleArgs {
      name: string
      age?: number
    }
    And a config file that looks something like:
    config:
      things:people:
      - name: Peter Parker
        age: 40
      - name: Mary Jane
      - age: 38
    And in my Pulumi program I load the config:
    let config = new pulumi.Config("things");
    let people = config.requireObject<PeoplegArgs[]>("people");
    The first two should be fine. But I’d expect the third element to raise an error because it doesn’t satisfy the
    PeopleArgs
    interface (it’s missing
    name
    ). Instead, it seems that Pulumi puts
    undefined
    there. Is this expected behaviour or a bug? And has anyone who’s encountered this found a workaround?
    b
    • 2
    • 1
  • e

    enough-truck-34175

    07/20/2021, 8:57 PM
    I’m trying to run Pulumi integration tests as a Github Action. When integration tests are run in Github, the results return extremely fast ~1 second. It should take about 20 minutes to run the test. I can run integration tests locally just fine. Does anyone have advice for running integration tests in Github Actions?
    • 1
    • 2
  • c

    careful-pager-92424

    07/21/2021, 10:09 AM
    Hi Pulumi community, I'm trying to add a DynamoDB table to my stack but Pulumi is reporting that my Cognito user pool changed as well, specifically user pool domain. I haven't made any changes to my user pool but even when I proceed with the change I get the following error.
    aws:cognito:UserPoolDomain (dev.myapp.user-pool-client.web-app.domain-name):
        error: deleting urn:pulumi:dev::myapp::aws:cognito/userPoolDomain:UserPoolDomain::dev.myapp.user-pool-client.web-app.domain-name: 1 error occurred:
            * Error deleting User Pool Domain: InvalidParameterException: The domain is not configured for this user pool.
    Google search came up with this but being new to IaaC world I really don't understand difference between
    pulumi state delete
    and
    pulumi state unprotect
    . What can potentially go wrong when I run any of these commands? I really wouldn't like to lose my user pool with all users inside. Thanks
  • m

    miniature-leather-70472

    07/21/2021, 2:50 PM
    is there anyway to do an optional config.require? I have a scenario where I want to use the value in the config file if it exists, but fall back to a default if it doesn't exist. At the minute to do that I'd need to wrap it in a try/catch because config.require will throw an error if it doesn't exist
    b
    • 2
    • 2
  • w

    worried-hydrogen-32482

    07/21/2021, 7:15 PM
    Hey all - Is there a way to reuse or abstract Pulumi projects? e.g. I have a solution that consists of multiple pulumi projects. I would like to package the projects and treat them as a single unit that is versioned. I should then be able to deploy the solution package to as many customers as I wish with only the solution config being different. Updating the solution should be as easy as changing a version number and running pulumi up again. Any thoughts or ideas will be appreciated!
    b
    • 2
    • 3
  • n

    numerous-thailand-80976

    07/21/2021, 7:37 PM
    You can use Pulumi Packages for that
  • a

    adamant-fountain-88722

    07/21/2021, 8:07 PM
    Is there a "null" resource that I can use to group related resources together?
    b
    • 2
    • 4
  • q

    quiet-hairdresser-18834

    07/21/2021, 9:51 PM
    Is there any way to perform an action if a different resource changes? I have a scenario that I need to update a Kubernetes ConfigMap and if it has changed, I need to do some other actions. If it does not change, I don't want to do those actions
    b
    • 2
    • 2
  • b

    bored-monitor-99026

    07/22/2021, 3:40 AM
    hi everyone, i removed
    venv
    and updated
    pulumi.yaml
    , using`pipenv` instead. with everything installed, now when i do
    pipenv run pulumi up
    , i got
    error: Exception calling application: Program run without the Pulumi engine available; re-run using the `pulumi` CLI
    how to fix this error? thanks!
    b
    • 2
    • 3
  • k

    kind-park-65452

    07/22/2021, 6:55 AM
    Hi All, Having new Dynamic Provider in python which as part of the flow pulls object from S3 bucket, this is being done via aws.s3.get_bucket_object call:
    s3_obj = aws.s3.get_bucket_object(bucket=self.bucket_name, key=self.csv_object_key)
    This call is getting fail with an exception I couldn't find the root cause:
    venv/lib/python3.9/site-packages/grpc/_server.py:457: RuntimeWarning: coroutine 'invoke.<locals>.do_rpc' was never awaited
          return None, False
        RuntimeWarning: Enable tracemalloc to get the object allocation traceback
     
      pulumi-python:dynamic:Resource (app-map-migrated-tag):
        error: Exception calling application: There is no current event loop in thread 'ThreadPoolExecutor-0_0'.
    At first the pulumi_aws package version was 3.33.0 and I even tried to upgrade it to the latest (4.13.0) but no luck. Any idea here what could be the issue?
  • f

    freezing-quill-32178

    07/22/2021, 9:28 AM
    Hello everyone, Is someone having issues with the latest 2 versions of Pulumi in general working with
    Helm
    and
    pulumi.StackReference
    , particularly slow
    pulumi up
    … for example stack that usually took ~2 mins now take 5+ 10, some Helm stacks never finish so had to be killed as well (which lost the actual stack.json state and had to be recreated from backup and cleaned up) The Helm resources are marked as deleted (and actually deleted on the k8s cluster) but the
    pulumi up
    is stuck and never finishes), inspecting the stack json the resources are still present in the
    pending_operations
    . I’m using
    cert-manager
    helm chart for example, failed during install and during uninstall as well Also seeing a lot of
    I0722 11:14:27.696360   74884 request.go:655] Throttling request took 1.07776852s, request: GET:https://[REDACTED]/apis/flowcontrol.apiserver.k8s.io/v1beta1?timeout=32s
        I0722 11:14:38.496586   74884 request.go:655] Throttling request took 1.098435921s, request: GET:https://[REDACTED]/apis/admissionregistration.k8s.io/v1?timeout=32s
    b
    • 2
    • 3
  • g

    great-sunset-355

    07/22/2021, 9:41 AM
    Hi, I have a question about
    name_prefix
    - I found several existing issues about this so I'm not sure I should even use it. One of the issues: https://github.com/pulumi/pulumi/issues/6155 With pulumi resource you have to provide
    resource_name
    and if nothing else is set, this is used in the name of resource. eg. SNS Topic:
    sns.Topic(
        "my-topic",
    )
    Results in the resource name
    my-topic-1234
    . - this at least gives the reference between actual resource and pulumi resource However when I add the
    name_prefix
    it overrides the resource name completely.
    sns.Topic(
        "my-topic",
        name_prefix='my-prefix-'
    )
    Results in the resource name:
    my-prefix-20210722092833209300000002
    Is there any documentation about this behaviour? I assume this is inherited from terraform provider and may be resoveld with pulumi native provider which I heard about being in development, correct? Is it better for now to use
    pulumi resource name
    instead of name_prefix?
    b
    • 2
    • 2
  • g

    great-sunset-355

    07/22/2021, 11:08 AM
    I have another about component resources and
    register_outputs
    vs
    pulumi.export()
    that provides stack outputs. I have 2 projects
    core
    and
    app
    inside
    core
    there is a
    ComponentResource
    class MyTopic(ComponentResource):
        """My SNS Topic"""
    
        def __init__(self, config: TopicModel, opts: ResourceOptions = None):
            super().__init__(
                "stekz:components:aws:sns-topic",
                config.name,
                None,
                opts,
            )
    
            self.topic = sns.Topic(
                "component_topic",
                name_prefix=config.name_prefix,
            )
            self.register_outputs(
                {
                    'component_topic_name': self.topic.name,
                }
            )
    # now we instantiate the resource
    MyTopic(
        config=TopicModel(
            name='core-imported',
            name_prefix='cp'
        )
    )
    By doing so I expected to be able to refer to
    MyTopic.outputs.component_topic_name
    from
    app
    however that does not seem to be possible because all I can do is to use the
    StackReference
    . But stack reference can only refer to outputs from
    pulumi.export('key', 'value)
    So instead of using
    register_outputs
    I'd have to do this:
    t= MyTopic(
        config=TopicModel(
            name='core-imported',
            name_prefix='cp'
        )
    )
    
    pulumi.export('component_topic_name', t.name)
    Which I consider quite ineffective in case this has to be done on a larger amount of resources. Of course, I can wrap it in the function and invent my own convention for this but my point is that I should not have to. I see this as a problem inherited from terraform which suffers a very similar problem. https://github.com/hashicorp/terraform/issues/8554 I wonder if these issues is somehow related to my problem: https://github.com/pulumi/pulumi/issues/2653, https://github.com/pulumi/pulumi/issues/5941 thank you. I'm curious if there is any specific limitation that does not allow referencing to the outputs of another stack the way I'd expect or is just the result of the initial implementation where pulumi team took ideas from existing solutions? Thank you
    b
    • 2
    • 2
  • l

    little-market-63455

    07/22/2021, 12:41 PM
    Just wondering, why is there a concept of a namespace in the config files. Why isn't the key the namespace Current
    aws:someProperty: 'a'
    aws:somethingElse: 'b'
    vs.
    aws:
      someProperty: 'a'
      somethingElse: 'b'
    I feel this helps clear the confusion, at least mine, around reading nested configs and allows you to fold/unfold related options Something also related to this, why isn't the configuration key types inferred from the config file rather than specified explicitly. As in why
    requireString()
    and
    requireObject()
    and so on instead of just
    require()
    and
    get
    . I feel the config file already all has the type and secret semantics that you need for that?
    ➕ 1
    b
    h
    g
    • 4
    • 22
  • m

    mysterious-australia-14256

    07/22/2021, 3:35 PM
    Is it possible to rename a pulumi project?
    m
    g
    m
    • 4
    • 4
  • s

    steep-toddler-94095

    07/22/2021, 9:27 PM
    Is there a recommended pattern when dealing with multiple AWS accounts in a single organization? Is it better for the state to live in a single bucket in the root account or should the state for each account be in a bucket in that account?
    b
    l
    g
    • 4
    • 6
  • r

    refined-kitchen-10197

    07/23/2021, 3:00 AM
    hi guys, just made a question in #gitlab about the gitlab-ci integration that looks like is not working. https://www.pulumi.com/docs/guides/continuous-delivery/gitlab-app/
    b
    c
    • 3
    • 6
  • w

    wet-sunset-4939

    07/23/2021, 4:27 AM
    Hi All, Not sure if anyone facing the same issues with me? The Pulumi Azure Pipelines Task runs very slow some time it takes more than 1 hours. Seems, mixing between azure and azure-native are slow down the process.
Powered by Linen
Title
w

wet-sunset-4939

07/23/2021, 4:27 AM
Hi All, Not sure if anyone facing the same issues with me? The Pulumi Azure Pipelines Task runs very slow some time it takes more than 1 hours. Seems, mixing between azure and azure-native are slow down the process.
View count: 1