Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cascade-examples
rigado-node-hello-world-frontend
Commits
25ab8b86
Commit
25ab8b86
authored
Apr 11, 2018
by
Vladimir Kiryakov
Browse files
edit documentation
parent
785ad20b
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
25ab8b86
### Deploy to AWS
-
c
onfigure AWS cli sdk
-
i
nstall node
js
and yarn
-
execute
1.
[
C
onfigure
](
https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html
)
AWS cli sdk
.
2.
I
nstall
[
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>
```
-
w
ait for CloudFormation Stack creation
4.
W
ait for CloudFormation Stack creation
.
```
bash
yarn run publish
```
-
t
o see deploy information execute
T
o 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 de
scribe-stacks` - Returns the stack description
-
stackName - AWS CloudFormation Stack Name default deviceops-hello-world-frontend
`yarn de
lete`
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment