aws-bitacademy / myapp-ex02

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS CloudFormation Template Example

1. Node Application on EC2 Instance

2. MySQL Engine of RDS Instance

3. AWS::CloudFormation::Init Metadata Configuration on aws-cfn-bootstrap

1. packages: yum install

2. sources: tarball download from github's repository

3. files

  1. redhat SysV init scripts
  2. app.env: application configurations(profiling, service port, etc...)
  3. db.env: mysql connection credential & Sequelize ORM Configuration

4. commands: npm install

5. services: sysvinit enable and start

4. Deployment: Creating Stack

$ aws cloudformation create-stack --stack-name myapp --template-body https://raw.githubusercontent.com/aws-bitacademy/aws-practices/main/03/ch06/ex02.json --parameters ParameterKey=KeyName,ParameterValue={key} ParameterKey=ServicePort,ParameterValue=8080 ParameterKey=DBName,ParameterValue=myapp ParameterKey=DBUserName,ParameterValue=myapp ParameterKey=DBUserPassword,ParameterValue=myapp12345

About


Languages

Language:JavaScript 73.9%Language:CSS 18.3%Language:EJS 7.0%Language:Shell 0.8%