(1) Install AWS CDK

(2) Create a template

When you initialize the project, it creates a bunch of files with all the configuration done. It has App and Stack.

(3) Compile the app

install S3 and Dynamodb construct libraries from npm:

Now compile app

(4) List the stacks in the app

(5) Synthesizing CloudFormation template

(6) Deploying

You can use the cdk bootstrap command to install the bootstrap stack into an environment:

Use cdk deploy to deploy a CDK app:

(7) Checking diff

(8) Deleting the stack

1-Apache Vhost Configuration

A domain name registered and pointed to your server’s public IP address. For this tutorial, we use redhillinteractive.com and www.redhillinteractive.com which are pointed to our server. (you should use yourselves domain)

vi /etc/apache2/sites-enabled/wordpress.conf

Step 1 — Creating a New User

Step 2 — Creating a Directory for File Transfers

Step 3 — Restricting Access to One Directory

We will append following commands in /etc/ssh/sshd_config file for Restricting Access to One Directory.

Exclude Packages with yum Command

Exclude Packages from Auto Update

Edit /etc/yum.conf in vi editor

Install the required packages:

Add the Docker CE repo:

Install the Docker CE packages:

Start and enable the Docker service:

How to test your docker installation

Get system-wide information about Docker:

docker info

How to create a second database in the same RDS instance on AWS RDS

If you want to create a second database schema in running RDS instance. So you may follow the below steps.

1-Connect your RDS instance through master password.

2-Now in RDS instance (MySQL) shell prompt. You can create a new database and a new user

3- Now you be able to login with the new_user with new_database

4- You be able to restore the dump (from bash shell) in your new database.

# mysql -unewusername -ppassword -h rds-hostname --database < dump.sql

If you run “yum install mysql” on CentOS 7, it is MariaDB that is installed rather than MySQL. MySQL is not available in the default CentOS 7 repositories so we will be installing the packages from the MySQL Yum Repository.

Install MySQL 8.0 on CentOS 7

Enable the MySQL 8.0 repository:


Hakan Bayraktar

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store