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-belgium-44686

    06/06/2021, 3:59 PM
    Reading through how AWS recommends deploying databases to EC2 it seems that the standard is: • Deploy a given quorum to each AZ in a set of AZs • When upgrading, take instances down one at a time (or at least one at a time per quorum), spin up the replacement, and then attach the network interface from the terminated instance to the newly created instance. How would one implement this in Pulumi? It seems like you'd want to ensure that, across deployments, you choose the AZs deterministically, and that you don't destroy network interfaces as you transition from one EC2 instance to another. I also am curious if I can specify that, for a given quorum, we only take down a node when all other nodes are ready? Or perhaps this is asking the wrong things from Pulumi, and I should be taking another approach?
  • m

    melodic-car-16900

    06/06/2021, 7:41 PM
    👋
    👋 1
  • a

    ancient-oil-47691

    06/07/2021, 5:47 AM
    Howdy folks! Super stoked to be trying out pulumi with python
    👋 1
  • b

    brave-winter-60074

    06/07/2021, 9:24 AM
    Hi everyone, is there a way to clean up your pulumi organization. We have a microservice setup and have been on a learning curve with pulumi to obtain our end goal and have a lot of mess in our pulumi account do to trial and error plus internal restrictions. This is just one project and we have 10+ Thought that I could create a new organization and then transition to that so that we start from scratch. But as far as i see only one organization is allowed? Seems like an enormous work if we have to destroy and remove all stacks on all projects most of them are deleted in azure with az group delete on the resource group… Thanx in advance
    p
    • 2
    • 4
  • b

    bumpy-agent-19616

    06/07/2021, 11:32 AM
    Hi all, we are trying to use Pulumi Kubernetes Operator to enable commit SHA based deployments in our AKS clusters. It seems to work all fine when we do commit and trigger the deployments based on that on local environment. However, this doesn't work in CI/CD environments as we are committing the same environment repo with aggressive git PRs/CI builds and the same stack file is being updated with the next container image version which leads to conflict issues. Is there a way to get around this issue or get rid if this approach altogether? Is there a way to watch for published images in container registry and then trigger deployments/image version change as in other gitops tools like FluxCD, ArgoCD, etc? Any help would be much appreciated.
  • g

    gorgeous-eye-54797

    06/07/2021, 12:21 PM
    Hello guys ! I have been created a Dynamic Provisioner. ! But now, all my unit tests are broker, Do you know now to Mock my Dynamic Provisioner ?
  • e

    echoing-zebra-28421

    06/07/2021, 7:07 PM
    Hi everyone, I have a query apigatewayV2 can you use the region us-east-1?
    ✅ 1
  • e

    echoing-zebra-28421

    06/07/2021, 7:09 PM
    I am running a project with apigatewayV2 and region us-east-2 and it works fine for me. But when I try to do it with the us-east-1 region it gives me an error
    c
    b
    • 3
    • 5
  • b

    bored-table-20691

    06/07/2021, 11:44 PM
    Is there a way to disable the default providers (e.g. for AWS/Kubernetes), to force you to always have to specify a provider? I am always worried I will forget setting the provider somewhere and it will use the default ones with whatever they are configured
    ➕ 1
    l
    w
    • 3
    • 11
  • h

    happy-angle-19851

    06/08/2021, 5:29 AM
    is there a way to register service instance for cloud map service in aws?
  • b

    bored-planet-52144

    06/08/2021, 12:45 PM
    Hi everyone, How to destroy a specific resource in Pulumi without disturbing other resources.
    d
    • 2
    • 2
  • w

    witty-airport-81009

    06/08/2021, 1:28 PM
    anyone else getting errors with pulumi's api?
    h
    b
    • 3
    • 12
  • e

    echoing-zebra-28421

    06/08/2021, 2:11 PM
    Hi everyone Can we use the AWS API Gateway V2 HTTP API arrogantly? I can't find an example :(. But if I found one in apiGateway:
    import * as aws from "@pulumi/aws";
    import * as awsx from "@pulumi/awsx";
    
    // Look up an existing Lambda Function by ID, so that we can get its ARN. (If we knew the ARN ahead
    // of time, this would not be necessary, we can just use it in the URI below.)
    const handler = aws.lambda.Function.get("get-handler", "your_lambda_id");
    
    // Define a GET endpoint that invokes our Lambda Function-based handler.
    const api = new awsx.apigateway.API("example", {
        swaggerString: handler.arn.apply(arn => JSON.stringify({
            "swagger": "2.0",
            "info": {
                "title": "example",
                "version": "1.0",
            },
            "paths": {
                "/": {
                    "get": {
                        "x-amazon-apigateway-integration": {
                            "httpMethod": "POST",
                            "passthroughBehavior": "when_no_match",
                            "type": "aws_proxy",
                            "uri": `arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/${arn}/invocations`,
                        },
                    },
                },
            },
            "x-amazon-apigateway-api-key-source": "HEADER",
            "x-amazon-apigateway-binary-media-types": [ "*/*" ],
            "x-amazon-apigateway-gateway-responses": {
                "ACCESS_DENIED": {
                    "responseTemplates": {
                        "application/json": "{\"message\": \"404 Not found\" }",
                    },
                    "statusCode": 404,
                },
                "MISSING_AUTHENTICATION_TOKEN": {
                    "responseTemplates": {
                        "application/json": "{\"message\": \"404 Not found\" }",
                    },
                    "statusCode": 404,
                },
            },
        })),
    });
    
    // Export the auto-generated AWS API Gateway base URL.
    export const url = api.url;
    b
    • 2
    • 1
  • b

    boundless-analyst-51913

    06/08/2021, 4:53 PM
    Hi, I have a inline program that creates a Table and an API resource from pulumi-cloud, and when I run it the first time (creating the resources) I get this error:
    failed to register new resource my-api-resource-name [aws:apigateway/stage:Stage]: Resource monitor is terminating
    at Object.registerResource (/node_modules/@pulumi/pulumi/runtime/resource.js:219:27)
    at new Resource (/node_modules/@pulumi/pulumi/resource.js:215:24)
    at new CustomResource (/node_modules/@pulumi/pulumi/resource.js:307:9)
    at new Stage (/node_modules/@pulumi/apigateway/stage.ts:200:9)
    at new API (/node_modules/@pulumi/apigateway/api.ts:571:22)
    at new HttpDeployment (/node_modules/@pulumi/api.ts:200:20)
    at API.publish (/node_modules/@pulumi/api.ts:131:27)
    at Resource.output (own code, line points to this code
    return { url: api.publish().url };
    )
    When I run it again, it successfully creates that missing resource. I tried to debug it but I can't find out what the issue could be. Any hints on where to look or how to debug would be very appreciated.
    • 1
    • 3
  • b

    brash-kite-78002

    06/08/2021, 5:09 PM
    Hello Everyone! Is there any way to change a Helm chart values after it's got defined in the code? I need to deploy the Cilium chart, but I can't deploy it with ServiceMonitors and Ingress because of dependencies that are deployed later on. Thus, I'm trying to find a way to change the chart after all my dependencies are installed.
    b
    • 2
    • 4
  • m

    mysterious-belgium-44686

    06/09/2021, 12:45 AM
    I'm trying to use Pulumi to manage some docker containers. One container is running Kafka. How can I have Pulumi wait until Kafka is up and running before creating the topic?
    kafkaContainer = docker.Container("kafka-container",
        image=kafkaImage.name,
        restart="on-failure",
        networks_advanced=[{ 'name': network.name }],
        start=True,
        envs=[
          "KAFKA_BROKER_ID=1",
          "KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181",
          "KAFKA_ADVERTISED_LISTENERS=<PLAINTEXT://kafka:29092>,PLAINTEXT_<HOST://localhost:9092>",
          "KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT",
          "KAFKA_INTER_BROKER_LISTENER_NAME=PLAINTEXT",
          "KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1"
        ],
        ports=[{
            'internal': 9092,
        }],
        opts=pulumi.ResourceOptions(depends_on=[zkContainer])
    )
    
    
    topic = kafka.Topic("topic",
          name="sample-topic",
          replication_factor=1,
          partitions=4,
          opts=pulumi.ResourceOptions(depends_on=[kafkaContainer])
        )
    s
    s
    p
    • 4
    • 18
  • f

    fresh-hospital-81544

    06/09/2021, 1:38 AM
    hi. my internet just cut out during pulumi up and now my stack cant be found. How to recover?
    s
    • 2
    • 8
  • c

    colossal-rainbow-39841

    06/09/2021, 5:26 AM
    can i output json during pulumi up ? similar to pulumi preview --json ?
    b
    • 2
    • 1
  • l

    lemon-garage-82195

    06/09/2021, 7:43 AM
    Morning guys, We're experiencing an odd issue after migrating from azure-nextgen to azure-native. A
    pulumi up
    gives us the expect output, and the resources exist within Azure, however, we've noticed that running the pipeline again pulumi tries to delete a subnet even though there have been no changes made to the config of that subnet. Has anyone experienced a similar issue?
    b
    • 2
    • 1
  • q

    quiet-laptop-25454

    06/09/2021, 12:33 PM
    Hello! has anyone encountered this issue when using pulumi automation api on a CI/CD pipeline? If someone could help me on this I'd be glad to offer sweet treats and advices!
    b
    • 2
    • 2
  • b

    boundless-angle-56560

    06/09/2021, 2:22 PM
    Hi, perhaps a silly question but is it possible to auto-generate terraform files from pulumi ? Does anybody know some tool ?
    b
    • 2
    • 1
  • q

    quiet-gold-81036

    06/09/2021, 5:09 PM
    hi all, I’m looking for a freelance Pulumi consultant for a number of projects on our AWS infra. is there a directory/certification plan by Pulumi?
    b
    • 2
    • 1
  • a

    acceptable-army-69872

    06/09/2021, 7:34 PM
    SaaS company gave me a cloud formation template instead of clear instructions on what they want for permissions. I see a couple options getting this into pulumi; reverse engineer what's in the cf template, which I'll probably screw up, or use the template, then import the resources into pulumi. Anyone else have any bright ideas? There's not some cf to pulumi magic someone wrote is there?
    l
    • 2
    • 1
  • b

    boundless-angle-56560

    06/09/2021, 8:48 PM
    Hi, is there a way how to work with a hierarchy of docker images ? I mean - to create base docker image and child image derived from the base one, all in single pulumi run ?
    • 1
    • 1
  • s

    shy-architect-77550

    06/09/2021, 11:11 PM
    Hi - I followed the example for creating a linode nodebalancer per the docs (literally cut and paste the example) and pulumi returns an error. The example is this snippet from https://www.pulumi.com/docs/reference/pkg/linode/nodebalancerconfig/:
    foobar = linode.NodeBalancer("foobar",
        label="mynodebalancer",
        region="us-east",
        client_conn_throttle=20)
    foofig = linode.NodeBalancerConfig("foofig",
        nodebalancer_id=foobar.id,
        port=8088,
        protocol="http",
        check="http",
        check_path="/foo",
        check_attempts=3,
        check_timeout=30,
        stickiness="http_cookie",
        algorithm="source")
    The error is:
    error: linode:index/nodeBalancerConfig:NodeBalancerConfig resource 'foofig' has a problem: Attribute must be a whole number, got 143111. Examine values at 'NodeBalancerConfig.NodebalancerId'.
    🐞 1
    ✅ 1
    r
    • 2
    • 4
  • o

    orange-byte-86458

    06/10/2021, 12:19 AM
    Hi, all! I’m checking out Pulumi as a potential Terraform replacement for our project. I was quite excited about the
    tf2pulumi
    tool but, of course, nothing ever works on the first try 🙂 It seems like in our existing Terraform config we’re using https://registry.terraform.io/providers/gavinbunney/kubectl/latest provider for which there’s no direct Pulumi alternative and the
    tf2pulumi
    tool fails with a
    no resource plugin 'kubectl'
    error. My understanding was that I could use the
    --allow-missing-plugins
    to make it proceed and then simply refactor the resulting code to use Pulumi’s native plugin but, unfortunately,
    --allow-missing-plugins
    does nothing and
    tf2pulumi
    still fails. Is there an easy workaround for this or do I need to go the route of wrapping the
    kubectl
    plugin via https://github.com/pulumi/pulumi-terraform-bridge, publishing it in the registry, etc., etc. ? Thanks!
  • g

    gorgeous-minister-41131

    06/10/2021, 1:51 AM
    Is there a way yet, in pulumi, to have project-wide configurations vs just stack? without implementing a custom system, copy-pasta is rampant in a lot of our projects unless I use custom map mergers, and do all of the configuration logic in code… which defeats the purpose of even using pulumi’s config system outside of secrets.
    l
    • 2
    • 2
  • g

    gorgeous-minister-41131

    06/10/2021, 1:52 AM
    I yearn for the days of something like
    hiera
    for Pulumi configuration..
  • g

    gorgeous-minister-41131

    06/10/2021, 1:54 AM
    https://github.com/pulumi/pulumi/issues/2307
  • g

    gorgeous-minister-41131

    06/10/2021, 1:55 AM
    even the suggestion of multiple merged configs would be wonderful.
Powered by Linen
Title
g

gorgeous-minister-41131

06/10/2021, 1:55 AM
even the suggestion of multiple merged configs would be wonderful.
View count: 1