lono 4.0.3 → 4.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/lono/help/cfn/diff.md +19 -7
- data/lib/lono/template/aws_service.rb +3 -0
- data/lib/lono/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e82d1d3ff65425bea94378118e22aa002f4878f66baedcf058a3a4171a35349e
|
4
|
+
data.tar.gz: 61d7e0b169ee60084552f9c1ec245a2001e73fc88ae43be67acb463707f3a0b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ce681a7150ab91972bba64868e0e38e1ab753461c898ba16870a1c8a0a699c0561f41cb448aa045a61b7efd48ff267a16f5f624cbd0dab9458a62cc7108ed5d
|
7
|
+
data.tar.gz: 9cf933db42a1cb6161f3e6f498764c9a80aee9ebcd3d4624d062c446eb387de42c9bd9433da490e2c582a3dd2faef50b428fc211ef1e7a1ca23f235a963ce55e
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,10 @@
|
|
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
|
+
## [4.0.4]
|
7
|
+
- update lono cfn diff docs
|
8
|
+
- add S3_REGION env option to configure different s3 client region vs AWS_PROFILE
|
9
|
+
|
6
10
|
## [4.0.3]
|
7
11
|
- update cli docs
|
8
12
|
- make `--name` option for lono import optional
|
data/lib/lono/help/cfn/diff.md
CHANGED
@@ -2,13 +2,25 @@ Displays code diff of the generated CloudFormation template locally vs the exist
|
|
2
2
|
|
3
3
|
## Examples
|
4
4
|
|
5
|
-
lono cfn diff
|
5
|
+
$ lono cfn diff ec2
|
6
|
+
Using template: output/templates/ec2.yml
|
7
|
+
Using parameters: config/params/development/ec2.txt
|
8
|
+
No detected app/scripts
|
9
|
+
Generating CloudFormation templates:
|
10
|
+
output/templates/ec2.yml
|
11
|
+
Not modified: output/templates/ec2.yml to s3://boltops-stag/cloudformation-templates/development/templates/ec2.yml
|
12
|
+
Templates uploaded to s3.
|
13
|
+
output/params/ec2.json
|
14
|
+
Generating CloudFormation source code diff...
|
15
|
+
Running: colordiff /tmp/existing_cfn_template.yml output/templates/ec2.yml
|
16
|
+
19c19
|
17
|
+
< Default: t2.small
|
18
|
+
---
|
19
|
+
> Default: t2.medium
|
20
|
+
$
|
6
21
|
|
7
|
-
|
22
|
+
Here's a screenshot of the output with the colorized diff:
|
8
23
|
|
9
|
-
<img src="/img/
|
24
|
+
<img src="/img/reference/lono-cfn-diff.png" alt="Stack Update" class="doc-photo">
|
10
25
|
|
11
|
-
|
12
|
-
|
13
|
-
1. Source code diff of the templates. This is generated by downloading the current CloudFormation template and comparing it with the locally generated one using `colordiff`.
|
14
|
-
2. CloudFormation Change Set list of changes. This is generated using [AWS CloudFormation Change Set](https://medium.com/boltops/a-simple-introduction-to-cloudformation-part-4-change-sets-dry-run-mode-c14e41dfeab7) feature.
|
26
|
+
A `lono cfn diff` is perform automatically as part of `lono cfn update`.
|
@@ -7,6 +7,9 @@ module Lono::Template::AwsService
|
|
7
7
|
options = {}
|
8
8
|
# example: endpoint: 'https://s3.us-west-2.amazonaws.com'
|
9
9
|
options[:endpoint] = ENV['S3_ENDPOINT'] if ENV['S3_ENDPOINT']
|
10
|
+
# allow override of region for s3 client to avoid warning:
|
11
|
+
# S3 client configured for "us-east-1" but the bucket "xxx" is in "us-west-2"; Please configure the proper region to avoid multiple unnecessary redirects and signing attempts
|
12
|
+
options[:region] = ENV['S3_REGION'] if ENV['S3_REGION']
|
10
13
|
@s3 = Aws::S3::Client.new(options)
|
11
14
|
end
|
12
15
|
end
|
data/lib/lono/version.rb
CHANGED