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

    refined-teacher-35628

    08/17/2020, 5:43 PM
    Hello everyone,
  • r

    refined-teacher-35628

    08/17/2020, 5:43 PM
    I'm running
    pulumi destroy
  • r

    refined-teacher-35628

    08/17/2020, 5:43 PM
    Provider AWS
  • r

    refined-teacher-35628

    08/17/2020, 5:44 PM
    But I'm got stuck with following error
    pulumi:pulumi:Stack  infra_db-dev
     -   β”œβ”€ aws:ec2:Subnet    migration-vpc-public-1  deleting     completing deletion from previous update
     -   └─ aws:ec2:Subnet    migration-vpc-public-0  deleting     completing deletion from previous update
  • r

    refined-teacher-35628

    08/17/2020, 5:45 PM
    Please help... already tried
    pulumi refreh
    ,
    pulumi stack export|import
    but no luck
  • b

    billions-morning-42067

    08/17/2020, 5:54 PM
    Hi All, I'm trying to upload a large (500+ MB) file to Azure storage as a Block Blob. I'm able to upload the file through the Azure portal without issue, but through Pulumi I'm getting: Code="RequestBodyTooLarge" Message="The request body is too large and exceeds the maximum permissible limit." There seems to be a limit of 100MB when using the MS API, I'm wondering if anyone has an example or can point me in the right direction for how to upload large blobs through Pulumi. For reference, I'm using C#.
    b
    • 2
    • 3
  • b

    billions-truck-90982

    08/17/2020, 6:15 PM
    Hey! cant really find but is there any way to get a progress update (slack/github) like heroku has when a deployment is ongoing vs finished?
    w
    • 2
    • 1
  • b

    billions-truck-90982

    08/17/2020, 6:18 PM
    ah nevermind, I can have circleci do it
  • b

    bitter-application-91815

    08/17/2020, 7:10 PM
    hi guys, I couldn't see any examples of how to setup a function triggered from api gateway request, there is an example in typescript but none in go which is kinda different since my code handler is not an anom function
  • b

    bitter-application-91815

    08/17/2020, 7:10 PM
    any ideas of where i could find how to map the function to the api ?
  • b

    bitter-application-91815

    08/17/2020, 7:11 PM
    i managed to do sqs last week through eventSourceMappings but can't see anything similar for apis
  • a

    astonishing-quill-88807

    08/17/2020, 8:05 PM
    If I'm writing a dynamic resource provider, is there any way to mark one of the output values as a secret so that it isn't recorded in plaintext in the state file?
    m
    • 2
    • 1
  • f

    full-dress-10026

    08/17/2020, 10:22 PM
    Pulumi EKS has this interface defined:
    export interface UserMapping {
        /**
         * The ARN of the IAM user to add.
         */
        userArn: pulumi.Input<aws.ARN>;
        /**
         * The user name within Kubernetes to map to the IAM user. By default, the user name is the ARN of the IAM user.
         */
        username: pulumi.Input<string>;
        /**
         * A list of groups within Kubernetes to which the user is mapped to.
         */
        groups: pulumi.Input<pulumi.Input<string>[]>;
    }
    Both userArn and username are required yet the docstring for username seems to indicate is filled in by default. Should username actually be optional?
  • c

    careful-engine-71229

    08/18/2020, 3:46 AM
    Does anyone here know what this means
    Error: providerCredentialOpts and AWS_PROFILE must be set together
    ?
    g
    • 2
    • 1
  • m

    miniature-leather-70472

    08/18/2020, 12:20 PM
    I'm using Pulumi to create an AKS cluster, which itself creates a number of managed Identity objects (AKS creates them, they are not defined in my stack directly). I am using the "GetUserAssignedIdentity" method to try and retrieve one of the identities, however this is failing when first run because the managed identity doesn't exist, which is correct at this point. How can I get Pulumi to wait for the AKS resource to be created before trying to retrieve this? This is the code I am using
    var aciPrincipalId =
                        Output.Tuple(args.ResourceGroupName, args.AksClusterName)
                        .Apply(aciIdentity => Pulumi.Azure.Authorization.GetUserAssignedIdentity.InvokeAsync(new Pulumi.Azure.Authorization.GetUserAssignedIdentityArgs
                        {
                            Name = $"aciconnectorlinux-{aciIdentity.Item2}",
                            ResourceGroupName = $"{aciIdentity.Item1}-NODES"
    
                        }))
                        .Apply(mi => mi.PrincipalId);
    I have tried adding the AKS ID as a property of the Tuple as well, but it makes no difference.
    • 1
    • 1
  • s

    swift-rose-43128

    08/18/2020, 12:40 PM
    Doesn't Pulumi have lock/unlock mechanisms for self-managed backends (AWS S3 and Azure BLOB)? #Backend
    l
    • 2
    • 1
  • w

    wet-egg-6347

    08/18/2020, 1:41 PM
    in
    pulumi/postgresql
    , is there some way to run the equivalent of the following?
    REVOKE CREATE ON SCHEMA public FROM PUBLIC;
  • m

    millions-furniture-75402

    08/18/2020, 2:07 PM
    When are StackReference outputs read? If the outputs update, do downstream references update?
    b
    • 2
    • 2
  • l

    loud-battery-37784

    08/18/2020, 4:50 PM
    Are the limitations of configuration values stated anywhere?
    set
    looking for more input which I assume is due to some characters not being escaped.
    b
    • 2
    • 9
  • b

    bitter-application-91815

    08/18/2020, 6:42 PM
    @ancient-megabyte-79588 any idea re this : I couldn't see any examples of how to setup a function triggered from api gateway request, there is an example in typescript but none in go which is kinda different since my code handler is not an anom function any ideas of where i could find how to map the function to the api ? i managed to do sqs last week through eventSourceMappings but can't see anything similar for apis
  • a

    alert-raincoat-81485

    08/18/2020, 6:59 PM
    Hello folks, For every aws resource name, Pulumiu creates unique postfix after resource name. Is there any way to eliminate creating unique names?
    b
    • 2
    • 2
  • b

    bitter-application-91815

    08/18/2020, 7:00 PM
    I think it does this to manage state no, so as you can rerun your script and for your infra to be updated only if it's needed.
  • b

    bitter-application-91815

    08/18/2020, 7:04 PM
    @broad-dog-22463 any ideas to my question above re functions and apigateway (in go)
  • c

    chilly-rainbow-79265

    08/19/2020, 3:59 AM
    πŸ™‹ Roll call! Who else is here?
  • c

    chilly-rainbow-79265

    08/19/2020, 3:59 AM
    Hi guys. Thank you for this awesome tool. Figuring out bits and pieces.
  • c

    chilly-rainbow-79265

    08/19/2020, 4:01 AM
    simple query, 1. how to read config values from stack file? is there any complete example available ? 2. From where can I get all default keys, like
    azure:location
    and others
    l
    l
    • 3
    • 9
  • a

    alert-raincoat-81485

    08/19/2020, 4:55 AM
    Hello folks, I am trying to figure out the how-to put name for the instances. When i am trying to put the name for instances, the name column comes empty.
    class ec2instance():
    
        def __init__(self, instance_name, instancetype, sg_name, counts):
            self.instance_name = instance_name
            self.instancetype = instancetype
            self.sg_name = sg_name
            self.counts = counts
    
        def count(self):
    
            for inst in range(0, self.counts):
                Instances = aws.ec2.Instance(self.instance_name + str(inst),
                ami="ami-12345",
                instance_type= self.instancetype,
                subnet_id=sbnet,
                #userData: `#!/bin/bash
                #    echo "Splunk Hybrid cloud poc" > index.html
            )
    
    if __name__ == "__main__":
        searchhead = ec2instance("sh", size, secgrp, 2)
        searchhead.count()
    
        idx = ec2instance("idx", size, secgrp, 3)
        idx.count()
  • a

    alert-raincoat-81485

    08/19/2020, 4:56 AM
    Is there any parameter in instance function that hold unique names for each instances? FYI, it's on AWS platform.
    b
    • 2
    • 23
  • c

    chilly-rainbow-79265

    08/19/2020, 6:59 AM
    Hi, Is it possible to seggregate the stacks inside project
    β›΅ dev-kube-cluster-new (dev) in projects/pulumi/demo
    ❯ tree
    .
    β”œβ”€β”€ dev
    β”‚Β Β  β”œβ”€β”€ go.mod
    β”‚Β Β  β”œβ”€β”€ go.sum
    β”‚Β Β  β”œβ”€β”€ main.go
    β”‚Β Β  └── webserver.go
    β”œβ”€β”€ Pulumi.dev.yaml
    β”œβ”€β”€ Pulumi.staging.yaml
    β”œβ”€β”€ Pulumi.yaml
    └── staging
        β”œβ”€β”€ main.go
        └── webserver.go
    
    2 directories, 9 files
    β›΅ dev-kube-cluster-new (dev) in projects/pulumi/demo
    ❯ cd staging
    β›΅ dev-kube-cluster-new (dev) in pulumi/demo/staging via 🐹 v1.14.6
    ❯ pu preview
    Previewing update (staging):
         Type                 Name               Plan     Info
         pulumi:pulumi:Stack  demo_proj-staging           1 error
    
    Diagnostics:
      pulumi:pulumi:Stack (demo_proj-staging):
        error: Failed to find go files for 'go run' matching /home/rajeshr/Documents/projects/pulumi/demo/*.go
    
    β›΅ dev-kube-cluster-new (dev) in pulumi/demo/staging via 🐹 v1.14.6 took 4s
    ❯ pu stack ls
    NAME      LAST UPDATE  RESOURCE COUNT  URL
    dev       1 hour ago   4               <https://app.pulumi.com/rjshrjndrn/demo_proj/dev>
    staging*  n/a          n/a             <https://app.pulumi.com/rjshrjndrn/demo_proj/staging>
    
    β›΅ dev-kube-cluster-new (dev) in pulumi/demo/staging via 🐹 v1.14.6 took 2s
    ❯ cat ../Pulumi.staging.yaml
    config:
      azure:location: centralindia
    β›΅ dev-kube-cluster-new (dev) in pulumi/demo/staging via 🐹 v1.14.6
    ❯ cat ../Pulumi.dev.yaml
    config:
      azure:environment: public
      azure:location: centralindia
    here my project is demo_proj
    • 1
    • 1
  • s

    sticky-receptionist-53934

    08/19/2020, 8:44 AM
    Hello guys!, I think a breaking change was introduced in version 3.19.0 of @pulumi/gcp, namely gcp.serviceAccount has been renamed to gcp.serviceaccount. This is in conflict with current documentation too...
    b
    c
    • 3
    • 9
Powered by Linen
Title
s

sticky-receptionist-53934

08/19/2020, 8:44 AM
Hello guys!, I think a breaking change was introduced in version 3.19.0 of @pulumi/gcp, namely gcp.serviceAccount has been renamed to gcp.serviceaccount. This is in conflict with current documentation too...
b

broad-dog-22463

08/19/2020, 10:25 AM
Hi @sticky-receptionist-53934
My apologies for this - we had a report of this last night (very late) and are looking into the issue
It was certainly not an expected breakage
You can find the issue here - https://github.com/pulumi/pulumi-gcp/issues/410
πŸ‘ 1
c

cool-egg-852

08/19/2020, 4:22 PM
Disappointed to find another breaking change make it into pulumi.
Why wasn’t this version pulled or a notice put up with a warning or basically anything given that this has been an issue for at least 8 hours?
b

broad-dog-22463

08/19/2020, 6:05 PM
Hi all We must apologise for the breaking change that occured in the minor version bump of the GCP provider. v3.19.0 introduced a codegen change that ensured consistent package names. This changed the following package names: Go
serviceAccount -> serviceaccount
NodeJS
serviceAccount -> serviceaccount
Python
service_account -> serviceaccount
This was an unintended consequence of the codegen change being released and is something that we should have ensured happened in a controlled manner rather than forcing the breakage on the customer We are going to have a followup post-mortem event to ensure we learn from this and that we add better quality bars to our releases so that we don't release these breaking changes without any warning or notice. We will publish the results of this post-mortem to make sure our customers understand what we have learned from this I am sorry for this issue. If this issue will cause you any unnecessary replacement of any infrastructure, then please do let us know and we can work with you on making sure this isn't the case Paul
πŸ‘ 1
s

sticky-receptionist-53934

08/22/2020, 4:34 PM
I am still confused, is this change intended or are you going to roll back ?
b

broad-dog-22463

08/22/2020, 5:39 PM
Hi @sticky-receptionist-53934 we feel to roll back would be another breaking change for those that fixed their code already so we’ve made the notice in the changelog what this breaking change has introduced for users to hopefully roll forward I’m sorry I wasn’t so clear above
View count: 1