Here you can find the below details:
-
CloudFormation template for VPC ( 01-rean-vpc.yaml) which will create below resources
-
Shared Security Group (02-rean-shared-SecurityGroup.yaml),It can be any Security Group within the VPC but typically Organization used Shared Common services with Tier, which will create below resources. The SG naming convention is. SG-Shared---E (E is East Region)
- SG-Shared-Elb-Mgmt-E ( All the Shared ELB will used this Security Group)
- SG-Shared-Web-Mgmt-E ( All the Shared Web will used this Security Group)
- SG-Shared-App-Mgmt-E ( All the Shared App will used this Security Group)
- SG-Shared-Dbs-Mgmt-E ( All the Shared Dbs will used this Security Group)
-
WordPress with Playbook (03-rean-ec2-with-userdata-wordpress.yaml) which can be used as Userdata with CloudFormation templates, Jenkins, Ansible Tower or any CI/CD Tools. It will create below resoruces
- EC2 instances in existing VPC
- Used the Existing Security Group
- Pull the code from Github Repo (https://github.com/dimdung80/lab-rean.git) and run the playbook locally for this servers
- http://ec2-34-229-176-249.compute-1.amazonaws.com
- http://ec2-34-229-176-249.compute-1.amazonaws.com/wp-login.php
UserData: "Fn::Base64": !Sub | #!/bin/bash # Install EPEL repo for RHEL 7 rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm # Install git to clone Github repo yum install git -y # Install Pip packages yum install python-pip -y # Install Ansible after the PIP modules pip install ansible #Set clone the git from the Github and run the playbook cd /tmp/ git -c http.sslVerify=false clone https://github.com/dimdung80/lab-rean/ #cd /tmp/lab-rean/workpress/ #ansible-playbook -i hosts site.yml ansible-playbook -i "localhost," -c local lab-rean/wordpress/site.yml
-
Wordpress with "AWS::CloudFormation::Init:" (04-rean-wordpress.yaml), it will create Wordpress fully Functional CM servers
- EC2 instances in existing VPC
- Used the Existing Security Group
- http://ec2-34-203-36-61.compute-1.amazonaws.com/wordpress/
- http://ec2-34-203-36-61.compute-1.amazonaws.com/wordpress/wp-login.php
-
Playbook-Wordpress
Playbook-wordpress
├── README.md
└── wordpress
├── group_vars
│ └── all
├── hosts
├── LICENSE.md
├── README.md
├── roles
│ ├── common
│ │ ├── files
│ │ │ ├── epel.repo
│ │ │ ├── nginx.repo
│ │ │ ├── remi.repo
│ │ │ ├── RPM-GPG-KEY-EPEL-7
│ │ │ ├── RPM-GPG-KEY-NGINX
│ │ │ └── RPM-GPG-KEY-remi
│ │ └── tasks
│ │ └── main.yml
│ ├── mariadb
│ │ ├── handlers
│ │ │ └── main.yml
│ │ ├── tasks
│ │ │ └── main.yml
│ │ └── templates
│ │ └── my.cnf.j2
│ ├── nginx
│ │ ├── handlers
│ │ │ └── main.yml
│ │ ├── tasks
│ │ │ └── main.yml
│ │ └── templates
│ │ └── default.conf
│ ├── php-fpm
│ │ ├── handlers
│ │ │ └── main.yml
│ │ ├── tasks
│ │ │ └── main.yml
│ │ └── templates
│ │ └── wordpress.conf
│ └── wordpress
│ ├── tasks
│ │ └── main.yml
│ └── templates
│ └── wp-config.php
└── site.yml
- Standard Operation Procedure (SOP) docs
dimdung@devopsvdi lab-rean]$ tree SOP
SOP
├── 01-REAN Security and Technical Architecture.pdf
├── 02-SOP For Infrastructure CloudFormation (VPC).pdf
├── 03-SOP For Security Group CloudFormation.pdf
├── 04-SOP For Wordpress CloudFormation.pdf
└── 05-SOP For Wordpress with Ansible Playbook + CloudFormation.pdf
0 directories, 5 files
[dimdung@devopsvdi lab-rean]$