We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8262eec commit f459e0cCopy full SHA for f459e0c
backend/src/iac/backend-stack.ts
@@ -176,6 +176,17 @@ export class BackendStack extends cdk.Stack {
176
}),
177
);
178
179
+ // Add permission to read Perplexity API key from Secrets Manager
180
+ taskRole.addToPolicy(
181
+ new iam.PolicyStatement({
182
+ effect: iam.Effect.ALLOW,
183
+ actions: ['secretsmanager:GetSecretValue', 'secretsmanager:DescribeSecret'],
184
+ resources: [
185
+ `arn:aws:secretsmanager:${this.region}:${this.account}:secret:med-ai-perplexity-key`,
186
+ ],
187
+ }),
188
+ );
189
+
190
// Add Amazon Textract permissions for document analysis
191
taskRole.addToPolicy(
192
new iam.PolicyStatement({
0 commit comments