https://pulumi.com logo
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
  • b

    busy-umbrella-36067

    10/03/2018, 9:00 PM
    pulumi destroy
    should use a fire emoji or something
    šŸ”„ 4
    w
    • 2
    • 1
  • b

    busy-umbrella-36067

    10/03/2018, 9:53 PM
    is there a simpler way than this to build and push a docker image to ECR? https://github.com/pulumi/pulumi-docker/blob/master/docker/tests/image/index.ts#L25-L39
    w
    • 2
    • 7
  • g

    glamorous-printer-66548

    10/03/2018, 11:19 PM
    how can i delete a protected resource?
    w
    • 2
    • 4
  • w

    wooden-toddler-96888

    10/04/2018, 1:59 AM
    So... creating a DynamoDB table leads to this:
    Diagnostics:
      aws:dynamodb:Table: Weblab
        error: Plan apply failed: ValidationException: One or more parameter values were invalid: Some index key attributes are not defined in AttributeDefinitions. Keys: [weblab,, revision], AttributeDefinitions: [latest, weblab, revision]
        	status code: 400, request id: OR00VLUOA2V4LMU1CV4MLC9ITFVV4KQNSO5AEMVJF66Q9ASUAAJG
    My table spec is:
    // Create a Weblab table
    const table = new aws.dynamodb.Table("Weblab", {
        attributes: [
            {
                name: "weblab",
                type: "S"
            },
            {
                name: "revision",
                type: "N"
            },
            {
                name: "latest",
                type: "N"
            }
        ],
        rangeKey: "revision",
        hashKey: "weblab",
        globalSecondaryIndexes: [
            {
                name: "revision-index",
                hashKey: "revision",
                rangeKey: "weblab,",
                projectionType: "INCLUDE",
                nonKeyAttributes: [
                    "description"
                ],
                readCapacity: 5,
                writeCapacity: 5
            },
            {
                name: "latest-index",
                hashKey: "latest",
                rangeKey: "weblab",
                projectionType: "INCLUDE",
                nonKeyAttributes: [
                    "revision",
                    "activations"
                ],
                readCapacity: 5,
                writeCapacity: 5
            }
        ],
        readCapacity: 5,
        writeCapacity: 5,
        serverSideEncryption: {
            enabled: true
        },
        pointInTimeRecovery: {
          enabled: true
        }
    });
    Somewhere there's a blank index key being injected. Can't figure out where.
  • w

    wooden-toddler-96888

    10/04/2018, 2:08 AM
    Never mind. That was my stupidity. šŸ™‚
    rangeKey: "weblab,",
    šŸ‘ 1
  • g

    gray-city-50684

    10/04/2018, 1:36 PM
    Can I somehow get the FQDN for the master server from a Pulumi Kubernetes Provider object?
    c
    • 2
    • 5
  • g

    gray-city-50684

    10/04/2018, 1:54 PM
    Another question: I create a kuberrnetes.yaml.ConfigGroup from the deployment yamls a component I use (argo) publishes. Can I mutate the Kubernetes object definitions the yamls specify?
    c
    • 2
    • 3
  • g

    gray-city-50684

    10/04/2018, 1:55 PM
    -.ts
  • g

    gray-city-50684

    10/04/2018, 1:56 PM
    I tried like this, but the editor complains that there is no property called ā€œtemplateā€ on an object of type Output<DeploymentSpec>
  • g

    gray-city-50684

    10/04/2018, 3:11 PM
    One more šŸ™‚ I know there is a method called ā€œapplyā€ on pulumi.Output objects. Is there something similar for pulumi.Input?
    w
    • 2
    • 3
  • b

    busy-umbrella-36067

    10/04/2018, 5:20 PM
    error: TypeError: Cannot read property 'split' of undefined
            at Object.<anonymous> (/XXXXXX/node_modules/@pulumi/docker.ts:391:47)
            at Generator.next (<anonymous>)
            at fulfilled (/XXXXXX/node_modules/@pulumi/docker/docker.js:17:58)
    any idea what might cause this to break?
    getDockerBuild = function(item, repository, ecrCreds) {
      return new docker.Image(item.name, {
        imageName: repository.repositoryUrl,
        build: {
          context: "./docker/standard",
          args: {
            "XXXXXXXXXX": "XXXXXXX",
            "ARTIFACT_URL": "XXXXXX",
            "ARTIFACT_SHA": "XXXXXX"
          }
        },
        registry: ecrCreds
      }, { parent: repository })
    }
    Repository doesn’t exist yet >.>
  • a

    adventurous-jordan-10043

    10/04/2018, 5:22 PM
    I’ve published the first article in a series of three about Pulumi. It’s the most interesting one because the following two are about examples you can find on Pulumis blog. It’s in french (sorry) but diagrams are in english and google translate is a thing šŸ˜› https://blog.octo.com/decouvrir-les-cloud-native-languages-avec-pulumi/
    šŸ’Æ 2
    a
    b
    • 3
    • 3
  • g

    gray-city-50684

    10/04/2018, 5:34 PM
    -.ts
  • g

    gray-city-50684

    10/04/2018, 5:36 PM
    My IDE complains on the last line, that ā€œpushā€ doesn’t exist on the ā€œInput<EnvVar>ā€ type. Can I safely ignore this error message, or is there a way to write this code without error there?
    c
    • 2
    • 15
  • h

    hundreds-traffic-99765

    10/04/2018, 5:39 PM
    same, we're back up now
  • d

    dazzling-scientist-80826

    10/04/2018, 5:41 PM
    i’d like to take a couple of resources that already exist and parameterize them by an aws provider - but if i do that, even if it’s in the same region as the existing/deployed resources, then the execution plan says it’s going to destroy and recreate all the resources - is there some export/import hackery i can do to make pulumi realize these resources are actually the same?
  • r

    red-gpu-20097

    10/04/2018, 5:47 PM
    I used React for a widget to display status of a map reduce task. haven't gotten around to writing a readme but source is available here https://github.com/jeffreymkabot/netsuite-task-status
    šŸ‘ 1
  • d

    dazzling-scientist-80826

    10/04/2018, 5:50 PM
    ^^ to attempt this, i ran one update to create the provider, grabbed the id with uuid & am now editing the snapshot to replace the provider values
  • d

    dazzling-scientist-80826

    10/04/2018, 5:50 PM
    hopefully that is a safe thing to do šŸ™‚ it is fixing the preview diff, at least
  • b

    busy-umbrella-36067

    10/04/2018, 7:27 PM
    is
    <http://api.pulumi.com|api.pulumi.com>
    updated via dns? I periodically get DNS resolution failures and have to login again
    b
    • 2
    • 3
  • b

    big-piano-35669

    10/04/2018, 8:12 PM
    Hi all, I've just posted an early head's up on some upcoming announcements we'll be making about our commercial launch. Read more here: https://pulumi-community.slack.com/archives/CB36DSVSA/p1538683815000100. If you have any questions, comments, or feedback, please always feel free to DM me and/or email joe@pulumi.com. Thank you for the continued support -- you make it a pleasure to do Pulumi things every day! šŸŽ‰ Joe
  • f

    faint-application-2746

    10/04/2018, 8:16 PM
    Hi, how do I use an existing S3 bucket?
    const bucket = new cloud.Bucket("<http://contextubot.net|contextubot.net>", { protect: true });
    creates a new one with some random string šŸ˜•
    c
    b
    l
    • 4
    • 12
  • h

    happy-egg-47291

    10/04/2018, 11:33 PM
    How do I create a lambda function with an existing zip archive? I tried something like this
    let lambda = new aws.lambda.Function("test-lambda", {
        runtime: aws.lambda.Go1dxRuntime,
        code: new pulumi.asset.FileAsset("/tmp/artifacts/aws_lambda.zip"),
        timeout: 300,
        handler: "server",
        role: role.arn,
        environment: {
            variables: {
                "FOO": "bar"
            }
        },
    });
    but I'm getting an error
    error: expected an asset, but filename is not an asset
    w
    • 2
    • 9
  • a

    adventurous-jordan-10043

    10/05/2018, 10:04 AM
    big slowdown
  • a

    adventurous-jordan-10043

    10/05/2018, 10:04 AM
    pulumi new is taking a lot of time
    w
    • 2
    • 2
  • g

    gray-city-50684

    10/05/2018, 12:06 PM
    I have a azure.containerservice.KubernetesCluster and a kubernetes.Provider created from it. When I try to increase the node-count of the cluster, pulumi wants to replace most of the things I have deployed on the cluster (Deployments, Services, etc.). Is this the expected behavior?
    w
    • 2
    • 5
  • b

    busy-umbrella-36067

    10/05/2018, 3:21 PM
    is pulumi released on a regular basis? i.e. every month new minor release
    w
    • 2
    • 1
  • f

    full-dress-10026

    10/05/2018, 4:04 PM
    Is there a way to install a specific version of the CLI?
    b
    • 2
    • 4
  • b

    busy-umbrella-36067

    10/05/2018, 4:12 PM
    does pulumi support creating non-suffixed ecr repositories?
    w
    • 2
    • 1
  • b

    busy-umbrella-36067

    10/05/2018, 4:16 PM
    ah, I see it https://github.com/pulumi/pulumi-aws/blob/master/sdk/nodejs/ecr/repository.ts#L96-L101
Powered by Linen
Title
b

busy-umbrella-36067

10/05/2018, 4:16 PM
ah, I see it https://github.com/pulumi/pulumi-aws/blob/master/sdk/nodejs/ecr/repository.ts#L96-L101
View count: 1