Skip to content

Commit

Permalink
Restore comment
Browse files Browse the repository at this point in the history
  • Loading branch information
palpatim committed Dec 16, 2024
1 parent aa286c1 commit 7ac8095
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ export class DynamoModelResourceGenerator extends ModelResourceGenerator {
const role = new iam.Role(scope, ModelResourceIDs.ModelTableIAMRoleID(def!.name.value), {
roleName,
assumedBy: new iam.ServicePrincipal('appsync.amazonaws.com'),
// Use an inline policy here to prevent unnecessary policy CloudFormation resources from being generated. Note that CDK will still
// create a CFN resource for `<modelName>IAMRoleDefaultPolicy`
inlinePolicies: {
DynamoDBAccess: new iam.PolicyDocument({
statements: [
Expand Down

0 comments on commit 7ac8095

Please sign in to comment.