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

    many-psychiatrist-74327

    09/24/2021, 3:01 AM
    👋 hello! Has anyone been experiencing sporadic errors when doing
    pulumi up
    ? The behavior I’m seeing: I run
    pulumi up
    . It takes an inordinate amount of time and hogs lots of resources. After ~10 mins, it fails with:
    Diagnostics:
      pulumi:pulumi:Stack (infra-dev):
        error: an unhandled error occurred: Program exited with non-zero exit code: -1
    If I run
    pulumi up
    again, it runs quickly and with no errors. This cycle happens every time I make a change. Is this a known bug or has anyone else seen this? It’s making development impossibly slow. Thanks!
    l
    c
    • 3
    • 4
  • b

    billions-mechanic-26704

    09/24/2021, 2:59 PM
    Hello community. (* I put this message on python channel but perhaps here it can get more attention, so sorry for replicating.) I have an existing Azure container registry which I imported and I am uising it in my pulumi code. I need to pull a docker image hosted there in order to reference it into an azure app service. Right now, I am creating the azure app service plan and the web app service. Taking as reference this docker azure app service example, they are building the image there I am just wondering whether is possible to pull an existing image as long I got the existing container registry instance. Is that possible? In this case, the
    docker.Image
    resource they use is not useful since
    build
    parameter is required. I am seeing this
    docker.RemoteImage
    resource from docker pulumi api, but not sure how to indicate it that the image should be pulled from my container registry I got previously. The code for getting my container registry is:
    container_image = "wmlab"
    
    # GETTING MY CONTAINER REGISTRY
    rhdhv_container_registry = azure_native.containerregistry.Registry(
        "rhdhvContainerRegistry",
        admin_user_enabled=True,
        location="westeurope",
        network_rule_set=azure_native.containerregistry.NetworkRuleSetArgs(
            default_action="Allow",
        ),
        registry_name="rhdhvContainerRegistry",
        resource_group_name="genericRG1",
        sku=azure_native.containerregistry.SkuArgs(
            name="Premium",
        ),
        opts=pulumi.ResourceOptions(protect=True))
    
    # OUTPUT THE CREDENTIALS TO GET THEM
    acr_credentials = pulumi.Output.all("genericRG1", rhdhv_container_registry.name).apply(
        lambda args: azure_native.containerregistry.list_registry_credentials(
            resource_group_name=args[0],
            registry_name=args[1]
        )
    )
    admin_username = acr_credentials.username
    admin_password = acr_credentials.passwords[0]["value"]
    I am a bit confused about how to pull an image from the existing container registry I got. Or perhaps does it need to be build and pushed from the same project? I would say should be possible to get an existing one. I need this because the build process is taking place in another repository project
    b
    • 2
    • 27
  • b

    bumpy-flag-23122

    09/24/2021, 7:07 PM
    Hi can anyone help me make a multi-level configmap using
    pulumi_kubernetes
    package. We have a configmap object that works fine if the data is flat, but it fails to parse the indented
    usernameSecret
    and
    passwordSecret
    entries.
    self.argo_configmap = ConfigMap(
                resource_name='test_cm',
                metadata=ObjectMetaArgs(name='argocd-cm',
                                        namespace='argocd'),
                data={
                    "type": "helm",
                    "url": "<https://test.com:8085>",
                    "name": "test-helm-repo",
                    "usernameSecret": {
                        "name": "test-helm-repo-credentials",
                        "key": "username"
                    },
                    "passwordSecret": {
                        "name": "test-helm-repo-credentials",
                        "key": "password"
                    }
                },
    I receive error:
    AssertionError: Unexpected type; expected a value of type `<class 'str'>` but got a value of type `<class 'dict'>` at resource `test_cm`, property `data.passwordSecret`: {'name': 'test-helm-repo-credentials', 'key': 'password'}
  • b

    bumpy-flag-23122

    09/24/2021, 7:09 PM
    I understand that it is expecting a string instead of a dictionary, but I am at a loss for how to create a multi-level configmap
  • b

    bumpy-flag-23122

    09/24/2021, 7:19 PM
    UPDATE: I've fixed this. I believe the correct way to use it is to put the entire CM under one key. Kind of confusing.
    self.argo_configmap = ConfigMap(
                resource_name='test_cm',
                metadata=ObjectMetaArgs(name='argocd-cm',
                                        namespace='argocd'),
                data={
                    "repositories": """- type: helm
      url: <https://test.com:8085>
      name: test-helm-repo
      usernameSecret:
          name: test-helm-repo-credentials
          key: username
      passwordSecret:
          name: test-helm-repo-credentials
          key: password
          """
                },
    ✅ 1
    b
    • 2
    • 1
  • g

    great-table-28213

    09/24/2021, 10:47 PM
    Hi, I am attempting to run
    pulumi preview
    on a github remote runner which is an ec2 instance with a role granting it permission. How can I get Pulumi to assume the host's role to run vs passing it aws credentials?
    w
    • 2
    • 2
  • c

    calm-quill-21760

    09/24/2021, 11:57 PM
    Good evening. I’m trying to get a
    pulumi_kubernetes.apiextensions.CustomResource
    resource to wait upon successful completion of specific services in a
    pulumi_kubernetes.yaml.ConfigFile
    . The CustomResource has ConfigFile listed in
    depends_on
    , but watching the output of
    pulumi up
    shows it’s still trying to run before ConfigFile has completed. What am I missing?
    b
    • 2
    • 6
  • a

    alert-london-63088

    09/25/2021, 5:50 AM
    Hey everyone! I'm trying to run the Pulumi Github Action (v3) but I keep getting
    no stack named 'myproject-dev*' found err?
    . Pulumi up works just fine on my local machine, but not run through the action. Here's a gist of my config; https://gist.github.com/mhaagens/016c8139f2163a7b27fded86a5187a48 Can anyone help me out?
  • f

    flat-appointment-12338

    09/25/2021, 2:06 PM
    I have an organization set up and I am noticing that after every stack operation (
    up
    ,
    config
    ,
    refresh
    , etc), the CLI somehow reverts to creating and selecting a stack by the same name in my personal account rather than in the organization. I have to
    pulumi stack select myorg/project/stack
    after every command
    • 1
    • 1
  • g

    gifted-dentist-89608

    09/26/2021, 3:14 PM
    question: how do I send a post request to api-gateway? it shows up as a random string when I input testing:values in the values. having a little trouble
  • s

    swift-island-2275

    09/26/2021, 6:18 PM
    Hi, I've a question regarding creation of Azure Kubernetes Services (AKS). I am able to create a cluster, however what I'd like to do next, is configure ClusterRoleBinding. The problem I face is that according to the documentation, I need to set the correct k8s context. How can I set the context of newly created AKS cluster ? Can I do it somehow in code just after the AKS cluster has been created ?
    f
    • 2
    • 2
  • c

    calm-solstice-91146

    09/27/2021, 10:54 AM
    Hi guys, anyone who can help me solve the issue with a resource in a pending state caused by an interrupted terminal while updating stack? I have followed the export import solution suggested by the cli, but I can't import the file again because of the very same resource which is in this pending state 😕 "solved it", by running pulumi rm and then manually deleting the resources and spinning up again.. Not a solution, but I can continue.
    b
    b
    • 3
    • 5
  • d

    dazzling-grass-65770

    09/27/2021, 8:37 PM
    Hello there, just thinking out loud, anyone ever tried to pulumi pulumi, i.e. use the automation api in a resource provider, so that pulumi stacks can be up'd with a pulumi program ? automation api programs can look fine, I guess, but they seem to "go back" to 'imperative' mode while pulumi trained us to love to create stuff with real programming languages with declarative thinking.
    b
    b
    l
    • 4
    • 10
  • p

    purple-train-14007

    09/27/2021, 8:59 PM
    I see a few issues in the Pulumi repo that are closed regarding an issue Im having. This is preventing me from deploying my code and the workaround which is to set these vars to blank dont work. Anyone else know what to do for this error?
  • p

    purple-train-14007

    09/27/2021, 8:59 PM
    error: constructing secrets manager of type "passphrase": unable to find either `PULUMI_CONFIG_PASSPHRASE` or `PULUMI_CONFIG_PASSPHRASE_FILE` when trying to access the Passphrase Secrets Provider; please ensure one of these environment variables is set to allow the operation to continue
  • f

    future-window-78560

    09/28/2021, 12:39 AM
    Hey! Cannot connect to docker daemon through pulumi while its active. Any guide to resolve this?
    b
    • 2
    • 13
  • s

    sparse-truck-33211

    09/28/2021, 8:33 AM
    Hi, How can i switch between the orgainsations?
    b
    • 2
    • 1
  • m

    microscopic-finland-82315

    09/28/2021, 8:34 AM
    Hey, I have a personal account and a organization. How to you link a project to a organization? It's always linked to my personal account. Do you need to transfer it? Kind regards, Frederik
    b
    • 2
    • 1
  • c

    calm-solstice-91146

    09/28/2021, 10:54 AM
    Is it possible to use RemoteArchive with authentication/header properties? Need a personal token to receive the archive I need.
    b
    • 2
    • 1
  • o

    orange-vr-54756

    09/28/2021, 12:04 PM
    Hello Team, I'm new to pulumi, when i refer this example to create GCE instance it throws this error
    default_account = gcp.service_account.Account("defaultAccount",
        AttributeError: module 'pulumi_gcp' has no attribute 'service_account'
  • f

    fresh-judge-73477

    09/28/2021, 12:34 PM
    Hey, i am trying to do
    go get <http://github.com/pulumi/pulumi-aws/sdk/v4/go/aws/wafv2|github.com/pulumi/pulumi-aws/sdk/v4/go/aws/wafv2>
    on a k8 container environment. Everytime I get below error
    go build <http://github.com/pulumi/pulumi-aws/sdk/v4/go/aws/wafv2|github.com/pulumi/pulumi-aws/sdk/v4/go/aws/wafv2>: /usr/local/go/pkg/tool/linux_amd64/compile: signal: killed
    . Below is the memort snapshot when it crashed
    total        used        free      shared  buff/cache   available
    Mem:           15Gi        14Gi       218Mi       1.0Mi       238Mi       174Mi
    Swap:            0B          0B          0B
    #golang #aws
    • 1
    • 1
  • p

    purple-train-14007

    09/28/2021, 4:14 PM
    Anyone know how Im supposed to set these config passphrases? I am setting them to blank because we dont use pulumis secrets manager but rather have our own security internally that handles protecting our stacks. I looked at the feedback in the github repo and have tried all the things others have tried. Since none of this is working and since this basically stops me from updating my environment I put a note on the chocolatey repo about this issue and that they may run into it. This breaks customers just an FYI
    b
    s
    b
    • 4
    • 66
  • p

    purple-train-14007

    09/28/2021, 4:17 PM
    I have to now go tell other teams Im blocking that I cannot deploy my code which is going to prevent them from deploying their app and I cant just rebuild this network with a new stack. TBH if I end up having to do that Ill just go back to Terraform as my team run the foundational identity platform and there is low tolerance from Security for any problems like this with it.
  • p

    polite-mechanic-60124

    09/28/2021, 6:41 PM
    Hello, I'm running into an issue where the output of pulumi.Output.all is either an
    output<string>
    on pulumi preview on a clean environment or is an Output<Mapping> on an incrementally updated environment.
    job_vars = pulumi.Output.all(
                _redis_endpoint=cache.endpoint, # should be an Output string
                **job_specific_inputs, # dict
                **generic_job_inputs, # dict
            )
            pulumi.export("core", job_vars)
    pulumi preview on clean environment:
    core                                 : output<string>
    pulumi up on incrementally updated environment:
    + core                                 : {
          + analyzer_bucket                      : "analyzers-bucket-196f898"
          + analyzer_dispatched_bucket           : "dispatched-analyzer-bucket-5177198"
    Is there any recommended way to force output to be a mapping type?
    r
    • 2
    • 13
  • m

    many-salesmen-89069

    09/28/2021, 6:53 PM
    Hello, I’m looking at the Pulumi Github Action and I’m wondering how can I pass required configs to the stack when it’s created by the action with upsert?
    p
    b
    • 3
    • 4
  • p

    purple-train-14007

    09/28/2021, 9:47 PM
    Is there a way to adjust Pulumi's timeout? I have tried addressing this in code as a depends on scenario but still no dice. This service just take a long time to build I can see in the console its still being provisioned too so nothing bad has happened.
    r
    • 2
    • 2
  • r

    rapid-raincoat-36492

    09/28/2021, 10:24 PM
    Say I wanted to have a separate stack per git branch for a project, can I do so without having
    Pulumi.<stack-name>.yaml
    files created for every branch in git?
    g
    • 2
    • 3
  • b

    busy-house-95123

    09/28/2021, 11:00 PM
    Hey everyone, I read about the Output API, I can use it fine as Input to other Pulumi resource, but I have a case where I just need to convert the output to a regular string, how can I achieve this? .apply() or any other Output func also return Output. There’s no way to do that probably ,right?
    l
    • 2
    • 3
  • s

    steep-toddler-94095

    09/29/2021, 1:06 AM
    Pulumi does not properly recognize that the
    spec.controller
    field of an
    IngressClass
    is immutable so the resource needs to be recreated. Not sure by which mechanism Pulumi does that, but should I create a ticket for this?
    b
    • 2
    • 3
  • m

    many-salesmen-89069

    09/29/2021, 7:46 AM
    How can I pass custom configuration values to the Pulumi Github Action when creating a new stack with upsert? There is a feature request that implies that the
    --config-file
    flag is not supported.
Powered by Linen
Title
m

many-salesmen-89069

09/29/2021, 7:46 AM
How can I pass custom configuration values to the Pulumi Github Action when creating a new stack with upsert? There is a feature request that implies that the
--config-file
flag is not supported.
View count: 1