• h

    happy-grass-18954

    1 month ago
    Is anyone using AWS
    assumeRole
    from Inline program? Appreciate an example if someone has one. It’s pretty straight-forward to set AWS region
    await stack.SetConfigAsync("aws:region", new ConfigValue("us-east-1"));
    I’m trying to figure out how to pass in the assumeRole settings using the same approach as the region.
    h
    w
    +1
    8 replies
    Copy to Clipboard
  • l

    lemon-controller-56705

    1 month ago
    Hello! I’m trying to run the CLI on an M1 Mac, and I get the following exception. This is a known problem that the grpc plugin are not available for osx-arm64, but I’m not sure why the CLI wants to run these during a
    pulumi up
    operation.
    Unhandled exception. System.IO.FileNotFoundException: Error loading native library. Not found in any of the possible locations: /Users/tm/git/pronghorn/Programs/OperatingEnvironment/bin/Debug/net6.0/libgrpc_csharp_ext.arm64.dylib,/Users/tm/git/pronghorn/Programs/OperatingEnvironment/bin/Debug/net6.0/runtimes/osx-arm64/native/libgrpc_csharp_ext.arm64.dylib,/Users/tm/git/pronghorn/Programs/OperatingEnvironment/bin/Debug/net6.0/../../runtimes/osx-arm64/native/libgrpc_csharp_ext.arm64.dylib
           at Grpc.Core.Internal.UnmanagedLibrary.FirstValidLibraryPath(String[] libraryPathAlternatives)
           at Grpc.Core.Internal.UnmanagedLibrary..ctor(String[] libraryPathAlternatives)
           at Grpc.Core.Internal.NativeExtension.LoadNativeMethodsUsingExplicitLoad()
           at Grpc.Core.Internal.NativeExtension.LoadNativeMethods()
           at Grpc.Core.Internal.NativeExtension..ctor()
           at Grpc.Core.Internal.NativeExtension.Get()
           at Grpc.Core.Internal.NativeMethods.Get()
           at Grpc.Core.GrpcEnvironment.GrpcNativeInit()
           at Grpc.Core.GrpcEnvironment..ctor()
           at Grpc.Core.GrpcEnvironment.AddRef()
           at Grpc.Core.Channel..ctor(String target, ChannelCredentials credentials, IEnumerable`1 options)
           at Pulumi.GrpcEngine..ctor(String engine)
           at Pulumi.Deployment..ctor()
           at Pulumi.Deployment.<>c__102`1.<RunAsync>b__102_0()
           at Pulumi.Deployment.CreateRunnerAndRunAsync(Func`1 deploymentFactory, Func`2 runAsync)
           at Program.<Main>$(String[] args) in /Users/tm/git/pronghorn/Programs/OperatingEnvironment/Program.cs:line 9
           at Program.<Main>(String[] args)
     
        error: an unhandled error occurred: Program exited with non-zero exit code: 134
    l
    t
    4 replies
    Copy to Clipboard
  • h

    high-france-81657

    1 month ago
    Hi! Has anyone used OutputUtilities.CreateUnknown lately? It seems to hang my pulumi program.
    h
    e
    +1
    22 replies
    Copy to Clipboard
  • h

    high-france-81657

    1 month ago
    (dotnet 6, windows, latest everything)
  • h

    high-france-81657

    1 month ago
    Code:
    async Task<Output<string>> x()
            {
                return OutputUtilities.CreateUnknown("false");
            }
    
    output = Output.Create(x()).Apply(_ => _);
  • c

    clever-address-74879

    1 month ago
    Hey #dotnet I'm trying to do something like this
    var resourceGroup = ResourceGroup.Get(
            $"rg-{stackName}",
            $"/subscriptions/000-0000-0000-00000-0000/resourceGroups/rg-{stackName}");
    
        var managedEnvironment = await AzureNative.App.GetManagedEnvironment.InvokeAsync(new AzureNative.App.GetManagedEnvironmentArgs
        {
            ResourceGroupName = resourceGroup.Name,
            EnvironmentName = "AzureNative",
        });
    But the
    resourceGroup.Name
    reference doesn't work. I'm still not fully comfortable with these Output<T> types, and I'm not exactly sure how to get the string value out.
    c
    b
    17 replies
    Copy to Clipboard
  • c

    clever-address-74879

    1 month ago
    #dotnet another question! When I do this:
    var resourceGroupName = sharedStack.GetOutput("resourceGroupName");
    I get a Output<object?>. How do I get a string value out? Any convenient methods to help here?
    c
    1 replies
    Copy to Clipboard
  • r

    ripe-russia-4239

    1 month ago
    Hi all, I need to run some SQL Server sprocs during my deployment, to enable/disable certain features. I'm looking for a flag equivalent to
    IsPreview
    but to indicate whether the deployment is an
    up
    or a
    destroy
    . I've not found anything yet, which leads me to believe I'm going about this the wrong way. Any advice on a better approach?
    r
    w
    2 replies
    Copy to Clipboard
  • e

    enough-ability-9030

    1 month ago
    I’d much rather just do it in one fell swoop rather than run pulumi then run another thing
  • e

    enough-ability-9030

    1 month ago
    How do you use an output to say write it to file? I’m getting a string back and I need to write it to a file and use it elsewhere.
    e
    b
    3 replies
    Copy to Clipboard