i have lambda function which creates new launch configuration by passing auto scale group name. it works and i have created code deploy and attached a trigger to execute Lambda function when deployment success. but i get this error
'targetASG': KeyError Traceback (most recent call last): File "/var/task/lambda_function.py", line 12, in lambda_handler ASG = asObj.describe_auto_scaling_groups(AutoScalingGroupNames=[event['targetASG']]) KeyError: 'targetASG'
targetASG is my parameter but i don't see anywhere that i can define that (triggers,SNS). how can i pass this parameter from code deploy?