Cloudformation support for EventSourceMapping (#3045)
* change line position for uuid and last_modified because they're not input parameters * add event_source_arn validator and setter * refactor batch_size as setter * add helper function to parse arn and return source service * fix for EventSource's create_from_cfn, there was no reference in the lambda object for the esm if created by cfn * add esm deletion by cloudformation * remove unused variable in test * add cfn's update * add complete implementation of delete_from_cfn * blacked changed files * fix test with invalid batchsize for sqs * Dynamodb2 Table - Bugfix for localindex and implemented get_cfn_attributes * Dynamodb2 eventsource - fix test to use StreamArn attribute * Lambda Test - fix test_update_event_source_mapping
This commit is contained in:
parent
849f16ff2d
commit
0dd41d4c32
5 changed files with 313 additions and 52 deletions
|
|
@ -541,13 +541,14 @@ def test_create_stack_lambda_and_dynamodb():
|
|||
"ReadCapacityUnits": 10,
|
||||
"WriteCapacityUnits": 10,
|
||||
},
|
||||
"StreamSpecification": {"StreamViewType": "KEYS_ONLY"},
|
||||
},
|
||||
},
|
||||
"func1mapping": {
|
||||
"Type": "AWS::Lambda::EventSourceMapping",
|
||||
"Properties": {
|
||||
"FunctionName": {"Ref": "func1"},
|
||||
"EventSourceArn": "arn:aws:dynamodb:region:XXXXXX:table/tab1/stream/2000T00:00:00.000",
|
||||
"EventSourceArn": {"Fn::GetAtt": ["tab1", "StreamArn"]},
|
||||
"StartingPosition": "0",
|
||||
"BatchSize": 100,
|
||||
"Enabled": True,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue