[{"data":1,"prerenderedAt":86},["ShallowReactive",2],{"pattern-dynamodb-global-table-cross-account-read-typescript-cdk":3,"pattern-group-dynamodb-global-table-cross-account-read-typescript-cdk":6},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":22,"language":29,"level":30,"meta":31,"patternArch":32,"patternGroup":6,"patternGroupLabel":6,"resources":73,"stem":81,"testing":82,"videoId":6,"__hash__":85},"patterns\u002Fpatterns\u002Fdynamodb-global-table-cross-account-read-typescript-cdk.json","Amazon DynamoDB Global Tables with Cross-Account Read Access",null,{"text":8},[9],"cdk destroy -c replicaRegion=\u003CREPLICA_REGION>",[11],"content\u002Fcontributors\u002Fnithin-chandran-r.json",{"text":13},[14],"cdk deploy --parameters ReplicaAccountId=\u003CREADER_ACCOUNT_ID> --parameters ExternalId=\u003CEXTERNAL_ID> -c replicaRegion=us-west-2","Deploy an Amazon DynamoDB global table with an AWS Identity and Access Management (IAM) role that grants another AWS account read-only access in both Regions.","json","AWS CDK",{"template":19},{"patternPath":20,"templateFile":21},"dynamodb-global-table-cross-account-read\u002Ftypescript\u002Fcdk","lib\u002Fdynamodb-global-table-cross-account-read-stack.ts",{"headline":23,"text":24},"How it works",[25,26,27,28],"This pattern creates an Amazon DynamoDB global table (same-account, multi-Region) with an IAM role for cross-account read access.","The reader account assumes the IAM role with an external ID and can query the table in either Region.","DynamoDB handles replication automatically with sub-second latency between Regions.","Point-in-time recovery is enabled for data protection.","TypeScript","300",{},{"group1":33,"group2":39,"icon1":45,"icon2":50,"icon3":54,"icon4":59,"line1":62,"line2":66,"line3":69,"line4":71},{"x":34,"y":35,"w":36,"h":37,"label":38},2,35,23,65,"Reader account",{"x":40,"y":41,"w":42,"h":43,"label":44},30,5,68,128,"Owner account",{"x":46,"y":47,"service":48,"label":49},13,62,"icon-internet","AWS CLI\nReader workload",{"x":51,"y":47,"service":52,"label":53},45,"iam","AWS IAM\nCross-account role",{"x":55,"y":56,"service":57,"label":58},80,25,"dynamodb","Amazon DynamoDB\nSource Region",{"x":55,"y":60,"service":57,"label":61},100,"Amazon DynamoDB\nReplica Region",{"from":63,"to":64,"label":65},"icon1","icon2","AssumeRole",{"from":64,"to":67,"label":68},"icon3","GetItem,\nQuery",{"from":64,"to":70,"label":68},"icon4",{"from":67,"to":70,"label":72},"Replication",{"bullets":74},[75,78],{"text":76,"link":77},"IAM tutorial: Delegate access across AWS accounts using IAM roles","https:\u002F\u002Fdocs.aws.amazon.com\u002FIAM\u002Flatest\u002FUserGuide\u002Ftutorial_cross-account-with-roles.html",{"text":79,"link":80},"DynamoDB Global Tables Documentation","https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002FGlobalTables.html","patterns\u002Fdynamodb-global-table-cross-account-read-typescript-cdk",{"text":83},[84],"See the README for testing instructions.","76Tus5Ioah5iHz9JxO9gILS8MpKS231xVvhdW2zTDGc",1795084462817]