busy-umbrella-36067
12/05/2019, 9:22 PMmicroscopic-florist-22719
busy-umbrella-36067
12/05/2019, 9:32 PMexport function createS3Bucket(
name: string,
expireDays: number,
opts: pulumi.ComponentResourceOptions
): aws.s3.Bucket {
// expire old backups
let bucket = new aws.s3.Bucket(
name,
{
lifecycleRules: [
{
enabled: true,
expiration: {
days: expireDays
}
}
],
forceDestroy: true
},
opts
)
return bucket
}
if (!this.args.isTest) {
s3Bucket = new pulumiAWS.s3.Bucket(
'ripple',
{
lifecycleRules: [
{
enabled: true,
expiration: {
days: 7
}
}
],
forceDestroy: true
},
{ parent: this }
)
microscopic-florist-22719
lifecycleRules
; I'll take a look.busy-umbrella-36067
12/05/2019, 11:19 PMmicroscopic-florist-22719
busy-umbrella-36067
12/06/2019, 4:40 PMmicroscopic-florist-22719
kind-mechanic-53546
12/11/2019, 3:26 AMlifecycleRules
block to existing stack => Failed to deploy => Commented out lifecycleRules
block => failed to deploy => destroyed stack ok => deployed stack ok => Uncommented lifecycleRules
block => deployed ok => added output => panic: interface conversion: interface {} is nil, not map[string]interface {}
Whew, that's a lot, was there a bug logged for this?microscopic-florist-22719