File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -255,6 +255,7 @@ resource "aws_lambda_function" "id_sync_lambda" {
255255 ID_SYNC_PROC_LAMBDA_NAME = " imms-${ var . sub_environment } -id_sync_lambda"
256256 # NEW
257257 DELTA_TABLE_NAME = aws_dynamodb_table.delta- dynamodb- table.name
258+ IEDS_TABLE_NAME = aws_dynamodb_table.events- dynamodb- table.name
258259 PDS_ENV = var.pds_environment
259260 SPLUNK_FIREHOSE_NAME = module.splunk.firehose_stream_name
260261 }
@@ -267,6 +268,17 @@ resource "aws_lambda_function" "id_sync_lambda" {
267268 ]
268269}
269270
271+ data "aws_iam_policy_document" "delta_policy_document" {
272+ source_policy_documents = [
273+ templatefile (" ${ local . policy_path } /dynamodb.json" , {
274+ " dynamodb_table_name" : aws_dynamodb_table.delta- dynamodb- table.name
275+ }),
276+ templatefile (" ${ local . policy_path } /dynamodb_stream.json" , {
277+ " dynamodb_table_name" : aws_dynamodb_table.events- dynamodb- table.name
278+ })
279+ ]
280+ }
281+
270282resource "aws_cloudwatch_log_group" "id_sync_log_group" {
271283 name = " /aws/lambda/${ local . short_prefix } -id_sync_lambda"
272284 retention_in_days = 30
You can’t perform that action at this time.
0 commit comments