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
e386b0d6
Commit
e386b0d6
authored
Apr 11, 2018
by
Vladimir Kiryakov
Browse files
documentation
parent
ffa3a9c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
e386b0d6
...
...
@@ -11,13 +11,33 @@ yarn run deploy --key <Name of an existing EC2 KeyPair>
```
bash
yarn run publish
```
-
to see deploy information execute
```
bash
yarn run describe-stacks
```
### Run in develop mode
-
install node js and yarn
-
stackName
-
execute
```
bash
yarn
install
yarn start
```
\ No newline at end of file
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 publish` - Sync Web to s3
-
stackName - AWS CloudFormation Stack Name default deviceops-hello-world-frontend
###### `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.
-
stackName - AWS CloudFormation Stack Name default deviceops-hello-world-frontend
-
region - AWS region
\ No newline at end of file
cli/app.js
View file @
e386b0d6
...
...
@@ -13,7 +13,7 @@ const NO_VALIDATE = null;
prog
.
command
(
'
deploy
'
,
'
Deploy CloudFormation template to AWS
'
)
.
option
(
'
--stackName <stackName>
'
,
'
Stack Name
'
,
NO_VALIDATE
,
DEFAULT_STACK_NAME
)
.
option
(
'
--region <region>
'
,
'
Stack Name
'
,
NO_VALIDATE
,
null
,
false
)
.
option
(
'
--region <region>
'
,
'
AWS region
'
,
NO_VALIDATE
,
null
,
false
)
.
option
(
'
--key <key>
'
,
'
Name of an existing EC2 KeyPair to enable SSH access to the instances
'
,
NO_VALIDATE
,
null
,
true
)
.
option
(
'
--instanceType <instanceType>
'
,
'
EC2 Instance Type
'
,
NO_VALIDATE
,
DEFAULT_INSTANCE_TYPE
,
false
)
.
action
((
args
,
options
)
=>
{
...
...
@@ -52,7 +52,7 @@ prog
prog
.
command
(
'
describe-stacks
'
,
'
Deploy CloudFormation template to AWS
'
)
.
option
(
'
--stackName <stackName>
'
,
'
Stack Name
'
,
NO_VALIDATE
,
DEFAULT_STACK_NAME
)
.
option
(
'
--region <region>
'
,
'
Stack Name
'
,
NO_VALIDATE
,
null
,
false
)
.
option
(
'
--region <region>
'
,
'
AWS region
'
,
NO_VALIDATE
,
null
,
false
)
.
action
((
args
,
options
)
=>
{
if
(
options
.
region
)
{
...
...
@@ -71,7 +71,7 @@ prog
prog
.
command
(
'
delete
'
,
'
Delete CloudFormation template
'
)
.
option
(
'
--stackName <stackName>
'
,
'
Stack Name
'
,
NO_VALIDATE
,
DEFAULT_STACK_NAME
)
.
option
(
'
--region <region>
'
,
'
Stack Name
'
,
NO_VALIDATE
,
null
,
false
)
.
option
(
'
--region <region>
'
,
'
AWS region
'
,
NO_VALIDATE
,
null
,
false
)
.
action
((
args
,
options
)
=>
{
if
(
options
.
region
)
{
...
...
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