Is there a programmatic (api) method of authorizing a particular IP addresses to access a particular EC2 instance, eg for RDP.
This could be done by either creating a security group with the IP address and adding the security group to an instance. Or, this could be done, by adding an IP address to a particular security group.
Use create-security-group if a security group doesn't already exist and then authorize-security-group-ingress to add the IP address to the group. Finally, if necessary, associate the security group with the instance with modify-instance-attribute .
The APIs are similarly named and a Java example is available.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.