mirror of https://github.com/pulumi/pulumi.git
32 lines
561 B
C#
32 lines
561 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using Pulumi;
|
|
using Aws = Pulumi.Aws;
|
|
|
|
return await Deployment.RunAsync(() =>
|
|
{
|
|
var provider = new Aws.Provider("provider", new()
|
|
{
|
|
Region = "us-west-2",
|
|
});
|
|
|
|
var bucket1 = new Aws.S3.Bucket("bucket1", new()
|
|
{
|
|
}, new CustomResourceOptions
|
|
{
|
|
Provider = provider,
|
|
DependsOn =
|
|
{
|
|
provider,
|
|
},
|
|
Protect = true,
|
|
IgnoreChanges =
|
|
{
|
|
"bucket",
|
|
"lifecycleRules[0]",
|
|
},
|
|
});
|
|
|
|
});
|
|
|