Using Console
Using CLI
Using Python
boto3
library in Python. Here’s an example code snippet that creates a new security group:modify_db_instance
method from the boto3
library. Here’s an example code snippet that assigns the new security group to the PostgreSQL instance:describe_db_instances
method from the boto3
library. Here’s an example code snippet that checks the security group rules: