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

    quiet-architect-74241

    10/06/2021, 12:26 PM
    Is there anything known about support for .NET 6 for the Pulumi .NET SDK?
    šŸ‘ 1
    t
    w
    • 3
    • 6
  • c

    chilly-hairdresser-56259

    10/12/2021, 10:33 PM
    Hello, I was curious if anyone could lend a hand, for the life of me I can't figure out what I am doing wrong with this apply statement. The end results of the preview do not include the bucket to which I want to assign the arn via the
    Apply
    statement.
    Untitled.txt
    g
    s
    • 3
    • 6
  • c

    chilly-magazine-4507

    10/21/2021, 12:10 AM
    Hi all, I am specifying a name on the azure resource group, but I am still getting and autonamed resource group
    b
    • 2
    • 2
  • l

    limited-carpenter-34991

    10/22/2021, 9:47 AM
    Hi all, i trying to find a way to execute a script during a pulumi deployment. Use case: entity framework migrations I want to execute the ef core migrations after the azure sql database is been deployed. Is there a way to execute / deploy this ef core schema during a pulumi stack deployment ?
    q
    • 2
    • 1
  • m

    miniature-leather-70472

    10/22/2021, 3:58 PM
    Slightly odd issue, I've found that when working on a Pulumi project in Visual Studio 2022, when I run the Pulumi CLI locally to deploy, it works fine but for some reason Visual Studio decides that it doesn't recognise any of the Pulumi classes in it's intellisense until I run a build in VS again. Not a big deal, but annoying. Anyone else seen this?
    b
    w
    b
    • 4
    • 5
  • c

    chilly-hairdresser-56259

    10/25/2021, 8:45 PM
    Hello, I was curious if anyone ran into issues with TargetGroup Deregistration delay setting? I was sitting on pulumi_aws v2.14.1 and ran into this issue. Previously we just defaulted the deregristration delay, which is 300 seconds. However, when we added better health check endpoints we are getting an error stating that the deserialization is expecting a
    System.Double
    rather than a
    System.String
    even though the argument indicates
    int
    not
    System.String
    Error in the comments.
    w
    s
    • 3
    • 12
  • r

    rapid-soccer-18092

    10/26/2021, 9:59 AM
    How do I provide the following YAML key-value pair array (representing env variables) in the Values input map of a Helm chart deployment? Yaml equivalent:
    env: []
         - name: DD_APM_ENABLED
           value: true
         - name: DD_APM_NON_LOCAL_TRAFFIC
           value: true
    Pulumi definition:
    var datadogChart = new Chart("datadog-chart",
        new ChartArgs
        {
            Chart = ChartName,
            Version = args.ChartVersion,
            Namespace = args.Namespace,
            Values = new Dictionary<string, object>
            {
                // Chart values schema can be found here: <https://github.com/DataDog/helm-charts/blob/main/charts/datadog/values.yaml>
                ["datadog"] = new Dictionary<string, object>
                {
                    ["apiKey"] = args.ApiKey,
                    ["site"] = "<http://datadoghq.eu|datadoghq.eu>",
                    ["apm"] = new Dictionary<string, object>
                    {
                        ["portEnabled"] = true,
                    },
                    // Below is incorrect - how do I provide this??
                    ["env"] = new List<Dictionary<string, object>>
                    {
                        new Dictionary<string, object>
                        {
                            ["name"] = "DD_APM_ENABLED",
                            ["value"] = true
                        },
                        new Dictionary<string, object>
                        {
                            ["name"] = "DD_APM_NON_LOCAL_TRAFFIC",
                            ["value"] = true
                        }
                    }
                }
            });
    c
    w
    • 3
    • 6
  • w

    worried-city-86458

    10/27/2021, 6:16 AM
    How do I enable the equivalent of verbose logging when using the dotnet automation api?
    b
    • 2
    • 3
  • a

    able-camera-57198

    11/02/2021, 2:45 PM
    Quick question on .NET 6.. Is there any preview copy of pulumi that's working with it yet that I can try out?
  • a

    able-camera-57198

    11/02/2021, 5:47 PM
    Another question on how to work with
    Get*
    methods:
    var defaultNetwork = GetNetwork.InvokeAsync(new()
            {
                Network = "default",
            });
    • Am I supposed to await this? If so, how do I do so when Pulumi stacks all appear to be in constructors? • Is there any way to wrap my use of
    GetNetwork
    with some equivalent to
    DependsOn
    ? Here's the equivalent that I'm currently doing in Terraform:
    data "google_compute_network" "default" {
    
      depends_on = [
        google_project_service.compute,
      ]
    
      name = "default"
    }
    t
    • 2
    • 5
  • e

    enough-garden-22763

    11/03/2021, 9:00 PM
    3.17.0 release is out - special interest for .NET users https://github.com/pulumi/pulumi/blob/master/CHANGELOG.md#3170-2021-11-03 - it contains a very important fix for one of the bugs I unfortunately introduced.
    [sdk/dotnet] - Fix a race condition when detecting exceptions in stack creation.Ā #8294
    - the exception reporting is a lot more reliable with this release.
    ā¤ļø 3
    šŸ‘ 1
  • f

    full-winter-70537

    11/10/2021, 6:12 AM
    Is there a way to "migrate" a database in Pulumi, including data? I have tried the "Copy"
    CreateMode
    but after I've copied it and remove the "Copy" create mode, it thinks it's a state change and wants to delete that database and create new one.
    r
    l
    • 3
    • 3
  • b

    brave-winter-60074

    11/18/2021, 7:11 AM
    Hi everyone. We just opgraded to the new Macbook Pros with m1max cpu's and to the newest release of dotnet 6. We are not able to run pulumi up on our new setup, any ideas of what we do wrong? everything is installed with homebrew as we always do. We get the following error:
    Diagnostics:
    pulumišŸ˜›ulumi:Stack (services-orchestration-dev-stejsj-t2): A fatal error occurred. The required library libhostfxr.dylib could not be found. If this is a self-contained application, that library should exist in [/Users/sejensen/dev/chipper-orchestration/infra/bin/Debug/netcoreapp3.1/]. If this is a framework-dependent application, install the runtime in the global location [/usr/local/share/dotnet/x64] or use the DOTNET_ROOT environment variable to specify the runtime location or register the runtime location in [/etc/dotnet/install_location]. The .NET Core runtime can be found at: - https://aka.ms/dotnet-core-applaunch?missing_runtime=true&amp;arch=x64&amp;rid=osx.10.17-x64 error: an unhandled error occurred: Program exited with non-zero exit code: 131
    t
    • 2
    • 3
  • m

    millions-journalist-34868

    11/20/2021, 11:00 PM
    Hi everyone. I was wondering how you organize you infrastructure code ? Samples I have currenlty seen often are contained in a single file that describe the whole stack. But the samples I have seen are Pulumi samples which are simple, does someone have a big project to share as an example to show how the code is organized.
    šŸ’” 1
    w
    p
    +2
    • 5
    • 24
  • a

    acoustic-rose-89683

    11/24/2021, 6:39 AM
    Hey folks, is there a way to provide
    runtime:binary
    option through cli ? Or maybe other methods to dynamically change the source which is used to by the cli?
    b
    • 2
    • 3
  • b

    boundless-tailor-35598

    11/30/2021, 3:54 PM
    I am trying to upgrade to more recent versions of Pulumi.Aws and was previously using an old version 3.35. I have a separate networking stack that is reference by an application stack. I have found it impossible to upgrade to the latest versions but have managed to upgrade to Pulumi.Aws 4.5.1. Going to version 4.6.0 in the networking stack means the application stack then hangs when reading the stack reference on a pulumi up. I have tried explicitly referencing later versions of Pulumi in case there is an issue here. Starting to run out of things to try. Has anyone had these issues where they reference another stack and it hangs when running the CLI in preview mode? Any ideas how to diagnose?
  • b

    boundless-tailor-35598

    12/01/2021, 1:59 PM
    Further to the above, is anyone aware of any limiations on Stack References? For example, can you have a Stack using Pulumi.Aws v 4.30.0 and another Stack that has a Stack Reference to it that uses a different Pulumi.Aws version? I presume this is a supported setup?
    b
    • 2
    • 9
  • b

    boundless-tailor-35598

    12/01/2021, 3:48 PM
    Is there any way to debug or diagnose the cause of a hang in pulumi up other than the verbose logging described here https://www.pulumi.com/docs/troubleshooting/ . Unfortunately verbose logging does not reveal the reason for my issue, where the preview hangs on reading a stack reference. I have changed the version of the stack that is referenced and compared the json stack output and see nothing of consequence other than different versions for the providers. If there is a way to know what operation this is hanging on it would be very useful.
    g
    • 2
    • 1
  • a

    able-camera-57198

    12/03/2021, 2:56 AM
    Is there any way to tell pulumi to not compile a project twice?
    b
    w
    • 3
    • 6
  • f

    flaky-school-82490

    12/12/2021, 4:16 PM
    Is there a way to prevent pulumi from updating an Output if it has already been set?
    public MyStack()
    {
    // only do this if MyOutput has not been set by a previous deployment
    MyOutput= MyValue;
    }
    [Output]
    public Output<string> MyOutput { get; set; }
    t
    • 2
    • 6
  • s

    sparse-butcher-73713

    12/22/2021, 1:04 PM
    anyone seen this error?
    Grpc.Core.RpcException: Status(StatusCode="Unknown", Detail="setting args: copying input "helmOptions": provider.IngressControllerArgs.HelmOptions is typed as *helm.ReleaseType but must be a type that implements pulumi.Input or pulumi.Output for input with dependencies", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1640178247.750000000","description":"Error received from peer ipv4:127.0.0.1:57858","file":"..\..\..\src\core\lib\surface\<http://call.cc|call.cc>","file_line":1068,"grpc_message":"setting args: copying input "helmOptions": provider.IngressControllerArgs.HelmOptions is typed as *helm.ReleaseType but must be a type that implements pulumi.Input or pulumi.Output for input with dependencies","grpc_status":2}")
           at async Task<RegisterResourceResponse> Pulumi.GrpcMonitor.RegisterResourceAsync(Resource resource, RegisterResourceRequest request)
           at async Task<(string urn, string id, Struct data, ImmutableDictionary<string, ImmutableHashSet<Resource>> dependencies)> Pulumi.Deployment.RegisterResourceAsync(Resource resource, bool remote, Func<string, Resource> newDependency, ResourceArgs args, ResourceOptions options)
           at async Task<(string urn, string id, Struct data, ImmutableDictionary<string, ImmutableHashSet<Resource>> dependencies)> Pulumi.Deployment.ReadOrRegisterResourceAsync(Resource resource, bool remote, Func<string, Resource> newDependency, ResourceArgs args, ResourceOptions options)
           at async Task Pulumi.Deployment.CompleteResourceAsync(Resource resource, bool remote, Func<string, Resource> newDependency, ResourceArgs args, ResourceOptions options, ImmutableDictionary<string, IOutputCompletionSource> completionSources)
           at async Task<T> Pulumi.Output<T>.GetValueAsync(T whenUnknown)
           at async Task<string> Pulumi.Deployment+EngineLogger.TryGetResourceUrnAsync(Resource resource)
  • s

    sparse-butcher-73713

    12/22/2021, 1:04 PM
    related to this: https://github.com/pulumi/pulumi-kubernetes-ingress-nginx
  • s

    sparse-butcher-73713

    12/22/2021, 1:05 PM
    in response to this code:
    var ingress = new IngressController("nginx", new IngressControllerArgs
            {
                HelmOptions = new ReleaseArgs
                {
                    Chart = "ingress-nginx",
                    Namespace = appServicesNamespace.Metadata.Apply(x => x.Name)
                },
                Controller = new ControllerArgs
                {
                    PublishService = new ControllerPublishServiceArgs
                    {
                        Enabled = true
                    }
                }
            });
    b
    b
    • 3
    • 19
  • s

    sparse-butcher-73713

    12/22/2021, 4:31 PM
    ok next problem today šŸ˜„
  • s

    sparse-butcher-73713

    12/22/2021, 4:31 PM
    has anyone managed to put a k8s cluster as dependency for a Helm Release?
  • s

    sparse-butcher-73713

    12/22/2021, 4:32 PM
    I'm trying to create an nginx ingress after the k8s cluster on the same stack and pulumi tries to connect to the (not existing yet) cluster
    t
    • 2
    • 8
  • s

    sparse-butcher-73713

    12/22/2021, 4:32 PM
    I tried
    DependsOn = cluster
    and
    Parent = cluster
    but nothing - also stumbled upon to this https://github.com/pulumi/pulumi-kubernetes/issues/861 but seems to have been solved for the opposite problem
  • m

    millions-journalist-34868

    12/27/2021, 3:14 PM
    Any idea when Pulumi csharp templates will default to dotnet 6 instead of dotnet 3.1 ?
    šŸ‘ 3
  • w

    wet-sunset-4939

    01/09/2022, 6:25 AM
    Hi All, The Dynamic resource is awesome feature that Pulumi providing, However it is not available in .NET yet. Is there any workaround or time line to bring this feature available in .NET?
    b
    e
    • 3
    • 2
  • w

    wet-sunset-4939

    01/10/2022, 1:17 PM
    Hi All, I hope pulumi able to recover the soft-deleted Key Vault Secret and update with a new value one however, Seems it is impossible with Pulumi Native. I have developed a custom dynamic resource in NodeJs but dynamic resource is not available in .Net. Is there any alternative ways?
    e
    • 2
    • 1
Powered by Linen
Title
w

wet-sunset-4939

01/10/2022, 1:17 PM
Hi All, I hope pulumi able to recover the soft-deleted Key Vault Secret and update with a new value one however, Seems it is impossible with Pulumi Native. I have developed a custom dynamic resource in NodeJs but dynamic resource is not available in .Net. Is there any alternative ways?
e

echoing-dinner-19531

01/10/2022, 1:55 PM
Could you wrap your nodejs code up in a multi-language component and then use it from dotnet?
View count: 1