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

    damp-rain-39201

    10/06/2022, 4:58 PM
    Hello everyone, What in your experience is the smoothest way in how we can effectively provision infrastructure across +40 accounts simultaneously. We have taken a deeper look in the documentation, but still it seems to be quite cumbersome using multiple AWS providers at the same time. It would be good if you could support/assist us in setting up this in an easy and effective manner. Thank you for your support in advance! Kind regards, Bala
    s
    • 2
    • 1
  • v

    victorious-dusk-75271

    10/06/2022, 7:14 PM
    Does anyone know how to enable logging in github actions?

    https://puu.sh/Jopyv/229aeca885.png▾

    l
    • 2
    • 2
  • w

    wet-sunset-4939

    10/07/2022, 2:23 AM
    Hello All, Azure just released Firewall Basic Sku not sure pulumi is supported this sku or not? 🙏
  • f

    fierce-xylophone-92490

    10/07/2022, 2:24 AM
    I’m going to try and create an open source library of dynamic providers for interacting with Bitbucket. It’ll do what the GitHub provider does but for Bitbucket since BB isn’t in the pulumi registry. I’m not finding many thorough examples of testing using python/pytest, especially nothing with dynamic resources. Do you know of an example project I could look at with tests (unit, integration, functional) for dynamic resources in python? We’ll try to make the coverage and quality good so that the community can use this library.
    b
    e
    • 3
    • 10
  • d

    damp-rain-39201

    10/07/2022, 9:34 AM
    Hello all, after publishing NPM package of the multi-language support SDK with typescript . I am getting this error while using that npm package `error: Could not automatically download and install resource plugin 'pulumi-resource-s24'at version v0.0.0, install the plugin using
    pulumi plugin install resource s24 v0.0.0
    .` Underlying error: error downloading plugin s24 to file: failed to download plugin: b24-0.0.0: 403 HTTP error fetching plugin from https://get.pulumi.com/releases/plugins/pulumi-resource-s24-v0.0.0-darwin-arm64.tar.gz Thank you for your support in advance! Best regards, Bala
    e
    k
    • 3
    • 12
  • b

    brave-dawn-64711

    10/07/2022, 11:22 AM
    Hi everyone, has anyone seen this behaviour? any hints at a workaround very much appreciated. With the explicit kubernetes provider enforcement and ConfigGroup and a ComponentResource I'm getting this error:
    error: TypeError: Cannot convert undefined or null to object
            at Function.keys (<anonymous>)
            at Object.transferProperties (/Users/pprazak/repos/reflek/infrastructure-cloud/typesense/node_modules/@pulumi/runtime/rpc.ts:43:28)
            at /Users/pprazak/repos/reflek/infrastructure-cloud/typesense/node_modules/@pulumi/runtime/resource.ts:504:27
            at Generator.next (<anonymous>)
            at /Users/pprazak/repos/reflek/infrastructure-cloud/typesense/node_modules/@pulumi/pulumi/runtime/resource.js:21:71
            at new Promise (<anonymous>)
            at __awaiter (/Users/pprazak/repos/reflek/infrastructure-cloud/typesense/node_modules/@pulumi/pulumi/runtime/resource.js:17:12)
            at prepareResource (/Users/pprazak/repos/reflek/infrastructure-cloud/typesense/node_modules/@pulumi/pulumi/runtime/resource.js:340:12)
            at Object.registerResource (/Users/pprazak/repos/reflek/infrastructure-cloud/typesense/node_modules/@pulumi/runtime/resource.ts:286:24)
            at new Resource (/Users/pprazak/repos/reflek/infrastructure-cloud/typesense/node_modules/@pulumi/resource.ts:401:13)
        error: Error: Invoke: Default provider for 'kubernetes' disabled. 'kubernetes:yaml:decode' must use an explicit provider.
            at Object.callback (/Users/pprazak/repos/reflek/infrastructure-cloud/typesense/node_modules/@pulumi/runtime/invoke.ts:159:33)
            at Object.onReceiveStatus (/Users/pprazak/repos/reflek/infrastructure-cloud/typesense/node_modules/@grpc/grpc-js/src/client.ts:338:26)
            at Object.onReceiveStatus (/Users/pprazak/repos/reflek/infrastructure-cloud/typesense/node_modules/@grpc/grpc-js/src/client-interceptors.ts:426:34)
            at Object.onReceiveStatus (/Users/pprazak/repos/reflek/infrastructure-cloud/typesense/node_modules/@grpc/grpc-js/src/client-interceptors.ts:389:48)
            at /Users/pprazak/repos/reflek/infrastructure-cloud/typesense/node_modules/@grpc/grpc-js/src/call-stream.ts:276:24
            at processTicksAndRejections (node:internal/process/task_queues:77:11)
    This is the relevant fragment of the component:
    const glbConfig = pulumi.all([args.namespace, this.internalHostname]).apply(
                ([ns, hs]) => new kubernetes.yaml.ConfigGroup(
                    `${publicServiceName}-glb-config`,
                    {
                        transformations: [args => {
                            return {
                                // failed attempt #1 at a workaround
                                opts: pulumi.mergeOptions(args.opts, {parent: this})
                            }
                        }],
                        yaml: [
                            `apiVersion: <http://cloud.google.com/v1|cloud.google.com/v1>
    kind: BackendConfig
    metadata:
      name: ${publicServiceName}
      namespace: ${ns}
    spec:
      healthCheck:
        checkIntervalSec: 15
        timeoutSec: 15
        healthyThreshold: 1
        unhealthyThreshold: 2
        type: HTTP
        requestPath: /health
        port: ${args.apiPort || defaultApiPort}
    `, `
    apiVersion: <http://networking.gke.io/v1beta1|networking.gke.io/v1beta1>
    kind: FrontendConfig
    metadata:
      name: ${publicServiceName}
      namespace: ${ns}
    spec:
      redirectToHttps:
        enabled: true
        responseCodeName: MOVED_PERMANENTLY_DEFAULT
    `]
                    }, {
                        parent: this,
                        transformations: [
                            (args: ResourceTransformationArgs) => {
                                return {
                                    // failed attempt #2 at a workaround
                                    opts: pulumi.mergeOptions(args.opts, {parent: this})
                                } as ResourceTransformationResult
                            }
                        ],
                    }
                ));
    I'm setting the provider explicitly on the component:
    providers: {
            kubernetes: k8sProvider, // make sure we use explicit Kubernetes provider, not the default
        },
    Looks like the provider set on the component is not propagating to the Yaml.
    e
    • 2
    • 7
  • s

    strong-intern-84363

    10/07/2022, 2:26 PM
    Hi. trying to deploy the sample for Cloudfront distrib with Cloudfront origin control with latest pulumi.
    example = aws.cloudfront.OriginAccessControl("example",
        description="Example Policy",
        origin_access_control_origin_type="s3",
        signing_behavior="always",
        signing_protocol="sigv4")
    Getting this error message, any fix available?
    AttributeError: module 'pulumi_aws.cloudfront' has no attribute 'OriginAccessControl'
    e
    • 2
    • 5
  • h

    hundreds-park-36222

    10/07/2022, 2:39 PM
    Hi Team, Need some suggestions. We deploy infrastructure for users of our azure data platform. As part of infrastructure, we also create azure data factories. The users are responsible for creating their own adf data pipelines. The issue I am facing is that if we have to do redeployment of the adf then the global parameters which the users have deployed are removed. How can I fetch the latest global parameters if any, in the pulumi code.
    s
    • 2
    • 3
  • m

    magnificent-glass-81378

    10/07/2022, 3:34 PM
    Hi, for folks that have used the micro-stack architecture and outputs/stack references to communicate dependent data between stacks, how have you found the coupling between stacks to be using those stack references? How tightly coupled do those stacks become? If you make changes in an upstream stack (say the VPC stack), when do those changes impact the downstream stacks (say the DB stack)?
  • l

    lively-needle-84406

    10/07/2022, 5:10 PM
    Hey all, I am currently learning Pulumi and have created my first stack. Is there documentation somewhere for making this stack reusable? Example: I want to define my infrastructure and then reuse this infrastructure to spin up different environments (qa, staging, prod, etc). What is the best approach for this scenario? Thanks!
    e
    • 2
    • 1
  • v

    victorious-dusk-75271

    10/08/2022, 3:49 AM

    https://puu.sh/JovXW/e5e263f012.png▾

    b
    e
    • 3
    • 4
  • v

    victorious-dusk-75271

    10/08/2022, 3:49 AM
    any idea why this is happening?
  • v

    victorious-dusk-75271

    10/08/2022, 3:50 AM
    I thought pulumi/actions@v3 includes the pulumi cli
  • b

    bitter-pharmacist-78980

    10/08/2022, 2:46 PM
    Hi, I'm a total beginner. Pulumi sounds awesome! I love that I can use my favorite language (Go). I looked through https://www.pulumi.com/registry/ and it seems like something is missing. I want a package that abstracts the provider. So the Pulumi developer doesn't need to know anything about the concrete provider. AWS, Azure, and GCP (etc.) are all different, but there are many cloud resources from cloud each provider that are similar enough to be interchangeable. For example if I want to provision a new object store (e.g. AWS Simple Storage Service, Azure Blob Storage, GCP Cloud Storage) First, my code looks like:
    pulumi.Run(func(ctx *pulumi.Context) error {
            // Create an object store resource
            bucket, err := abstractProvider.NewObjectStore(ctx, "my-object-store", nil)
            if err != nil {
                return err
            }
    })
    Then, there is a separate layer which determines which provider to use or to use multiple providers for multi-cloud redundancy. (Example selection criteria: price, data center geography, real time service outages) Does such a thing exist? Essentially, why should a Pulumi developer need to hard code the provider into the IaC? Also, looking at https://www.pulumi.com/blog/tag/native-providers/ it seems there has been no blog posts about native providers since the original blog post on Apr 20, 2021. Is this a sign that the native providers are not being prioritized?
    e
    r
    • 3
    • 2
  • g

    green-bird-4706

    10/08/2022, 11:03 PM
    This is a duplicate :thinking-taco: https://pulumi-community.slack.com/archives/C01PF3E1B8V/p1665246121533419
  • b

    boundless-engineer-23836

    10/10/2022, 1:37 PM
    Hi All, has anyone been able to get cert-manager installed in their k8s cluster via pulumi (https://www.pulumi.com/registry/packages/kubernetes-cert-manager/). I know just installing the helm chart doesnt work so i tried to use the pulumi resource, but on my mac it complains that it needs v0.0.3 and is on v0.0.1. My tsConfig is showing the v0.0.3 dependency and i just tried to manually update all dependencies as well but it is still failing. Is there a away around this that doesnt require manual action so my deployments can continue to be automated?
    g
    • 2
    • 2
  • h

    hundreds-gold-80559

    10/10/2022, 11:12 PM
    We're having an issue using AWSX where we're trying to manage a fargate service, and on every
    pulumi up
    it thinks we need to delete/re-create the container defn. Here is one of the diff outputs (edited). We compared the diffs across different successful runs of
    pulumi up
    and they are always the same.
    [id=pganalyze-fargate]
        [urn=urn:pulumi:production::rainbow-infra::awsx:x:ecs:FargateTaskDefinition$aws:ecs/taskDefinition:TaskDefinition::production-pganalyze-service]
        __defaults             : []
        containerDefinitions   : "[{"image":"<http://quay.io/pganalyze/collector:stable|quay.io/pganalyze/collector:stable>","cpu":256,"memory":512,"essential":true,"ulimits":[{"name":"nofile","softLimit":32000,"hardLimit":65536}],"environment":[{"name":"DB_HOST","value":"snip},{"name":"DB_USERNAME","value":"pganalyze"},{"name":"DB_NAME","value":"rainbow"}],"secrets":[{"name":"PGA_API_KEY","valueFrom":"snip"},{"name":"DB_PASSWORD","valueFrom":"snip"}],"logConfiguration":{"logDriver":"awsfirelens"},"readonlyRootFilesystem":false,"mountPoints":[],"name":"pganalyze"},{"cpu":128,"memory":512,"image":"<http://XXX.dkr.ecr.us-west-2.amazonaws.com/amazon/aws-for-fluent-bit:2.26.0|XXX.dkr.ecr.us-west-2.amazonaws.com/amazon/aws-for-fluent-bit:2.26.0>","firelensConfiguration":{"type":"fluentbit","options":{"config-file-type":"file","config-file-value":"/log_destinations.conf"}},"environment":[{"name":"SERVICE_NAME","value":"pganalyze"},{"name":"SERVICE_ENV","value":"production"},{"name":"GRAFANA_USER","value":"XXX"},{"name":"GRAFANA_API_KEY","value":"[secret]"}],"essential":true,"logConfiguration":{"logDriver":"awslogs","options":{"awslogs-group":"/ecs/ecs-aws-fluentbit-sidecar-logger","awslogs-region":"us-west-2","awslogs-stream-prefix":"pganalyze","awslogs-create-group":"True"}},"name":"logs"}]"
        cpu                    : "512"
        executionRoleArn       : "arn:aws:iam::XXX:role/rainbow-pganalyze-role-2961ff0"
        family                 : "pganalyze-fargate"
        memory                 : "1024"
        networkMode            : "awsvpc"
        requiresCompatibilities: [
            [0]: "FARGATE"
        ]
        taskRoleArn            : "arn:aws:iam::XXX:role/rainbow-pganalyze-task-role-919c4b6"%
    Any ideas? What are we doing wrong?
  • b

    brash-toothbrush-39078

    10/11/2022, 1:48 AM
    Does anyone have any good examples of using Pulumi for a serverless project? I know there are a few getting started examples, but I'm looking for more info about how to structure projects, connect functions and what not. Something more "real world".
    m
    a
    • 3
    • 2
  • q

    quaint-salesmen-18327

    10/11/2022, 7:50 AM
    We've just received a notification from GitHub that the Pulumi GitHub App now requires additional permissions to environments and deployments. However, we couldn't find any documentation on new features that would warrant these additional permissions. Could someone from the @echoing-match-29901 elaborate on this, please? Thanks! 🙏
    l
    • 2
    • 2
  • j

    jolly-doctor-17673

    10/11/2022, 8:45 AM
    Hey Team 👋 I'm new to the slack workspace and have a technical question I'd like to ask. What is the best channel for this purpose?
    b
    • 2
    • 3
  • v

    victorious-dusk-75271

    10/11/2022, 12:01 PM
    How can i speed up docker build on CI/CD? I am using docker.RemoteImage
  • m

    microscopic-barista-15731

    10/11/2022, 12:53 PM
    Hi all, I have a structure like :
    └── common
        ├── Pulumi.cmn.yaml
        ├── Pulumi.yaml
        ├── __main__.py
        ├── __pycache__
        ├── kubernetes
        │   ├── Pulumi.kubernetes.yaml
        │   ├── Pulumi.yaml
        │   ├── __main__.py
        │   ├── __pycache__
        │   └── requirements.txt
        └── requirements.txt
    I would like to have micro stacks and use the GCP bucket as the backend. I’m pointing to the same GCP bucket in both Pulumi.yaml files. Here is stacks list:
    pulumi stack ls
    NAME        LAST UPDATE     RESOURCE COUNT
    cmn         12 minutes ago  3
    kubernetes  22 hours ago    0
    in kubernetes
    __main__.py
    file I have this part of code
    stack = pulumi.get_stack()
    print(stack)
    pulumi.stack_reference(f"cmn")
    and I’m getting the error:
    pulumi:pulumi:Stack (kubernetes-kubernetes):
        error: Program failed with an unhandled exception:
        Traceback (most recent call last):
          File "/Users/irmas/projects/devops-new/infra/common/kubernetes/./__main__.py", line 16, in <module>
            pulumi.stack_reference("cmn")
        TypeError: 'module' object is not callable
     
        kubernetes
    b
    • 2
    • 13
  • g

    great-sunset-355

    10/11/2022, 1:14 PM
    @shy-arm-32391 are you taking over the work from Paul Stack? https://github.com/pulumi/pulumi-gitlab/issues/183 this contains an update that is critical for my work, would it be possible to merge it?
    b
    • 2
    • 3
  • o

    orange-airport-64592

    10/11/2022, 1:16 PM
    Hello , everyone , I would like to know how to use
    OutPut.unsecret
    , I found some test case in
    sdk/python/lib/test/test_next_serialize.py
    .
    class OutputSecretTests(unittest.TestCase):
        @pulumi_test
        async def test_secret(self):
            x = Output.secret("foo")
            is_secret = await x.is_secret()
            self.assertTrue(is_secret)
    
        @pulumi_test
        async def test_unsecret(self):
            x = Output.secret("foo")
            x_is_secret = await x.is_secret()
            self.assertTrue(x_is_secret)
    
            y = Output.unsecret(x)
            y_val = await y.future()
            y_is_secret = await y.is_secret()
            self.assertEqual(y_val, "foo")
            self.assertFalse(y_is_secret)
    but there are not async function in my pulumi script , I’m not using asynchronous, I don’t know how to use this.
    e
    a
    • 3
    • 6
  • q

    quaint-river-59320

    10/11/2022, 2:53 PM
    Good morning everyone. Having an issue with running a pulumi preview on ubuntu. It works locally on a mac, but trying to run it on a ubuntu box in aws, seeing the following
    error: policy pack "pulumi-awsguard" failed to start: could not read plugin [/home/ubuntu/.pulumi/bin/pulumi-analyzer-policy] stdout: EOF
    b
    e
    • 3
    • 12
  • h

    hundreds-gold-80559

    10/11/2022, 7:50 PM
    Any thoughts on this? Is there a way we can debug further why Pulumi thinks there is a diff?
  • w

    witty-barista-69390

    10/12/2022, 12:14 AM
    Question for the group has anyone setup Pulumi APIGateway using the Crosswalks version with BinaryMediaTypes?
  • c

    curved-action-42169

    10/12/2022, 1:00 AM
    Can someone point me in the right direction please? All my AWS stacks are throwing an error related to VpcCni. Same result with existing stacks and new freshly generated ones. This stack is a simple EKS cluster with two node groups.
    eks:index:VpcCni (eks-cluster-vpc-cni):
        error: Command failed: kubectl apply -f C:\Users\[...]\AppData\Local\Temp\tmp-41172ycFWuSXBTY1z.tmp
        Warning: spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].key: <http://beta.kubernetes.io/os|beta.kubernetes.io/os> is deprecated since v1.14; use "<http://kubernetes.io/os|kubernetes.io/os>" instead
        Warning: spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[1].key: <http://beta.kubernetes.io/arch|beta.kubernetes.io/arch> is deprecated since v1.14; use "<http://kubernetes.io/arch|kubernetes.io/arch>" instead
        error: unable to recognize "C:\\Users\\[...]\\AppData\\Local\\Temp\\tmp-41172ycFWuSXBTY1z.tmp": no matches for kind "CustomResourceDefinition" in version "<http://apiextensions.k8s.io/v1beta1|apiextensions.k8s.io/v1beta1>"
  • c

    curved-action-42169

    10/12/2022, 1:12 AM
    I've tried rolling back to a previous Pulumi version thinking that perhaps there was a construct change in the way the eks.NodeGroup or eks.Cluster was put together but the results were the same.
  • c

    curved-action-42169

    10/12/2022, 1:58 AM
    Disregard. AWS CLI and Kubectl required an update.
Powered by Linen
Title
c

curved-action-42169

10/12/2022, 1:58 AM
Disregard. AWS CLI and Kubectl required an update.
View count: 2