Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix: sfs logging bucket ACL depends on ownership controls (#3015)

Eric Hayes7559105b7888
diff --git a/infra/stacks/static-file-service/distribution.ts b/infra/stacks/static-file-service/distribution.ts
index 75f917efd8..6fb0003b6a 100644
--- a/infra/stacks/static-file-service/distribution.ts
+++ b/infra/stacks/static-file-service/distribution.ts
@@ -116,7 +116,7 @@ export class StaticFileCloudFront extends pulumi.ComponentResource {
{ parent: this }
);
- new aws.s3.BucketOwnershipControls(
+ const logBucketOwnership = new aws.s3.BucketOwnershipControls(
`${name}-cf-logs-ownership`,
{
bucket: logBucket.id,
@@ -139,7 +139,6 @@ export class StaticFileCloudFront extends pulumi.ComponentResource {
},
grants: [
{
- // Grant the awslogsdelivery account FULL_CONTROL for CloudFront standard logging
grantee: {
id: 'c4c1ede66af53448b93c283ce9448c4ba468c9432aa01d700d3878632f77d2d0',
type: 'CanonicalUser',
@@ -149,7 +148,7 @@ export class StaticFileCloudFront extends pulumi.ComponentResource {
],
},
},
- { parent: this }
+ { parent: this, dependsOn: [logBucketOwnership] }
);
new aws.s3.BucketLifecycleConfigurationV2(