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
dotnet
  • n

    numerous-artist-1705

    07/20/2020, 3:07 PM
    @tall-librarian-49374 @wet-noon-14291 just pushed v2 and now it supports nested types! This week I'll also rename the repository so Tomas can push his Kubernetes stuff and I'll try then and add AWS, too
    w
    • 2
    • 3
  • n

    numerous-artist-1705

    07/20/2020, 3:08 PM
    It looks really good, I just need to shorten the nested types, instead of "virtualMachineStorageOsDisk" it can just be "storageOsDisk" when it's nested...
    r
    w
    t
    • 4
    • 5
  • n

    numerous-artist-1705

    07/20/2020, 3:08 PM
    this compiles and works ^
    🚀 3
    😛artypus: 1
  • f

    fresh-lifeguard-12682

    07/20/2020, 5:11 PM
    who is using pulumi dotnet on azure in production?
    n
    • 2
    • 5
  • g

    gray-ambulance-59402

    07/21/2020, 7:27 AM
    Hello, I had a query about using component resources arguments in Pulumi. More specifically how I can extend some of the existing resources args, rather than re-declaring them all in our own classes? For example in a use case of having a component resource for a Virtual network and subnets, I would like to expose the majority of the resource args into the component resource but add some additional arguments for conditional creation and loops or to set a default value for some of them. I can see all of the args classes are sealed, so is the standard to re-declare them in our own class or to create another that includes these args classes as properties?
    t
    • 2
    • 5
  • f

    fresh-lifeguard-12682

    07/23/2020, 9:22 PM
    I have a .net core web api that requires cosmos db, azure file share, and I was wondering how you guys structure the solution so you can deploy a .net core web app/api using azure-csharp. Would you create a new project or would you install pulumi in the api you want to deploy?
    w
    • 2
    • 10
  • n

    numerous-artist-1705

    07/24/2020, 3:20 PM
    @wet-noon-14291 I've updated the repo as discussed, now it is generic and has Kubernetes and Aws together with Pulumi.FSharp.Azure. Btw, I've published the Pulumi.FSharp.Aws, haven't tested it, but it should work.
  • n

    numerous-artist-1705

    07/24/2020, 3:21 PM
    And now compilation is waaay faster... From 12 hours to, probably few seconds
    😳 2
    r
    w
    s
    • 4
    • 8
  • n

    numerous-artist-1705

    07/24/2020, 3:25 PM
    That's the new URL to the repo https://github.com/UnoSD/Pulumi.FSharp.Extensions
  • n

    numerous-artist-1705

    07/24/2020, 3:26 PM
    I've also published
    Pulumi.FSharp.Kubernetes
    on NuGet... but that is mostly to reserve the name as I was getting a bunch of errors when generating. I think @wet-noon-14291 worked a bit on it so he'll probably have it already working.
    w
    • 2
    • 6
  • n

    numerous-artist-1705

    07/24/2020, 3:27 PM
    I don't even have an AWS account, so I would appreciate any feedback on it as I can't really test it
  • s

    sticky-jordan-27156

    07/25/2020, 9:39 AM
    Hello, I have a question regarding deploying Azure Functions. Is it possible to access the functions keys as output somehow?
    l
    • 2
    • 3
  • s

    sticky-jordan-27156

    07/25/2020, 9:45 AM
    It seems to be present in typescript but not in .NET (https://github.com/pulumi/pulumi-azure/pull/297/files/fd45274e6ebb9e1412020904f69e9b64c8ef093a)
    t
    • 2
    • 2
  • s

    sticky-jordan-27156

    07/25/2020, 10:29 AM
    While I'm looking for my workaround, can I execute azure cli commandos in Pulumi somehow?
    t
    • 2
    • 1
  • s

    sticky-jordan-27156

    07/28/2020, 3:18 PM
    Is there a way to tell if my azure function is deployed when using
    WEBSITE_RUN_FROM_PACKAGE
    and blob storage uri? I want to fetch my function keys but I'm getting errors as I'm suspecting the function app is not fully deployed yet.
    t
    • 2
    • 2
  • f

    fresh-lifeguard-12682

    07/29/2020, 12:32 AM
    Has anyone experience a 401 nuget error when running Pulumi on Azure Pipelines when your NuGet.config has an internal/private nuget source?
    n
    • 2
    • 12
  • c

    chilly-hairdresser-56259

    07/29/2020, 9:01 PM
    Quick question. Trying to figure out how I would specify multiple Path Patterns for the AWS ALB ListenerRule. From the docs it appears that Values can be a Liststring however, when you attempt to supply multiple values the IDE indicates that only one value can be supplied. Just kinda curious as I haven't found a solution yet, and haven't found one digging through any examples.
    Untitled
    t
    • 2
    • 15
  • n

    numerous-processor-60508

    07/30/2020, 11:19 PM
    I have annoying scenario where by our Azure Application Gateway always shows a diff on RequestRoutingRules because the way the values are stored appear to be in a different order than when I generate them. Does anyone else have this problem? I did try to order the RequestRoutingRules by name, but I can't order by a value that's then inside the Input<string> property. Anyone got any ideas?
    t
    • 2
    • 3
  • n

    numerous-artist-1705

    08/05/2020, 9:59 AM
    hi folks, I'm trying to invoke something AFTER a resource gets created. I'm using
    resource.Property.Apply(x => do something with x)
    , but "do something with x" gets invoked BEFORE the resource creation (I presume as the property is the name and it's available upfront). I tried adding other properties with
    Output.Tuple
    , but it seems that, as the name is ready it will be always invoked immediately. Is there a way to wait for the resource to be created to execute some other code? Thanks
    s
    t
    • 3
    • 4
  • w

    worried-city-86458

    08/06/2020, 8:36 PM
    I'm porting some code from typescript to c# and fighting the static typing models...
    t
    • 2
    • 11
  • c

    chilly-hairdresser-56259

    08/07/2020, 3:58 PM
    Was curious if anyone else is experiencing this issue or not. When creating and RDS Cluster in AWS, for now I statically supplied a list of CloudwatchLogsExports. With no changes it keeps flip flopping the order instead of staying true to the order I supplied. Since the order is flip flopping it also indicated a (replacement) of the ClusterInstances, even though that is an incorrect state change.
    Untitled
    g
    • 2
    • 2
  • b

    boundless-tailor-35598

    08/17/2020, 11:52 AM
    I have an ASP.NET application which has a Docker File and am trying to create the Docker Image using Pulumi. When I specify the Docker.ImageArgs, I can set the Build to the relative path of the directory where the Docker File is located. However, I need to pass the working directory to Docker. I am currently doing the following when using Docker build: docker build -f ./Dockerfile [/working_directory_path] When using Pulumi (C#), I am doing something like: var image = new Docker.Image("app-img", new Docker.ImageArgs { Build = "../path_to/directory_of_docker_file", ImageName = appRepo.RepositoryUrl, Registry = new Docker.ImageRegistry { Server = appRepo.RepositoryUrl, Username = appRepoCredentials.GetAt(0), Password = appRepoCredentials.GetAt(1) }, }); However I need to be able to specify the working directory for the docker file (in a similar way to when using docker build). Does anyone know how to achieve this with the C# API?
    • 1
    • 2
  • b

    boundless-tailor-35598

    08/17/2020, 12:58 PM
    I am trying to create a Fargate service, without elastic load balancing. The aws-cs-fargate example had a load balancer and exposes the public ip of the service using the DnsName property of the load balancer. However, if you do not create a load balancer, how do you get the public ip for the service? The service is being created with NetworkConfiguration = new Ecs.Inputs.ServiceNetworkConfigurationArgs { AssignPublicIp = true, }
    • 1
    • 2
  • f

    fresh-lifeguard-12682

    08/18/2020, 9:14 PM
    Has anyone else encountered this error when running Pulumi config set on Azure DevOps?
    2020-08-18T21:11:57.9524504Z ##[error]Error: There was an error when attempting to execute the process 'D:\a\_temp\1db5fca2-f664-4b02-a788-4cbea994050f\pulumi\bin\pulumi.exe'. This may indicate the process failed to start. Error: spawn D:\a\_temp\1db5fca2-f664-4b02-a788-4cbea994050f\pulumi\bin\pulumi.exe ENOENT
    c
    • 2
    • 2
  • f

    fresh-lifeguard-12682

    08/18/2020, 11:31 PM
    I’m getting the following error when I try to execute pulumi up in azure devops pipelines (which is using the pulumi task with the az backend)
    error: no stack named 'cde' found
    However when I execute this locally (using my PULUMI_ACCESS_TOKEN) everything works fine. Any ideas?
    c
    • 2
    • 2
  • f

    fresh-lifeguard-12682

    08/20/2020, 8:40 PM
    I just got a this error when I was trying to deploy this stack to azure. 2020-08-20T20:38:48.0594180Z
    panic: runtime error: invalid memory address or nil pointer dereference
    w
    • 2
    • 6
  • f

    fresh-lifeguard-12682

    08/25/2020, 7:35 AM
    I’m trying to create an app using Pulumi.Okta, has anyone done that before?
    a
    • 2
    • 2
  • f

    fresh-lifeguard-12682

    09/03/2020, 3:58 AM
    I’m currently setting some config in my Azure Pipeline, I was wondering if you guys know a way to this in batches or in a different way.
    - task: Pulumi@1
      displayName: 'Set azure:location'
      inputs:
        command: 'config'
        args: 'set azure:location ${{ parameters.azureLocation }}'
        cwd: '$(Pipeline.Workspace)/${{ parameters.pulumiArtifactName }}'
        stack: '${{ parameters.pulumiStack }}'
        createStack: true
        loginArgs: '--cloud-url ${{ parameters.pulumiCloudUrl }}'
    
    - task: Pulumi@1
      displayName: 'Set azureServiceBusConnectionString'
      inputs:
        command: 'config'
        args: 'set azureServiceBusConnectionString $(azureServiceBusConnectionString)'
        cwd: '$(Pipeline.Workspace)/${{ parameters.pulumiArtifactName }}'
        stack: '${{ parameters.pulumiStack }}'
        createStack: true
        loginArgs: '--cloud-url ${{ parameters.pulumiCloudUrl }}'
    
    - ${{ if eq(parameters.setMongoConnectionString, 'true') }}:
      - task: Pulumi@1
        displayName: 'Set mongoConnectionString'
        inputs:
          command: 'config'
          args: 'set mongoConnectionString $(mongoConnectionString)'
          cwd: '$(Pipeline.Workspace)/${{ parameters.pulumiArtifactName }}'
          stack: '${{ parameters.pulumiStack }}'
          createStack: true
          loginArgs: '--cloud-url ${{ parameters.pulumiCloudUrl }}'
    c
    • 2
    • 1
  • c

    cold-caravan-83486

    09/03/2020, 4:25 PM
    After my deployment runs, I'd like to add a stored procedure and some data to the (Azure Document) database. Is there a way to: 1. tell that the deployment has been performed (rather than previewed or cancelled) 2. get the exported values to find the connection string
    c
    s
    • 3
    • 3
  • c

    chilly-hairdresser-56259

    09/03/2020, 7:06 PM
    Hello, could would anyone be able to tell me how to properly package up a Maven build Java Lambda Function? Maven produces the *.JAR file which then if you were to do it manually the *.JAR gets uploaded to the function. Then your handler would be PATH.CLASS::Method. I have tried a variety of ways, but I cannot figure out if its my handler that is incorrect or whether it's how it is being packaged. Above is the code, and for simplicities sake, if I were to upload the *.JAR manually to AWS the handler is
    test.app.controller.AppController::Handler
    Untitled.cs
    t
    • 2
    • 4
Powered by Linen
Title
c

chilly-hairdresser-56259

09/03/2020, 7:06 PM
Hello, could would anyone be able to tell me how to properly package up a Maven build Java Lambda Function? Maven produces the *.JAR file which then if you were to do it manually the *.JAR gets uploaded to the function. Then your handler would be PATH.CLASS::Method. I have tried a variety of ways, but I cannot figure out if its my handler that is incorrect or whether it's how it is being packaged. Above is the code, and for simplicities sake, if I were to upload the *.JAR manually to AWS the handler is
test.app.controller.AppController::Handler
Untitled.cs
going to cross post this in #aws
t

tall-librarian-49374

09/03/2020, 7:22 PM
I have a Java lambda here: https://github.com/mikhailshilkov/cloudbench/tree/master/aws/http/javanoop
Deployed here https://github.com/mikhailshilkov/cloudbench/blob/master/aws/index.ts#L85
👍 1
c

chilly-hairdresser-56259

09/03/2020, 7:28 PM
I just got it working, just wasnt patient enough.
View count: 1