dcl-ops-lib 9.9.1 → 9.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/buildStatic.js +8 -0
  2. package/package.json +1 -1
package/buildStatic.js CHANGED
@@ -44,6 +44,11 @@ function buildStatic(staticSite) {
44
44
  }
45
45
  const contentBucket = new aws.s3.Bucket(slug + "contentBucket", bucketInfo, {
46
46
  protect,
47
+ // buildStatic never sets the legacy bucket's inline `lifecycleRules`. Ignore that field
48
+ // so a standalone aws.s3.BucketLifecycleConfigurationV2 (defined by the consumer) can own
49
+ // the bucket lifecycle — otherwise this resource reads it back on refresh and deletes it,
50
+ // which flaps against the standalone resource on every `pulumi up`.
51
+ ignoreChanges: ["lifecycleRules"],
47
52
  });
48
53
  if (staticSite.objectOwnership) {
49
54
  new aws.s3.BucketOwnershipControls(`${contentBucket.bucket}OwnershipControls`, {
@@ -60,6 +65,9 @@ function buildStatic(staticSite) {
60
65
  tags: logsBucketTags,
61
66
  }, {
62
67
  protect,
68
+ // See contentBucket: ignore the legacy inline lifecycleRules so a standalone
69
+ // lifecycle resource can own it without flapping.
70
+ ignoreChanges: ["lifecycleRules"],
63
71
  });
64
72
  const distributionArgs = {
65
73
  enabled: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dcl-ops-lib",
3
- "version": "9.9.1",
3
+ "version": "9.9.2",
4
4
  "scripts": {
5
5
  "build": "tsc && cp bin/* . && node test.js",
6
6
  "test": "tsc -p tsconfig.test.json && ENVIRONMENT=dev node bin-test/rateLimiting.test.js",