Depending on the type, you may associate several groups to one instance, which the EC2 will treat effectively as a single ruleset
Có thể dùng AWS CLI Command [aws lamba update-function-configuration] để update giá trị của variable
hiện tại giá trị của variable INSTANCE là i-xxxxxxxxxxxxxxxxx, bạn muốn thêm EC2 instance là i-yyyyyyyyyyyyyyyyy bạn có thể làm như sau:
aws lambda update-function-configuration --function-name <tên_lambda_function_của_bạn> --environment Variables={INSTANCE=i-xxxxxxxxxxxxxxxxx_i-yyyyyyyyyyyyyyyyy}
Ở đây, các EC2 instance id được nối với nhau bởi dấu _