2022-07-21 19:04:02 +00:00
|
|
|
using System.Collections.Generic;
|
2023-03-24 11:43:46 +00:00
|
|
|
using System.Linq;
|
2020-06-29 23:33:52 +00:00
|
|
|
using Pulumi;
|
|
|
|
using Aws = Pulumi.Aws;
|
|
|
|
|
2022-07-21 19:04:02 +00:00
|
|
|
return await Deployment.RunAsync(() =>
|
2020-06-29 23:33:52 +00:00
|
|
|
{
|
2022-07-21 19:04:02 +00:00
|
|
|
var provider = new Aws.Provider("provider", new()
|
2020-06-29 23:33:52 +00:00
|
|
|
{
|
2022-07-21 19:04:02 +00:00
|
|
|
Region = "us-west-2",
|
|
|
|
});
|
|
|
|
|
|
|
|
var bucket1 = new Aws.S3.Bucket("bucket1", new()
|
|
|
|
{
|
|
|
|
}, new CustomResourceOptions
|
|
|
|
{
|
|
|
|
Provider = provider,
|
2024-03-25 15:34:54 +00:00
|
|
|
DependsOn =
|
2020-06-29 23:33:52 +00:00
|
|
|
{
|
2024-04-09 21:11:25 +00:00
|
|
|
provider,
|
2022-07-21 19:04:02 +00:00
|
|
|
},
|
|
|
|
Protect = true,
|
|
|
|
IgnoreChanges =
|
2020-06-29 23:33:52 +00:00
|
|
|
{
|
2022-07-21 19:04:02 +00:00
|
|
|
"bucket",
|
|
|
|
"lifecycleRules[0]",
|
2024-03-25 15:34:54 +00:00
|
|
|
},
|
2022-07-21 19:04:02 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
});
|
2020-06-29 23:33:52 +00:00
|
|
|
|