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

    mysterious-piano-88140

    09/14/2021, 7:36 PM
    Hello all, I am using Pulumi for the first time for a project hosted in Azure cloud. I am using Typescript for programming the resources. I currently have the following scenario: A project with a stack named ‘dev’ that creates a ResourceGroup in Azure. The code is as follows: Another project with a stack named ‘dev’ that should create a MariaDB database and map it to the ResourceGroup just created in the other projet. My current code is this:
    export const databaseResourceGroup = new ResourceGroup(
      'resource-group-dev',
      {
        resourceGroupName: 'resource-group-dev',
        location: 'germanywestcentral',
        tags: {
          project: 'test',
          env: 'dev',
          type: 'resourcegroup'
        }
      }
    )
    My problem is that in the second project the ResourceGroup is not linked no matter how (getResourceGroup, Import, StackReference) but is always recreated, which leads to a fail because it just already exists.
    // const resourceGroup = await getResourceGroup({
    //   resourceGroupName: databaseResourceGroupName
    // })
    
    const resourceGroup = new ResourceGroup(
          'resource-group-dev',
          {
            resourceGroupName: 'resource-group-dev',
            location: 'germanywestcentral',
            tags: {
              project: 'test',
              env: 'dev',
              type: 'resourcegroup'
            }
          },
          {
            import: `/subscriptions/<subscription-id>/resourceGroups/<resourcegroupname>`
          }
        )
    Do any of you here have an idea how I can link between resources without recreating them. I would now expect a similar pattern as in the AWS CDK where I can access ARN with from methods.
    ✅ 1
    b
    w
    • 3
    • 7
  • a

    able-doctor-68496

    09/14/2021, 8:48 PM
    I’m struggling with a k8s provider issue. I’m passing in a specific
    kubeconfig
    in the
    pulumi_kubernetes.Provider
    , but it still seems to be getting the kubeconfig from my
    ~/.kube/config
    somehow… I tried
    pulumi --logtostderr -v=9
    , but I see the correct kubeconfig logged multiple times, and then it errors out with:
    error: configured Kubernetes cluster is unreachable: unable to load schema information from the API server: Get "<https://wrong-domain:443/openapi/v2?timeout=32s>": dial tcp: lookup wrong-domain on 192.168.1.1:53: no such host
    b
    • 2
    • 1
  • g

    gorgeous-minister-41131

    09/14/2021, 9:48 PM
    Anyone else use Fastly and having problems with the latest Fastly Provider?
  • g

    gorgeous-minister-41131

    09/14/2021, 9:49 PM
    it seems like the upstream terraform provider introduced some nasty breaking change to the state, and the 3.6.0 version of the provider is clueless
  • g

    gorgeous-minister-41131

    09/14/2021, 9:49 PM
    Diagnostics:
      fastly:index:Servicev1 (<redacted>.com):
        error: 1 error occurred:
        	* updating urn:pulumi:prod::fastly-py::fastly:index/servicev1:Servicev1::<redacted>.com: 1 error occurred:
        	* missing required field 'ServiceVersion'
    b
    • 2
    • 1
  • g

    gorgeous-minister-41131

    09/14/2021, 9:49 PM
    https://github.com/fastly/terraform-provider-fastly/commit/a89320487690b29c17bb0ea113b6929cf36691c5
  • g

    gorgeous-minister-41131

    09/14/2021, 10:01 PM
    I just wanted to express a thought too: I appreciate the fact that Pulumi leverages the upstream providers and are built automatically, but these kind of oddball edge cases that escape the Pulumigen logic are quite annoying. It’s nice that Pulumi wants to leverage the providers, but why isn’t Pulumi just forking these and maintaining them in the pulumi community? This isn’t the first provider I’ve hit my head on where the pulumigen code works on the surface, but something under the covers changes the way it operates at a lower level call... https://github.com/pulumi/pulumi-fastly/issues/119 But when I run into this, I lose faith in the concept that “terraform providers just kinda work with pulumi” — because they don’t, really… and a new version of the pulmi provider shouldn’t always be released simply because terraform updated the upstream. I know this is a quirk I Just don’t know how to go about avoiding it..
    b
    • 2
    • 8
  • e

    early-agent-11726

    09/15/2021, 1:02 AM
    Hi everyone! Can someone help me with this simple question…does the GitLab provider work with GitLab Server version 12? https://github.com/pulumi/pulumi-gitlab
    l
    • 2
    • 2
  • w

    white-cat-90296

    09/15/2021, 10:23 AM
    Does anybody have a working example for a
    Bitbucket Pipelines
    yml file working with pulumi? I've integrated pulumi with GitHub Actions before which was super straight forward, but I can't seem to find a good reference for Bitbucket Pipelines. My first thought is using the pulumi/pulumi docker image and building on top of that, but I'd love to see some examples if you have any. Thanks!
    l
    • 2
    • 7
  • b

    brainy-church-78120

    09/15/2021, 11:58 AM
    Hi yall, a reminder that we a running a lil' ~10 min usability study, and we would love your participation if you have the time.
  • f

    future-window-78560

    09/15/2021, 1:32 PM
    Hello Everyone! Can anyone help me out with this issue related to GKE-pulumi?
    w
    • 2
    • 3
  • s

    square-car-84996

    09/15/2021, 2:16 PM
    With Pulumi and pricing... i'm using an individual account, but i'd like to know what my usage would be with a team account, but i don't know how my individual usage equates to a team account (150k credits?)
    w
    b
    b
    • 4
    • 12
  • m

    mammoth-king-17479

    09/15/2021, 4:02 PM
    Hi there, I am seeing this unhandled promise rejection warning pretty frequently on stack up operations using the automation api…
    (node:1411) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, stat '/var/folders/r0/4twlwm257f3_6s79zz677ypm0000gn/T/automation-logs-up-kwf7vt/eventlog.txt'
    I can verify that the directories up until
    automation-logs-up-kwf7vt
    exist on my local machine. Any ideas of how I can resolve this?
  • f

    future-window-78560

    09/15/2021, 4:27 PM
    Hey there! Creating a project through "pulumi new Kubernetes-python" throws an error while importing pulumi_gcp in the python file. Similarly, a project created through "pulumi new gcp-python" throws a module not found error for pulumi_kubernetes. Whereas I am supposed to use both. Any guide of where I am lacking?
    r
    • 2
    • 4
  • s

    square-car-84996

    09/15/2021, 4:56 PM
    can you get a config value from another namespace (i.e. aws:region)?
    p
    • 2
    • 6
  • e

    early-kite-86569

    09/15/2021, 7:34 PM
    Been looking around in the docs but truly do not see anything about it. Anyone know how to use a created resource in a getter function? i.e. My example / what I am trying to do is get the
    default_bucket
    (from https://www.pulumi.com/docs/reference/pkg/gcp/appengine/application/) full details with
    get_bucket
    (https://www.pulumi.com/docs/reference/pkg/google-native/storage/v1/getbucket/)
    # Get created bucket
    self.full_bucket_details = storage.get_bucket(
        self.firestore_app.default_bucket,
        opts=pulumi.InvokeOptions(parent=self.firestore_app),
    )
    Does not work because it tries to get the bucket before the resource is created:
    Exception: invoke of google-native😒torage/v1:getBucket failed: invocation of google-native😒torage/v1:getBucket returned an error: error sending request: googleapi: Error 400: Invalid bucket name: '{bucket}', invalid
    b
    • 2
    • 14
  • a

    able-doctor-68496

    09/15/2021, 9:12 PM
    How do you view logs that are output via
    pulumi.debug
    or
    <http://pulumi.info|pulumi.info>
    ? I have tried stuff mentioned here: https://www.pulumi.com/docs/troubleshooting/#diagnosing-issues, but I don’t know what level of verbosity I need for my own debug logs, and I haven’t been able to find my logs even I set
    --logtostderr
    and
    -v=9
    . Also, where do I go to view logs if I don’t use
    --logtostderr
    ?
    g
    l
    • 3
    • 6
  • e

    early-boots-60919

    09/15/2021, 9:32 PM
    Hi there! I’m trying to setup AWS cost budgets with tag filters, but can’t get what’s the expected format for the
    CostFilters
    map.
    _, err = budgets.NewBudget(ctx, "test-budget", &budgets.BudgetArgs{
        BudgetType: pulumi.String("COST"),
        CostFilters: pulumi.StringMap{
            "TagKeyValue": pulumi.String(`["stack$test"]`),
        },
        LimitAmount: pulumi.String(budgetAmount),
        LimitUnit:   pulumi.String("USD"),
        TimeUnit:    pulumi.String("MONTHLY"),
    })
    Diagnostics:
      aws:budgets:Budget (test-budget):
        error: aws:budgets/budget:Budget resource 'test-budget' has a problem: Attribute should be a list. Examine values at 'Budget.CostFilters'.
    Tried the example in the docs: https://www.pulumi.com/docs/reference/pkg/aws/budgets/budget/#example-usage, but just get a compilation error:
    Invalid composite literal type: String
    Missing key in the map literal
    Anyone has a working example?
    • 1
    • 2
  • f

    future-window-78560

    09/15/2021, 11:16 PM
    Hi there, Implementing this example https://github.com/pulumi/examples/tree/master/gcp-py-gke and having the following issue even after permission was granted from the GCP account.. Any ideas of how I can resolve this?
    b
    • 2
    • 1
  • t

    tall-beard-99429

    09/16/2021, 8:49 AM
    Hi, how do I go about viewing a secret from pulumi from an output (eg, AWS Access Key) it just shows as [secret] and the state is all encrypted. I need to view this once to get it into some of our other infra that isn't managed by Pulumi yet
    p
    • 2
    • 7
  • b

    better-zoo-17970

    09/16/2021, 2:55 PM
    in what format should my config file be, if i want to use
    pulumi config --config-file
  • c

    crooked-pillow-11944

    09/16/2021, 10:45 PM
    Do resources from a dynamic provider inherit resource attributes? Specifically looking at this: https://github.com/pulumi/pulumi/blob/master/sdk/python/lib/pulumi/resource.py#L347
    • 1
    • 1
  • h

    happy-angle-19851

    09/17/2021, 11:30 AM
    How can i transfer resources from one stack to other?
    b
    h
    • 3
    • 8
  • b

    better-baker-47643

    09/17/2021, 2:01 PM
    Hi everyone, new to pulumi and running the AWS s3 getting started tutorial but getting the dreaded AccessDenied errors:
    error: 1 error occurred:
            * updating urn:pulumi:staging::connection::aws:s3/bucket:Bucket::pulumi-staging-my-bucket: 1 error occurred:
            * AccessDenied: Access Denied
            status code: 403, request id: F72W8ZNDNM1BM1W9, host id: /2Z31uOorObZpN2gwgD59eWLKKhcrNvtqonR/ThWQng9kDDHBSaY5jaO/gx4u1BJFDqXLcSr/iU=
    I've added all the s3 permissions that could possibly be relevant and tried debugging with
    v=9
    but can't see the command that is failing. Is there a way to output each AWS command being sent that I'm missing? tried looking through the docs and github issues but haven't found anything
    w
    • 2
    • 8
  • m

    mysterious-piano-88140

    09/18/2021, 8:53 AM
    Hi, since I was already helped very quickly and super last time, I wanted to ask if anyone has ever built an Azure webapp with a Docker image using Pulumi SaaS. So my docker image is already ready in our private github docker registry. Basically, all I want to do is to poll it and then pass it to Azure in the WebApp. What I found I the RemoteImage class in the package @pulumi/docker. But unfortunately this doesn't provide any way to authenticate for a private registry. I am looking forward to helpful tips! Thanks already.
    b
    p
    • 3
    • 11
  • b

    broad-kilobyte-43768

    09/18/2021, 8:55 PM
    hi y'all, has anyone had trouble getting stack references working in GitHub Actions? When I run
    pulumi up
    locally it works, but it fails with this error whenever the provider is used on my GitHub action.
    THING creating error: configured Kubernetes cluster is unreachable: unable to load Kubernetes client configuration from kubeconfig file: invalid configuration: no configuration has been provided
    This is my infra code on a repo called "api"
    const sharedInfrastructure = new pulumi.StackReference(sharedInfraStackName)
    const provider = new k8s.Provider('k8s', {
      kubeconfig: sharedInfrastructure.getOutput('kubeConfig'),
    })
    // use provider...
    Action
    name: Infrastructure push
    on:
      push:
        branches:
          - main
        paths:
          - 'infrastructure/**'
    
    jobs:
      apply:
        name: Apply infrastructure
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v2
          - uses: actions/setup-node@v2
            with:
              node-version: 14.x
          - run: cd infrastructure && npm install
          - uses: pulumi/actions@v3
            with:
              command: up
              stack-name: dev
              work-dir: ./infrastructure
            env:
              PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
              DIGITALOCEAN_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }}
    Here's how I create my kubernetes cluster in another shared infra repo:
    import * as digitalocean from '@pulumi/digitalocean'
    import * as k8s from '@pulumi/kubernetes'
    
    const cluster = new digitalocean.KubernetesCluster('cluster', {
      region: digitalocean.Region.LON1,
      version: 'latest',
      nodePool: {
        name: 'default',
        size: digitalocean.DropletSlug.DropletS2VCPU2GB,
        nodeCount: 1,
      },
    })
    
    export const kubeConfig = cluster.kubeConfigs[0].rawConfig
    Does anyone have any tips to solve this?
    b
    • 2
    • 2
  • c

    crooked-pillow-11944

    09/19/2021, 12:15 PM
    I'm confused by the process of looking up an existing resource The documentation is referring to a resource id Can somebody give an example of looking up an existing s3 bucket by tag that was created outside of the current stack?
    l
    b
    • 3
    • 3
  • f

    future-window-78560

    09/19/2021, 9:20 PM
    Hi everyone! Implementing this example https://github.com/pulumi/examples/tree/master/kubernetes-py-jenkins and having the following issue. Any solutions?
    b
    • 2
    • 12
  • s

    salmon-printer-16080

    09/19/2021, 9:53 PM
    Hi there, We have a Pulumi stack that contains an Azure App Service, which has some default AppSettings. When we deploy into this app Service from a different pipeline, the AppSettings are also updated. However, whenever I re-run the pulumi stack, the AppSettings are replaced with the original ones, not from the deployment. Now I know I can ignore changes made to those appsettings, however, this still gets replaced when I update the appsettings on Pulumi's side. Is there anyway to update the settings that have changed on the pulumi side, but ignoring existing ones? I have thought about using refresh to get those settings into state, but these are replaced on subsequent runs anyway.
    b
    • 2
    • 11
  • h

    handsome-state-59775

    09/20/2021, 6:02 AM
    pulumi config refresh
    puts the refreshed stack config file in my home directory instead of the current directory that also has the current config and Pulumi.yaml. What can I do to fix this?
Powered by Linen
Title
h

handsome-state-59775

09/20/2021, 6:02 AM
pulumi config refresh
puts the refreshed stack config file in my home directory instead of the current directory that also has the current config and Pulumi.yaml. What can I do to fix this?
View count: 1