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

    average-dream-51210

    06/23/2019, 4:49 AM
    Ah that's what it is I think, the Lambda body has base64 encoded json in it, i wanted it to return just a string or json.. I think it's because of binary media type / in api gateway
  • s

    swift-dinner-29731

    06/23/2019, 8:40 AM
    Hi, guys. What do you think about connecting domain and ssl in pulumi script ? or it's better do this things manually ? I try to do it via this example - https://github.com/pulumi/examples/tree/master/aws-ts-static-website But try to change it to container and Fargate service.
    w
    • 2
    • 2
  • a

    average-dream-51210

    06/23/2019, 7:46 PM
    In the awsx.apigateway.API class, is it possible to drill down into apigateway to set it to a 'regional' distribution instead of edge-optimized?
    w
    • 2
    • 2
  • b

    billions-lock-73409

    06/24/2019, 2:56 PM
    Is it possible to move a project from one pulumi account to another?
    g
    • 2
    • 4
  • b

    billions-lock-80282

    06/24/2019, 3:17 PM
    Hi, when I run any of the AKS samples, e.g. https://github.com/pulumi/examples/tree/master/azure-ts-aks-helm or the example in the api docs, I always get the same error around saying that the agentPoolProfile does not exist in type 'KubernetesClusterArgs'
    g
    • 2
    • 16
  • b

    billions-lock-80282

    06/24/2019, 3:17 PM
    index.ts(9,5): error TS2345: Argument of type '{ agentPoolProfile: { count: number; name: string; osDiskSizeGb: number; osType: string; vmSize: string; }[]; dnsPrefix: string; location: Output<string>; name: string; resourceGroupName: Output<string>; servicePrincipal: { ...; }; tags: { ...; }; }' is not assignable to parameter of type 'KubernetesClusterArgs'.
          Object literal may only specify known properties, but 'agentPoolProfile' does not exist in type 'KubernetesClusterArgs'. Did you mean to write 'agentPoolProfiles'?
  • q

    quaint-queen-45003

    06/24/2019, 3:26 PM
    message has been deleted
  • q

    quaint-queen-45003

    06/24/2019, 3:26 PM
    hello - any thoughts on the question above ^?
    b
    • 2
    • 29
  • s

    swift-dinner-29731

    06/24/2019, 4:39 PM
    Hello. Does anyone have example of setup domain / ssl for EC2, Fargate service? or maybe some example of adding https listener to load balancer?
  • p

    plain-businessperson-30883

    06/24/2019, 5:20 PM
    I’m having trouble trying to rename a stack. Any ideas on what could be causing it?
    $ pulumi --verbose 4  stack rename prod
    error: [400] Bad Request: could not deserialized deployment
    w
    • 2
    • 3
  • b

    busy-umbrella-36067

    06/24/2019, 6:04 PM
    Having some trouble with promises and providers, can anyone help with building a kubernetes provider that uses a modified kubeconfig from
    @pulumi/eks/Cluster
    ? This is what I've got so far, the modifications (
    AWS_PROFILE
    env var) never make it to the provider resource thats created
    const modifiedKubeconfig = this.cluster.kubeconfig.apply(kubeconfig => {
          kubeconfig.users[0].user.exec.env = [{"AWS_PROFILE": "staging"}]
          return kubeconfig
        })
    
        this.provider = new kube.Provider("test", { kubeconfig: modifiedKubeconfig.apply(JSON.stringify) }, { parent: this })
    w
    • 2
    • 3
  • g

    glamorous-thailand-23651

    06/24/2019, 7:39 PM
    happy monday all, just wondering if anyone was aware of a workaround or other path forward for the issue i had mentioned previously (link to thread here https://pulumi-community.slack.com/archives/C84L4E3N1/p1561151057226700)
  • l

    lemon-spoon-91807

    06/24/2019, 8:55 PM
    FYI to anyone here who uses
    @pulumi/awsx
    . Our next release has a bunch of fixes in it based on early feedback from the Crosswalk launch. Tried very hard to ensure these fixes wouldn't affect existing stacks, but def let us know if you see otherwise. More information is avialable here: https://pulumi-community.slack.com/archives/CB36DSVSA/p1561409623039300
    s
    • 2
    • 9
  • p

    proud-alarm-92546

    06/24/2019, 8:56 PM
    that more info link just seems to link to you in the workspace directory - maybe https://pulumi-community.slack.com/archives/CB36DSVSA/p1561409623039300 instead
  • l

    lemon-spoon-91807

    06/24/2019, 9:00 PM
    Whoops. Thanks!
  • a

    average-dream-51210

    06/25/2019, 3:17 AM
    Hrmmm with the Fargate stuff in this post: https://blog.pulumi.com/get-started-with-docker-on-aws-fargate-using-pulumi How do you redeploy code changes of the application image? And do the deploys default to a rolling update of the fargate containers?
    w
    • 2
    • 8
  • a

    average-dream-51210

    06/25/2019, 3:18 AM
    Whoa cool:
    b
    • 2
    • 1
  • a

    average-dream-51210

    06/25/2019, 3:18 AM
    So just.. edit code, save pulumi up and it redeploys?
  • a

    average-dream-51210

    06/25/2019, 3:19 AM
    In the middle of a giant rearchitecture from 25 different lambdas, apigateway, to a containerized express monolith
    m
    b
    b
    • 4
    • 5
  • s

    swift-dinner-29731

    06/25/2019, 7:55 AM
    Hi, How to setup route 53 alias to load balancer? I used next code :
    const nlb = new awsx.elasticloadbalancingv2.NetworkLoadBalancer("some-nlb", {external: true });
     const tg = nlb.createTargetGroup("some-tg", { port: 3000 });
     const listener = tg.createListener("some-http-listener", { port: 80 });
    const listener2 = tg.createListener('https-listener', {
        certificateArn: certificate.arn,
         loadBalancerArn: nlb.arn,
        port: 443,
        protocol: "TLS",
        sslPolicy: "ELBSecurityPolicy-2016-08"
    }); 
    
    let service = new awsx.ecs.FargateService("some-app", {
        desiredCount: 1,
        taskDefinitionArgs: {
            containers: {
                myapp: {
                    image: awsx.ecs.Image.fromPath("app", "../"),
                    memory: 512,
                    portMappings: [listener],
                },
            },
        },
    });
    
    const webDnsRecord = new aws.route53.Record("webDnsRecord", {
        name: domain,
        type: "A",
        zoneId: hostedZoneId,
        aliases: [{
            evaluateTargetHealth: true,
            name: listener.endpoint.hostname,
            zoneId: listener.loadBalancer.zoneId,   <!!! problem here>
        }],
    }, { dependsOn: sslCertValidationIssued });
    How to get zoneId for elastic load balacer ? Because in this code I had this error : error: aws:route53/record:Record resource 'webDnsRecord' has a problem: "alias.0.zone_id": required field is not set
    g
    l
    • 3
    • 5
  • s

    swift-dinner-29731

    06/25/2019, 7:56 AM
    Also , if I try get load balancer, it also doesn't work :
    const balancer = aws.elasticloadbalancing.getLoadBalancer({
         name: 'some-nlb',
     });
  • m

    most-judge-33290

    06/25/2019, 1:43 PM
    my code is a little different and there is probably a more direct way but I get it from the target group
    tg.loadBalancer.loadBalancer.zoneId
  • c

    cool-egg-852

    06/25/2019, 2:05 PM
    Not sure if I found a bug or if I’m doing something wrong.
    error: Plan apply failed: deleting urn:pulumi:production::rsin-provider::aws:iam/policy:Policy::rsin-provider: Error deleting IAM policy arn:aws:iam::137361304112:policy/production-rsin-provider: DeleteConflict: Cannot delete a policy attached to entities.
    p
    g
    • 3
    • 9
  • s

    swift-dinner-29731

    06/25/2019, 3:34 PM
    If there a way to run specific pulumi script? I mean I have for ex index1.js, index2.js - different deployment scripts. and I want to do somenthings like -
    pulumi up index1.js
    p
    • 2
    • 3
  • q

    quaint-zoo-42723

    06/25/2019, 4:03 PM
    Hi I work at a non-profit and we have started exploring Pulumi for serverless functions and infrastructure. Is there anyone we can talk to about non-profit pricing?
    g
    • 2
    • 2
  • s

    swift-dinner-29731

    06/25/2019, 4:06 PM
    How I can handle error like this : Error building changeset: InvalidChangeBatch: [Tried to create resource record set [name='domain_name', type='A'] but it already exists]. it is related to code which I posted above. try to create alias record
  • s

    swift-dinner-29731

    06/25/2019, 4:08 PM
    How I can check if this record alredy exist or handle this error ?
  • p

    proud-alarm-92546

    06/25/2019, 4:23 PM
    are you trying to do this from a different stack than you created the record from?
    s
    • 2
    • 3
  • s

    swift-dinner-29731

    06/25/2019, 4:37 PM
    Sometimes, I see timeouts error related to updating Fargate service:
    timeout while waiting for state to become 'true' (last state: 'false', timeout: 10m0s)
    and after this, i have +1 running task, but not replacing existing It stucks on the taskDefinition
    └─ awsx:x:ecs:FargateService         
     ~      └─ aws:ecs:Service                updating     [diff: ~taskDefinition]
    What can be a problem ?
    w
    • 2
    • 5
  • s

    swift-painter-31084

    06/25/2019, 4:57 PM
    I'm having trouble formatting a dynamodb query using the Cloud library, getting this error:
    The provided key element does not match the schema
Powered by Linen
Title
s

swift-painter-31084

06/25/2019, 4:57 PM
I'm having trouble formatting a dynamodb query using the Cloud library, getting this error:
The provided key element does not match the schema
View count: 1