Coder Social home page Coder Social logo

aws's Introduction

CloudFormation templates for HA with VMs and HA with Containers.

All templates were downloaded from the internet

WordPress HA

Filename - wp-multi-az-vms.yaml

Download wp-multi-az-vms.yaml to local computer
Log in to AWS

Create SSH EC2 key pair

Select:
CloudFormation
Create Stack
Template is ready
Upload a template file
Choose wp-multi-az-vms.yaml
Click on Next

Enter Stack name
Edit parameters as required.
Parameters to note:

Select EC2 Key pair
MultiAZDB should be set to true
WebServerCapacity should be set to 2
SSH location 0.0.0.0/0
Select Subnets - at least 2 for Multi-AZ
Select VPC id that hosts above subnets

Click Next
Click Next
Create Stack

Once stack create is complete
Select stack name
Select Outputs Tab
Copy URL into web browser

EKS WordPress HA

EKS Quick Launch New VPC EKS Quick Launch Existing VPC

Click on one of links above Log in to AWS

Click on Next

Enter Stack name if not entered already Edit parameters as required.
Parameters to note:

Provision bastion host
SSH key name
EKS public access endpoint - enabled
ALB ingress controller - enabled
Cluster autoscaler - enabled

Click Next
Click Next
Create Stack

Once stack create is complete Select stack name
Select Outputs Tab

Make note of the following:
KubeClusterName
KubeGetLambdaArn
NodeGroupSecurityGroupId
BastionSecurityGroupId

Deploy WordPress Helm Chart with HA RDS(MariaDB)

Download eks-helm3-wordpress-deploy-RDS.yaml

Log into AWS

Select:
CloudFormation
Create Stack
Template is ready
Upload a template file
Choose eks-helm3-wordpress-deploy-RDS.yaml

Click on Next

Fill in Parameters:

KubeClusterName
KubeGetLambdaArn
Namespace
Name
wordpressPassword
DBMasterUserPassword
NodeGroupSecurityGroupId
BastionSecurityGroupId
Subnet1ID - (Select a private subnet from the main EKS stack.)
Subnet2ID - (Select a different private subnet from the main EKS stack.)
VPCID - (Select the EKSStack VPC)

Click Next
Click Next
Create Stack

Once stack create is complete
Select stack name
Select Outputs Tab
Get the value of WPElbHostName In your preferred browser, enter the value of WPElbHostName Under the Meta section of the page, choose Log in
Enter the WordPress Username and Password you created in the stack creation

NOTES

Issue with EKS CF helm chart deployment. KubeGetLambdaArn does not appear in stack output or in CF template This will require further investigation. WP Helm install can be done manually by SSH to bastion host and installing helm, then running chart or by importing cluster in Rancher and using WP Helm chart in apps.
A pipeline can be configured to automate CF deployment.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.