@deployfoundation/foundation-deploy 0.2.35 → 0.2.37
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/bin/app.js
CHANGED
|
@@ -1106,6 +1106,7 @@ class FoundationApi extends cdk2.Stack {
|
|
|
1106
1106
|
sid: "ReadRuntimeEndpointVersion",
|
|
1107
1107
|
actions: ["bedrock-agentcore:GetAgentRuntimeEndpoint"],
|
|
1108
1108
|
resources: [
|
|
1109
|
+
`arn:${this.partition}:bedrock-agentcore:${this.region}:${this.account}:runtime/${names.runtimeName}*`,
|
|
1109
1110
|
`arn:${this.partition}:bedrock-agentcore:${this.region}:${this.account}:runtime/${names.runtimeName}*/runtime-endpoint/*`
|
|
1110
1111
|
]
|
|
1111
1112
|
}));
|
|
@@ -1438,6 +1439,11 @@ class FoundationApi extends cdk2.Stack {
|
|
|
1438
1439
|
actions: ["dynamodb:GetItem", "dynamodb:PutItem", "dynamodb:DeleteItem"],
|
|
1439
1440
|
resources: [upworkApprovalTable.tableArn]
|
|
1440
1441
|
}));
|
|
1442
|
+
upworkProxyRole.addToPolicy(new iam2.PolicyStatement({
|
|
1443
|
+
sid: "UpworkDraftDataKey",
|
|
1444
|
+
actions: ["kms:Decrypt", "kms:Encrypt", "kms:GenerateDataKey", "kms:DescribeKey"],
|
|
1445
|
+
resources: [props.dataKey.keyArn]
|
|
1446
|
+
}));
|
|
1441
1447
|
this.upworkProxyFunction = new lambda.Function(this, "UpworkProxyFunction", {
|
|
1442
1448
|
functionName: names.upworkProxyFunctionName,
|
|
1443
1449
|
runtime: lambda.Runtime.NODEJS_22_X,
|
package/dist/src/index.js
CHANGED
package/package.json
CHANGED
package/src/stacks/api-stack.ts
CHANGED
|
@@ -534,7 +534,10 @@ export class FoundationApi extends cdk.Stack {
|
|
|
534
534
|
new iam.PolicyStatement({
|
|
535
535
|
sid: "ReadRuntimeEndpointVersion",
|
|
536
536
|
actions: ["bedrock-agentcore:GetAgentRuntimeEndpoint"],
|
|
537
|
+
// AgentCore authorizes this call against BOTH the runtime and the
|
|
538
|
+
// endpoint (CloudTrail, 2026-10-11): the endpoint alone is denied.
|
|
537
539
|
resources: [
|
|
540
|
+
`arn:${this.partition}:bedrock-agentcore:${this.region}:${this.account}:runtime/${names.runtimeName}*`,
|
|
538
541
|
`arn:${this.partition}:bedrock-agentcore:${this.region}:${this.account}:runtime/${names.runtimeName}*/runtime-endpoint/*`,
|
|
539
542
|
],
|
|
540
543
|
}),
|
|
@@ -1006,6 +1009,15 @@ export class FoundationApi extends cdk.Stack {
|
|
|
1006
1009
|
resources: [upworkApprovalTable.tableArn],
|
|
1007
1010
|
}),
|
|
1008
1011
|
);
|
|
1012
|
+
// The approval table is encrypted with the instance data key: without it
|
|
1013
|
+
// every draft write fails (Sky, 2026-10-11, prepare_proposal proxy_error).
|
|
1014
|
+
upworkProxyRole.addToPolicy(
|
|
1015
|
+
new iam.PolicyStatement({
|
|
1016
|
+
sid: "UpworkDraftDataKey",
|
|
1017
|
+
actions: ["kms:Decrypt", "kms:Encrypt", "kms:GenerateDataKey", "kms:DescribeKey"],
|
|
1018
|
+
resources: [props.dataKey.keyArn],
|
|
1019
|
+
}),
|
|
1020
|
+
);
|
|
1009
1021
|
this.upworkProxyFunction = new lambda.Function(this, "UpworkProxyFunction", {
|
|
1010
1022
|
functionName: names.upworkProxyFunctionName,
|
|
1011
1023
|
runtime: lambda.Runtime.NODEJS_22_X,
|