Commit 25ab8b86 authored by Vladimir Kiryakov's avatar Vladimir Kiryakov
Browse files

edit documentation

parent 785ad20b
### Deploy to AWS
- configure AWS cli sdk
- install node js and yarn
- execute
1. [Configure](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html) AWS cli sdk.
2. Install [NodeJs](https://nodejs.org/en/) and [Yarn](https://yarnpkg.com/en/docs/install)
3. Run in console.
```bash
yarn install
yarn run deploy --key <Name of an existing EC2 KeyPair>
```
- wait for CloudFormation Stack creation
4. Wait for CloudFormation Stack creation.
```bash
yarn run publish
```
- to see deploy information execute
To see deploy information execute.
```bash
yarn run describe-stacks
```
### Run in develop mode
- stackName
- execute
Run in console.
```bash
yarn run install
yarn run start
```
### Command API
###### `yarn run deploy` - Creates AWS CloudFormation Stack
- stackName - AWS CloudFormation Stack Name default deviceops-hello-world-frontend
- region - AWS region
- key - Name of an existing EC2 KeyPair to enable SSH access to the instances
- instanceType - EC2 Instance Type default t2.micro
`yarn run deploy`
Creates AWS CloudFormation Stack.
Options
- *stackName* - AWS CloudFormation Stack Name default deviceops-hello-world-frontend
- *region* - AWS region **default** *us-east-1*
- *key* - Name of an existing EC2 KeyPair to enable SSH access to the instances **required**
- *instanceType* - EC2 Instance Type **default** *t2.micro*
`yarn run publish`
Sync Web to s3.
Options
- *stackName* - AWS CloudFormation Stack Name default deviceops-hello-world-frontend
`yarn describe-stacks`
Returns the stack description.
###### `yarn run publish` - Sync Web to s3
- stackName - AWS CloudFormation Stack Name default deviceops-hello-world-frontend
Options
- *stackName* - AWS CloudFormation Stack Name **default** *deviceops-hello-world-frontend*
- *region* - AWS region **default** *us-east-1*
###### `yarn describe-stacks` - Returns the stack description
- stackName - AWS CloudFormation Stack Name default deviceops-hello-world-frontend
`yarn delete`
Deletes stack. Once the call completes successfully, stack deletion starts.
###### `yarn delete` - Deletes stack. Once the call completes successfully, stack deletion starts.
- stackName - AWS CloudFormation Stack Name default deviceops-hello-world-frontend
- region - AWS region
\ No newline at end of file
Options
- *stackName* - AWS CloudFormation Stack Name **default** *deviceops-hello-world-frontend*
- *region* - AWS region **default** *us-east-1*
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment