jack-eb 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +5 -1
- data/docs/.gitignore +4 -0
- data/docs/CNAME +1 -0
- data/docs/Gemfile +3 -0
- data/docs/LICENSE +21 -0
- data/docs/README.md +21 -0
- data/docs/_config.yml +69 -0
- data/docs/_docs/conventions.md +0 -0
- data/docs/_docs/install.md +48 -0
- data/docs/_docs/jack-apply.md +54 -0
- data/docs/_docs/jack-create.md +20 -0
- data/docs/_docs/jack-deploy.md +31 -0
- data/docs/_docs/jack-diff.md +24 -0
- data/docs/_docs/jack-get.md +51 -0
- data/docs/_docs/jack-terminate.md +20 -0
- data/docs/_docs/next-steps.md +16 -0
- data/docs/_docs/structure.md +57 -0
- data/docs/_docs/tutorial.md +10 -0
- data/docs/_includes/about.html +19 -0
- data/docs/_includes/commands.html +30 -0
- data/docs/_includes/contact.html +17 -0
- data/docs/_includes/contact_disqus.html +16 -0
- data/docs/_includes/contact_static.html +17 -0
- data/docs/_includes/content.html +21 -0
- data/docs/_includes/css/bootstrap.min.css +7 -0
- data/docs/_includes/css/jack.css +158 -0
- data/docs/_includes/css/main.css +481 -0
- data/docs/_includes/css/quotes.css +102 -0
- data/docs/_includes/css/syntax.css +60 -0
- data/docs/_includes/css/table.css +53 -0
- data/docs/_includes/css/timeline.css +201 -0
- data/docs/_includes/edit-on-github.html +11 -0
- data/docs/_includes/footer.html +48 -0
- data/docs/_includes/head.html +32 -0
- data/docs/_includes/header.html +15 -0
- data/docs/_includes/js.html +28 -0
- data/docs/_includes/js_disqus.html +21 -0
- data/docs/_includes/modals.html +40 -0
- data/docs/_includes/nav.html +27 -0
- data/docs/_includes/quotes.html +19 -0
- data/docs/_includes/screenshot.html +15 -0
- data/docs/_includes/subnav.html +23 -0
- data/docs/_includes/uses.html +19 -0
- data/docs/_layouts/default.html +11 -0
- data/docs/_layouts/style.css +6 -0
- data/docs/articles.md +5 -0
- data/docs/css/font-awesome/css/font-awesome.css +1566 -0
- data/docs/css/font-awesome/css/font-awesome.min.css +4 -0
- data/docs/css/font-awesome/fonts/FontAwesome.otf +0 -0
- data/docs/css/font-awesome/fonts/fontawesome-webfont.eot +0 -0
- data/docs/css/font-awesome/fonts/fontawesome-webfont.svg +504 -0
- data/docs/css/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
- data/docs/css/font-awesome/fonts/fontawesome-webfont.woff +0 -0
- data/docs/docs.md +16 -0
- data/docs/img/logos/boltops-logo-full.png +0 -0
- data/docs/img/logos/boltops-logo.png +0 -0
- data/docs/img/profile.png +0 -0
- data/docs/img/quotes/ben.jpg +0 -0
- data/docs/img/tutorials/aws-eb-dashboard.png +0 -0
- data/docs/img/tutorials/eb-console-update.png +0 -0
- data/docs/img/tutorials/jack-apply-no.png +0 -0
- data/docs/img/tutorials/jack-apply.png +0 -0
- data/docs/img/tutorials/jack-deploy.png +0 -0
- data/docs/img/tutorials/jack-diff.png +0 -0
- data/docs/img/tutorials/jack-get.png +0 -0
- data/docs/img/tutorials/jack-update.png +0 -0
- data/docs/index.html +11 -0
- data/docs/js/bootstrap.js +2114 -0
- data/docs/js/bootstrap.min.js +6 -0
- data/docs/js/cbpAnimatedHeader.js +44 -0
- data/docs/js/cbpAnimatedHeader.min.js +11 -0
- data/docs/js/classie.js +80 -0
- data/docs/js/contact_me.js +70 -0
- data/docs/js/contact_me_static.js +23 -0
- data/docs/js/freelancer.js +37 -0
- data/docs/js/jqBootstrapValidation.js +912 -0
- data/docs/js/jquery-1.11.0.js +4 -0
- data/docs/js/jquery.easing.min.js +44 -0
- data/docs/js/nav.js +32 -0
- data/docs/quick-start.md +21 -0
- data/docs/screenshot.png +0 -0
- data/docs/style.css +3 -0
- data/lib/jack/cli.rb +27 -33
- data/lib/jack/config/apply.rb +10 -4
- data/lib/jack/version.rb +1 -1
- metadata +82 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35033b3491aacbbc133d70a83cb0347e3a61518e
|
4
|
+
data.tar.gz: 224f5f929c0d055d62dff3a3e58b14ff68bd6d2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa180a5634c0862e3068f6692e065b1f102fb0948a51c800a1e1183682c96a83658dcfd15f0b9296b1b4b4e4a5e56d2d6dde9c4abaace5a4e8ccb79b2621bd32
|
7
|
+
data.tar.gz: b2cca38a575b4837cdfbd8d7eafaa9029fc1ab9a9f78bf98fe1682c253d6cea9cf789f5647006b7f7c54f6108e191e4efb18850baab65a73e9a3816ee1b6196f
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [1.3.0]
|
7
|
+
- flatten cli interface: jack config apply -> jack apply
|
8
|
+
|
6
9
|
## [1.2.1]
|
7
10
|
- fix EB_OPTIONS and early trap for friendly exit
|
8
11
|
|
data/README.md
CHANGED
@@ -5,9 +5,13 @@
|
|
5
5
|
[![Code Climate](https://codeclimate.com/github/tongueroo/jack/badges/gpa.svg)](https://codeclimate.com/github/tongueroo/jack)
|
6
6
|
[![Test Coverage](https://codeclimate.com/github/tongueroo/jack/badges/coverage.svg)](https://codeclimate.com/github/tongueroo/jack)
|
7
7
|
|
8
|
+
The documentation for this tool is at [jackandtheelasticbeanstalk.com](http://jackandtheelasticbeanstalk.com).
|
9
|
+
|
8
10
|
Jack is a wrapper tool around the [aws eb cli3](http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3.html) tool use for managing AWS Elastic Beanstalk, EB, environments. It allows you to create environments using the saved template configuration file generated by `eb config save`. Jack moves the config file to the jack/cfg folder of your project and manages the the config files from there.
|
9
11
|
|
10
|
-
Jack provides a `jack config apply` command to update the EB environment. Before uploading the new configuration to EB jack first downloads the current configuration and then does a diff on the changes that are about to be applied. This gives a very helpful preview of exactly what you are intending to change. This particularly helpful when changes are made through the EB GUI and are out of sync with what is stored in the `jack/cfg` files.
|
12
|
+
Jack provides a `jack config apply` command to update the EB environment. Before uploading the new configuration to EB jack first downloads the current configuration and then does a diff on the changes that are about to be applied. This gives a very helpful preview of exactly what you are intending to change. This particularly helpful when changes are made through the EB GUI and are out of sync with what is stored in the `jack/cfg` files.
|
13
|
+
|
14
|
+
|
11
15
|
|
12
16
|
This blog post also provides a good introduction and shows some useful examples of what you can do with the jack tool: [Jack and the Elastic Beanstalk — Tool to Manage AWS Elastic Beanstalk Environments](https://medium.com/@tongueroo/jack-and-the-elastic-beanstalk-easily-manage-aws-environments-3ab496f08ad2#.o7w3x0yd9).
|
13
17
|
|
data/docs/.gitignore
ADDED
data/docs/CNAME
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
jackandtheelasticbeanstalk.com
|
data/docs/Gemfile
ADDED
data/docs/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 BoltOps
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/docs/README.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# Jack Documentation
|
2
|
+
|
3
|
+
This project powers the jack documementation website: [jackandtheelasticbeanstalk.com](http://jackandtheelasticbeanstalk.com). It is a static website generated by [Jekyll](https://jekyllrb.com/).
|
4
|
+
|
5
|
+
## Contributing
|
6
|
+
|
7
|
+
For minor changes like typos, you can click **Suggest an edit to this page**, located at the bottom of each article. This will take you to the source file on GitHub, where you can submit a pull request for your change through the UI.
|
8
|
+
|
9
|
+
## Local Setup
|
10
|
+
|
11
|
+
For larger fixes, you can run the site locally with the following:
|
12
|
+
|
13
|
+
```
|
14
|
+
git clone https://github.com/tongueroo/jack.git
|
15
|
+
cd jack/docs
|
16
|
+
bundle
|
17
|
+
jekyll clean
|
18
|
+
jekyll serve
|
19
|
+
```
|
20
|
+
|
21
|
+
You'll be able to view the site on [http://localhost:4000](http://localhost:4000).
|
data/docs/_config.yml
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
# Site settings
|
2
|
+
title: Jack
|
3
|
+
email: tongueroo@gmail.com
|
4
|
+
url: https://jackandtheelasticbeanstalk.com
|
5
|
+
description: "Manage your AWS Elastic Beanstalk Jack environments easily with Jack."
|
6
|
+
keywords: "Jack, AWS Elastic Beanstalk, DevOps, Infrastructure, BoltOps, Tools, Producitivity, Documentation"
|
7
|
+
skills: ""
|
8
|
+
meta_author: Tung Nguyen
|
9
|
+
|
10
|
+
# Google webmaster tools
|
11
|
+
google_verify:
|
12
|
+
|
13
|
+
# https://ssl.bing.com/webmaster/configure/verify/ownership Option 2 content= goes here
|
14
|
+
bing_verify:
|
15
|
+
|
16
|
+
# Contact form:
|
17
|
+
# - static : pass through formspree.io to validate email sending
|
18
|
+
# - disqus : replace contact form by disqus thread
|
19
|
+
# - comment the line below if you want to stick with the default PHP contact form
|
20
|
+
contact: static
|
21
|
+
|
22
|
+
# If you use disqus you need disqus shortname
|
23
|
+
# https://help.disqus.com/customer/portal/articles/466208
|
24
|
+
disqus_shortname:
|
25
|
+
|
26
|
+
# Color settings (hex-codes without the leading hash-tag)
|
27
|
+
color:
|
28
|
+
primary: 3972c7
|
29
|
+
primary-rgb: "24,288,156" #"128,179,255"
|
30
|
+
secondary: 2c3e50 #FD6E8A
|
31
|
+
secondary-dark: 233140 #A2122F
|
32
|
+
links: a3c8ff
|
33
|
+
|
34
|
+
# Footer settings
|
35
|
+
footer:
|
36
|
+
copyright: BoltOps, LLC
|
37
|
+
location: San Francisco, CA
|
38
|
+
social: BoltOps
|
39
|
+
credits:
|
40
|
+
contact: contact@boltops.com
|
41
|
+
phone:
|
42
|
+
|
43
|
+
# Social networks usernames (many more available: google-plus, flickr, dribbble, pinterest, instagram, tumblr, linkedin, etc.)
|
44
|
+
social:
|
45
|
+
- title: twitter
|
46
|
+
url: http://twitter.com/boltopslabs
|
47
|
+
- title: github
|
48
|
+
url: http://github.com/boltopslabs
|
49
|
+
|
50
|
+
# Credits content
|
51
|
+
credits: 'BoltOps, LLC'
|
52
|
+
|
53
|
+
# Build settings
|
54
|
+
markdown: kramdown
|
55
|
+
permalink: pretty
|
56
|
+
|
57
|
+
gh_url: "https://github.com/tongueroo/jack"
|
58
|
+
|
59
|
+
collections:
|
60
|
+
docs:
|
61
|
+
name: "Documentation"
|
62
|
+
output: true
|
63
|
+
|
64
|
+
defaults:
|
65
|
+
- values:
|
66
|
+
layout: default
|
67
|
+
|
68
|
+
plugins_dir:
|
69
|
+
- jekyll-coffeescript
|
File without changes
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
title: Installation
|
3
|
+
---
|
4
|
+
|
5
|
+
### Install with Bolts Toolbelt
|
6
|
+
|
7
|
+
If you want to quickly install jack without having to worry about jack's dependency you can simply install the Bolts Toolbelt which has jack included.
|
8
|
+
|
9
|
+
```sh
|
10
|
+
brew cask install boltopslabs/software/bolts
|
11
|
+
```
|
12
|
+
|
13
|
+
For more information about the Bolts Toolbelt or to get an installer for another operating system visit: [https://boltops.com/toolbelt](https://boltops.com/toolbelt)
|
14
|
+
|
15
|
+
### Install with RubyGems
|
16
|
+
|
17
|
+
If you prefer to install jack via RubyGems follow the instructions:
|
18
|
+
|
19
|
+
```sh
|
20
|
+
gem install jack-eb # the name is called jack-eb not jack
|
21
|
+
```
|
22
|
+
|
23
|
+
Or you can add jack to your Gemfile in your project if you are working with a ruby project. It is not required for your project to be a ruby project to use jack.
|
24
|
+
|
25
|
+
{% highlight ruby %}
|
26
|
+
gem "jack-eb"
|
27
|
+
{% endhighlight %}
|
28
|
+
|
29
|
+
You also need to install jack's additional dependencies: the aws cli and the aws eb cli.
|
30
|
+
|
31
|
+
On a Mac OS system, you can use homebrew:
|
32
|
+
|
33
|
+
```sh
|
34
|
+
brew install awscli # follow the post install instructions
|
35
|
+
brew install awsebcli
|
36
|
+
```
|
37
|
+
|
38
|
+
Make sure you follow the homebrew post install instructions to set up `~/.aws/config` and `~/.aws/credentials`.
|
39
|
+
|
40
|
+
On other operating systems, follow Amazon Web Services' official installation guides:
|
41
|
+
|
42
|
+
* [Installing the AWS Command Line Interface
|
43
|
+
](http://docs.aws.amazon.com/cli/latest/userguide/installing.html)
|
44
|
+
* [Install the Elastic Beanstalk Command Line Interface (EB CLI)](http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install.html)
|
45
|
+
|
46
|
+
|
47
|
+
<a class="btn btn-basic" href="/quick-start/">Back</a>
|
48
|
+
<a class="btn btn-primary" href="{% link _docs/structure.md %}">Next Step</a>
|
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
title: jack apply
|
3
|
+
---
|
4
|
+
|
5
|
+
#### Applying Changes
|
6
|
+
|
7
|
+
Now let's make some changes to the Elastic Beanstalk environment. Let's change the AutoScaling RollingUpdateEnabled from `true` to `false`. Here is the line for that setting:
|
8
|
+
|
9
|
+
```yaml
|
10
|
+
RollingUpdateEnabled: true
|
11
|
+
```
|
12
|
+
|
13
|
+
|
14
|
+
And then update it with the following command:
|
15
|
+
|
16
|
+
```sh
|
17
|
+
jack apply hi-web-stag
|
18
|
+
```
|
19
|
+
|
20
|
+
You should see similiar output:
|
21
|
+
|
22
|
+
<img src="/img/tutorials/jack-apply.png" class="doc-photo" />
|
23
|
+
|
24
|
+
#### Syncing Changes
|
25
|
+
|
26
|
+
Let's demonstrate one of the good reasons for using jack to manage your Elastic Beanstalk configurations. Let's say someone on the team updates one of the environment variables using the AWS Elastic Beanstalk Console.
|
27
|
+
|
28
|
+
<img src="/img/tutorials/eb-console-update.png" class="doc-photo" />
|
29
|
+
|
30
|
+
Now we decide to re-enable RollingUpdateEnabled to `true`. We'll apply this change again:
|
31
|
+
|
32
|
+
```sh
|
33
|
+
jack apply hi-web-stag
|
34
|
+
```
|
35
|
+
|
36
|
+
Notice that this time when jack compares the configuration you see the changes that your other team member has made.
|
37
|
+
|
38
|
+
<img src="/img/tutorials/jack-apply-no.png" class="doc-photo" />
|
39
|
+
|
40
|
+
By allowing you to preview the changes and prompting for your confirmation, jack prevents you from accidentally overriding their change. This saves later headaches and confusion when changes "suddenly" disappear.
|
41
|
+
|
42
|
+
|
43
|
+
You can now download the updated configuration first and then re-add your changes.
|
44
|
+
|
45
|
+
```
|
46
|
+
jack download get hi-web-stag
|
47
|
+
# add back in your changes to `jack/cfg/hi-web-stag.cfg.yml
|
48
|
+
jack upload apply hi-web-stag
|
49
|
+
```
|
50
|
+
|
51
|
+
You are now set! Jack allows you codify the infrastructure code and then enables you to apply those changes safely.
|
52
|
+
|
53
|
+
<a class="btn btn-basic" href="{% link _docs/jack-get.md %}">Back</a>
|
54
|
+
<a class="btn btn-primary" href="{% link _docs/jack-diff.md %}">Next Step</a>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
---
|
2
|
+
title: jack create
|
3
|
+
---
|
4
|
+
|
5
|
+
Run the following command to create an Elastic Beanstalk Environment:
|
6
|
+
|
7
|
+
```sh
|
8
|
+
jack create hi-web-prod
|
9
|
+
```
|
10
|
+
|
11
|
+
The above command will automatically create an Elastic Beanstalk application called **hi** and an environment called **hi-web-prod**. Jack follows a naming convention scheme: `[app]-[role]-[env]`. Jack automatically separates the words by dashes and takes the first word using that as the app name. This is how jack knows how to create an Elastic Beanstalk application named **hi** without you having to tell it that. The naming convention can be easily [overridden]({% link _docs/conventions.md %}). The naming conventions helps provide guidance for best practices and dramatically simplies the tools usage. Things just work.
|
12
|
+
|
13
|
+
After a few minutes you should see an environment fully spun up in Elastic Beanstalk's Console:
|
14
|
+
|
15
|
+
<img src="/img/tutorials/aws-eb-dashboard.png" class="doc-photo" />
|
16
|
+
|
17
|
+
In the next step, you'll download the configuration from the newly created environment.
|
18
|
+
|
19
|
+
<a class="btn btn-basic" href="{% link _docs/tutorial.md %}">Back</a>
|
20
|
+
<a class="btn btn-primary" href="{% link _docs/jack-get.md %}">Next Step</a>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
---
|
2
|
+
title: jack deploy
|
3
|
+
---
|
4
|
+
|
5
|
+
So far we have been using an empty folder as our project to mainly demonstrate jack's abiliy to download and managed configuration files. Jack can also deploy applications to the Elastic Beanstalk environments. For this next step, we will deploy a small test sinatra app available on GitHub at [tongueroo/sinatra](https://github.com/tongueroo/sinatra).
|
6
|
+
|
7
|
+
Clone the project and cd into it:
|
8
|
+
|
9
|
+
```sh
|
10
|
+
git clone https://github.com/tongueroo/sinatra.git
|
11
|
+
cd sinatra
|
12
|
+
```
|
13
|
+
|
14
|
+
Now we can use the `jack deploy` command to deploy the app:
|
15
|
+
|
16
|
+
```sh
|
17
|
+
jack deploy hi-web-stag
|
18
|
+
```
|
19
|
+
|
20
|
+
You should see similiar output below:
|
21
|
+
|
22
|
+
<img src="/img/tutorials/jack-deploy.png" class="doc-photo" />
|
23
|
+
|
24
|
+
The jack deploy command simply is a wrapper command to the `eb deploy` command. If you need to pass `eb deploy` options down through to the underlying command you can use the `EB_OPTIONS` environment variable. Here's an example:
|
25
|
+
|
26
|
+
```sh
|
27
|
+
EB_OPTION='--nohang' jack deploy hi-web-stag
|
28
|
+
```
|
29
|
+
|
30
|
+
<a class="btn btn-basic" href="{% link _docs/jack-diff.md %}">Back</a>
|
31
|
+
<a class="btn btn-primary" href="{% link _docs/jack-terminate.md %}">Next Step</a>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
---
|
2
|
+
title: jack diff
|
3
|
+
---
|
4
|
+
|
5
|
+
#### Preview Changes
|
6
|
+
|
7
|
+
You can preview the changes without applying the changes with `jack diff`.
|
8
|
+
|
9
|
+
```sh
|
10
|
+
jack diff hi-web-stag
|
11
|
+
```
|
12
|
+
|
13
|
+
You should see something similar to this:
|
14
|
+
|
15
|
+
<img src="/img/tutorials/jack-diff.png" class="doc-photo" />
|
16
|
+
|
17
|
+
By default, `jack diff` cleans up after itself and removes the originally downloaded `.elasticbeanstalk/saved_configs`. If you would like to keep that file around for further inspection, use the `--dirty` flag.
|
18
|
+
|
19
|
+
```sh
|
20
|
+
jack diff hi-web-stag --dirty
|
21
|
+
```
|
22
|
+
|
23
|
+
<a class="btn btn-basic" href="{% link _docs/jack-apply.md %}">Back</a>
|
24
|
+
<a class="btn btn-primary" href="{% link _docs/jack-deploy.md %}">Next Step</a>
|
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
title: jack get
|
3
|
+
---
|
4
|
+
|
5
|
+
Run the following command to download the configuration from the Elastic Beanstalk environment:
|
6
|
+
|
7
|
+
```sh
|
8
|
+
jack get hi-web-stag
|
9
|
+
```
|
10
|
+
|
11
|
+
You should something similar to this:
|
12
|
+
|
13
|
+
<img src="/img/tutorials/jack-get.png" class="doc-photo" />
|
14
|
+
|
15
|
+
Let's take a look the contents of the downloaded file:
|
16
|
+
|
17
|
+
```yaml
|
18
|
+
AWSConfigurationTemplateVersion: 1.1.0.0
|
19
|
+
EnvironmentConfigurationMetadata:
|
20
|
+
Description: Configuration created from the EB CLI using "eb config save".
|
21
|
+
EnvironmentTier:
|
22
|
+
Name: WebServer
|
23
|
+
Type: Standard
|
24
|
+
OptionSettings:
|
25
|
+
aws:autoscaling:launchconfiguration:
|
26
|
+
EC2KeyName: default
|
27
|
+
IamInstanceProfile: aws-elasticbeanstalk-ec2-role
|
28
|
+
InstanceType: t2.micro
|
29
|
+
aws:autoscaling:updatepolicy:rollingupdate:
|
30
|
+
RollingUpdateEnabled: true
|
31
|
+
RollingUpdateType: Health
|
32
|
+
aws:elasticbeanstalk:command:
|
33
|
+
BatchSize: '30'
|
34
|
+
BatchSizeType: Percentage
|
35
|
+
aws:elasticbeanstalk:environment:
|
36
|
+
ServiceRole: aws-elasticbeanstalk-service-role
|
37
|
+
aws:elasticbeanstalk:healthreporting:system:
|
38
|
+
SystemType: enhanced
|
39
|
+
aws:elb:loadbalancer:
|
40
|
+
CrossZone: true
|
41
|
+
aws:elb:policies:
|
42
|
+
ConnectionDrainingEnabled: true
|
43
|
+
Platform:
|
44
|
+
PlatformArn: arn:aws:elasticbeanstalk:us-west-2::platform/Docker running on 64bit
|
45
|
+
Amazon Linux/2.1.0
|
46
|
+
```
|
47
|
+
|
48
|
+
As you can see this file contains everything there is to know about the Elastic Beanstalk environment. With this file you can completely rebuild the environment and even "clone" it across Elastic Beanstalk applications.
|
49
|
+
|
50
|
+
<a class="btn btn-basic" href="{% link _docs/jack-create.md %}">Back</a>
|
51
|
+
<a class="btn btn-primary" href="{% link _docs/jack-apply.md %}">Next Step</a>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
---
|
2
|
+
title: jack terminate
|
3
|
+
---
|
4
|
+
|
5
|
+
Let's clean up after ourselves and delete the environment. You can delete your Elastic Beanstalk environment with the following command:
|
6
|
+
|
7
|
+
```sh
|
8
|
+
jack terminate hi-web-stag
|
9
|
+
```
|
10
|
+
|
11
|
+
Jack prompts you for confirmation. If you want to bypass the prompt use the `--sure` flag.
|
12
|
+
|
13
|
+
```
|
14
|
+
jack terminate hi-web-stag --sure
|
15
|
+
```
|
16
|
+
|
17
|
+
Congratulations! 🍾 You have created Elastic Beanstalk environments, downloaded and applied configuration changes, deployed new code to the environment and cleaned up after youself by terminating the environment. You have successfully used jack to manage an Elastic Beanstalk environment.
|
18
|
+
|
19
|
+
<a class="btn btn-basic" href="{% link _docs/jack-deploy.md %}">Back</a>
|
20
|
+
<a class="btn btn-primary" href="{% link _docs/next-steps.md %}">Next Step</a>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
---
|
2
|
+
title: Next Steps
|
3
|
+
---
|
4
|
+
|
5
|
+
This concludes the tutorial guide for jack. Hopefully you are now more comfortable with jack's basic usage, concepts, and have a feel for the workflow.
|
6
|
+
|
7
|
+
From here, there are a few resources that can help you continue along:
|
8
|
+
|
9
|
+
* Check out the [jack](https://github.com/tongueroo/jack) repo on GitHub
|
10
|
+
* Submit an issue
|
11
|
+
* Write a blog post describing how you are using jack, or an interesting problem jack has allowed you to solve
|
12
|
+
|
13
|
+
Everyone can contribute to make jack better, including the documentation. These docs are are of the same jack repo in the [docs folder](https://github.com/tongueroo/jack/tree/master/docs). Please fork the project and open a pull request! We love your pull requests. Contributions are encouraged and welcomed!
|
14
|
+
|
15
|
+
<a class="btn btn-basic" href="{% link _docs/jack-terminate.md %}">Back</a>
|
16
|
+
<a class="btn btn-primary" href="{% link articles.md %}">Next Step</a>
|