mirror of https://github.com/pulumi/pulumi.git
21 lines
415 B
C#
21 lines
415 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using Pulumi;
|
|
using Random = Pulumi.Random;
|
|
|
|
return await Deployment.RunAsync(() =>
|
|
{
|
|
var randomPassword = new Random.RandomPassword("randomPassword", new()
|
|
{
|
|
Length = 16,
|
|
Special = true,
|
|
OverrideSpecial = "_%@",
|
|
});
|
|
|
|
return new Dictionary<string, object?>
|
|
{
|
|
["password"] = randomPassword.Result,
|
|
};
|
|
});
|
|
|