mirror of https://github.com/pulumi/pulumi.git
17 lines
368 B
C#
17 lines
368 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using Pulumi;
|
|
using Splat = Pulumi.Splat;
|
|
|
|
return await Deployment.RunAsync(() =>
|
|
{
|
|
var allKeys = Splat.GetSshKeys.Invoke();
|
|
|
|
var main = new Splat.Server("main", new()
|
|
{
|
|
SshKeys = allKeys.Apply(getSshKeysResult => getSshKeysResult.SshKeys).Select(__item => __item.Name).ToList(),
|
|
});
|
|
|
|
});
|
|
|