Showing posts with label AWS. Show all posts
Showing posts with label AWS. Show all posts

AWS for Oracle DBA, RDS and security groups

Overview of Amazon RDS

1. A web service that makes it easier to set up, operate, and scale a relational database in the cloud
2. Amazon RDS manages backups, software patching, automatic failure detection and recovery
3. Amazon RDS doesn't provide shell access to DB instances, and it restricts access to certain system procedures and tables that require advanced privileges.
4. In addition to the security in your database package, you can help control who can access your RDS databases by using AWS identity and access management (IAM) to define users and permissions.
5. You can also help protect your databases by putting them in a virtual private cloud

DB Instances:

1. Basic building block of Amazon RDS
2. An isolated database environment in the cloud
3. create and modify a DB instance by using the AWS command line inter face, the Amazon RDS, or the AWS management console
4. Amazon RDS currently supports the MySQL, MariaDB, Postgresql, Oracle and Microsoft SQL Server DB engines
5. The computation and memory capacity of DB instance is determined by its DB instance class.

High Availability:

1. Regions and availability zones.
2. Houses in highly available data center facilitates in different areas of the world.
3. Each region contains multiple distinct locations called Availability Zones, or AZs.
4. Each Availability Zone is engineered to be isolated from failures in other availability Zones.
5. By launching instances in separate Availability Zones, you can protect your applications from the failure of a single option called a Multi-AZ deployment.

Security:

1. A security group controls the access to a DB instance.
2. Allowing access to IP address ranges or Amazon EC2 instances that you specify.
3. Amazon RDS uses DB security groups, VPC security groups, and EC2 security groups.
   - A DB security group controls access to EC2-Classic DB instances that are not in a VPC.
   - A VPC security group controls access to the DB instances and EC2 instances inside a VPC..
   - An EC2 security group controls access to an EC2 Instance.

VPC:

- VPC is a logically isolated virtual network, spanning and entire AWS region, where your instances are launched.
- Isolating your AWS resources from other accounts.
- Routing network traffic to and from your instances
- Protecting your instances from network intrusion.

Default VPC:

- Designed to make it easy for AWS users to set up networking

Security Group Scenario:

- Create a VPC security group(for example, sg-appsrv1) and defined in bounded rules, that use the IP address of the client application as the source. this security group allows your client application to connect to EC2 instances in a VPC that uses this security group.
- Create an EC2 instance for the application and add the EC2 instance to the VPC security group (sg-appserv1) that we created in the previous step. The Ec2 instance in the VPC shares the VPC security group with the DB instance.
- Create a second VPC security group (for example, sg-dbserv1) and create a new rule by specifying the VPC security group that you created in step 1 (sg-appsrvl) as the source.
- Create new DB instance and add the DB instance to the VPC security group (sg-dbserv1) that we created in the previous step. When you create instance, use the some part of number as the one specified for the VPC security group (sg-dbsrv1) rule that we created in step 3.

- From the Amazon RDS console, you can monitor the following items for resources.

- The number of connections to the DB instance.
- The amount of read write operation to a DB instance
- The amount of storage that a DB instance is currently utilizing.
- The amount of memory and CPU being utilized for a DB instance.
- The amount of network traffic to and from DB instance.

- In addition, Amazon RDS integrates with Amazon cloud watch for additional monitoring capabilities.

- Amazon cloud watch metrics
- Amazon cloud watch alarms
- Amazon cloud watch logs.

Backup and Recovery:

- Amazon RDS creates and saves automated backups of your DB instance.
- Amazon RDS creates storage volume snapshot of your DB instance.
- Saves automated backups of DB instance according to the backup retention period that you specify during database creation.
- You can also backup your DB instance manually, by manually creating a DB snapshot.
- You can create a new DB instance by restoring from this DB snapshot.
- You cannot restore from a DB snapshot to an existing DB instance.