Reads:54963Replies:3
Security Groups linking with a MySQL
Is it possible to link ECS security groups with a MySQL database such that if I remove a IP from MySQL immediately it gets removed from security group. Like syncing IP from MySQL with server every 2 seconds or so..
If so, could someone give some script for how to do such? |
|
1st Reply#
Posted time:Jan 29, 2018 3:16 AM
Hi, what you want to acheive?
Did you mean ECS Instance IP to sync with MySQL DB IP? Security groups are used for access just like firewall. IP can not be assigned to security group but IP is assigned to ECS instance and ECS is linked to minimum one secuirty group.( default or custom). |
|
|
2nd Reply#
Posted time:Jan 29, 2018 17:35 PM
In security groups you put cidr blocks right? I'll in a mysql have 32 entries which will keep on changing. I want that through api I can sync security group with the mysql to allow only those 32cidr blocks through a port. Like syncing every 2 seconds .
|
|
3rd Reply#
Posted time:Jan 30, 2018 1:16 AM
I suggest you to open ticket with Alibaba cloud support. They will give resolution for this, or correspond backend product team.
|
|
|