From the course: Complete Guide to AWS Software Deployment

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

AWS CodeDeploy: Adding database and security groups

AWS CodeDeploy: Adding database and security groups - Amazon Web Services (AWS) Tutorial

From the course: Complete Guide to AWS Software Deployment

AWS CodeDeploy: Adding database and security groups

- [Instructor] All right, to get this app up and running, it's going to take just a couple more steps. First, we're going to create an RDS Postgres database for this app to talk to, which is going to require a security group to make sure the app server can talk to the database. So let's start with that security group by going to the EC2 console. We'll scroll all the way down to the side here to security groups and then create security group. So we're going to do what we normally do, which is name the security group for the thing it's going to attach to. So this is CodeDeployDatabase, and in the description, we'll say allows Postgres traffic from instances with CodeDeployInstanceSecurityGroup. You'll remember this is the name of the security group that's attached to the instances in the autoscaling group. So we're going to allow traffic not from a specific IP, but from this security group. So that will allow all those instances to talk to the database. Click add rule, and we can choose…

Contents