pulumi/tests/integration/stack_reference/dotnet/Program.cs
Mikhail Shilkov 7b3ec744f4
Stack References in .NET (#3511)
Stack References in .NET
2019-12-05 13:16:39 +01:00

25 lines
657 B
C#

// Copyright 2016-2019, Pulumi Corporation. All rights reserved.
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Pulumi;
class Program
{
static Task<int> Main(string[] args)
{
return Deployment.RunAsync(async () =>
{
var config = new Config();
var org = config.Require("org");
var slug = $"{org}/{Deployment.Instance.ProjectName}/{Deployment.Instance.StackName}";
var a = new StackReference(slug);
return new Dictionary<string, object>
{
{ "val", new[] { "a", "b" } }
};
});
}
}