I am using environment variables in Lambda to collect list of alarm names, then pass it to the AlarmNames field in Cloudwatch API cloudwatch.describe_alarms(AlarmNames=[])
Keep having error in type, the type that is accepted by the API is list and tuple.
env = os.environ['ALARM_NAMES']
response = cloudwatch.describe_alarms(
AlarmNames= env
)
this are the environment variables field for ALARM_NAMES: 'instance1-freediskspace C','instance2-freediskspace C','instance3-freediskspace C'