Attaché Security group to aws elastic beanstalk service though terraform

Hi friends,
have anyone can guide me how to attached the existing security group on aws account during create the elastic beanstalk service, because i try many solution also not working fine, like declared the SG on variable can call/attach to elastic beanstalk.
i already attach 4 screen shot on this topic.
for terraform and terraform2 are not working
for terraform3 and terraform4 are working, but only able attached 1 SG in on times, but if need attach multi security group in 1 elastic beanstalk service, then not working.
can anyone give me advice or help for this case?
Thank you
terraform
terraform2
terraform3
terraform4