@wraps.dev/cli 3.9.0 → 3.9.1
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.
package/dist/cli.js
CHANGED
|
@@ -37233,7 +37233,6 @@ Run ${pc17.cyan("wraps email init")} to deploy infrastructure first.
|
|
|
37233
37233
|
const smsConfig = metadata.services.sms?.config;
|
|
37234
37234
|
const policy = buildConsolePolicyDocument(emailConfig, smsConfig);
|
|
37235
37235
|
const sendingEnabled = !emailConfig || emailConfig.sendingEnabled !== false;
|
|
37236
|
-
const eventTracking = emailConfig?.eventTracking;
|
|
37237
37236
|
const emailArchiving = emailConfig?.emailArchiving;
|
|
37238
37237
|
const smsEnabled = !!smsConfig;
|
|
37239
37238
|
const smsSendingEnabled = smsConfig && smsConfig.sendingEnabled !== false;
|
|
@@ -37347,9 +37346,6 @@ ${pc17.bold("Permissions:")}`);
|
|
|
37347
37346
|
console.log(
|
|
37348
37347
|
` ${pc17.green("\u2713")} DynamoDB read access (including DescribeTable)`
|
|
37349
37348
|
);
|
|
37350
|
-
if (eventTracking?.enabled) {
|
|
37351
|
-
console.log(` ${pc17.green("\u2713")} EventBridge and SQS access`);
|
|
37352
|
-
}
|
|
37353
37349
|
if (emailArchiving?.enabled) {
|
|
37354
37350
|
console.log(` ${pc17.green("\u2713")} Mail Manager Archive access`);
|
|
37355
37351
|
}
|
|
@@ -37411,7 +37407,7 @@ function buildConsolePolicyDocument(emailConfig, smsConfig) {
|
|
|
37411
37407
|
});
|
|
37412
37408
|
statements.push({
|
|
37413
37409
|
Effect: "Allow",
|
|
37414
|
-
Action: ["s3:
|
|
37410
|
+
Action: ["s3:ListBucket"],
|
|
37415
37411
|
Resource: "arn:aws:s3:::wraps-inbound-*"
|
|
37416
37412
|
});
|
|
37417
37413
|
statements.push({
|
|
@@ -37473,26 +37469,6 @@ function buildConsolePolicyDocument(emailConfig, smsConfig) {
|
|
|
37473
37469
|
"arn:aws:dynamodb:*:*:table/wraps-email-*/index/*"
|
|
37474
37470
|
]
|
|
37475
37471
|
});
|
|
37476
|
-
const eventTracking = emailConfig?.eventTracking;
|
|
37477
|
-
if (eventTracking?.enabled) {
|
|
37478
|
-
statements.push({
|
|
37479
|
-
Effect: "Allow",
|
|
37480
|
-
Action: ["events:PutEvents", "events:DescribeEventBus"],
|
|
37481
|
-
Resource: "arn:aws:events:*:*:event-bus/wraps-email-*"
|
|
37482
|
-
});
|
|
37483
|
-
}
|
|
37484
|
-
if (eventTracking?.enabled) {
|
|
37485
|
-
statements.push({
|
|
37486
|
-
Effect: "Allow",
|
|
37487
|
-
Action: [
|
|
37488
|
-
"sqs:SendMessage",
|
|
37489
|
-
"sqs:ReceiveMessage",
|
|
37490
|
-
"sqs:DeleteMessage",
|
|
37491
|
-
"sqs:GetQueueAttributes"
|
|
37492
|
-
],
|
|
37493
|
-
Resource: "arn:aws:sqs:*:*:wraps-email-*"
|
|
37494
|
-
});
|
|
37495
|
-
}
|
|
37496
37472
|
const emailArchiving = emailConfig?.emailArchiving;
|
|
37497
37473
|
if (emailArchiving?.enabled) {
|
|
37498
37474
|
statements.push({
|
|
@@ -37514,12 +37490,7 @@ function buildConsolePolicyDocument(emailConfig, smsConfig) {
|
|
|
37514
37490
|
if (inbound?.enabled) {
|
|
37515
37491
|
statements.push({
|
|
37516
37492
|
Effect: "Allow",
|
|
37517
|
-
Action: [
|
|
37518
|
-
"s3:HeadBucket",
|
|
37519
|
-
"s3:ListBucket",
|
|
37520
|
-
"s3:GetObject",
|
|
37521
|
-
"s3:GetObjectTagging"
|
|
37522
|
-
],
|
|
37493
|
+
Action: ["s3:ListBucket", "s3:GetObject", "s3:GetObjectTagging"],
|
|
37523
37494
|
Resource: [
|
|
37524
37495
|
"arn:aws:s3:::wraps-inbound-*",
|
|
37525
37496
|
"arn:aws:s3:::wraps-inbound-*/*"
|