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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ba5e18a4dfb8c1e380410585608cb85e2c99337337b99c4c65f507641286017
4
- data.tar.gz: c98670aa02f8cae8b814cb10b0db1f4c250c82d5a4938d214e27694fba8efca6
3
+ metadata.gz: e82d1d3ff65425bea94378118e22aa002f4878f66baedcf058a3a4171a35349e
4
+ data.tar.gz: 61d7e0b169ee60084552f9c1ec245a2001e73fc88ae43be67acb463707f3a0b9
5
5
  SHA512:
6
- metadata.gz: c03529f77875e6b7959c50cd7b8d5980829dbd4d9dbdab08972ca68b90a51d28f86184612853bf63c96fb2f30bf3e4723d526b7d0a81c8ca65c5901425ab80f2
7
- data.tar.gz: 3b0e254cea2dce5f9f2b10157afb4262fadec5a6695ed66fc50127bed025cfc7d615c2879fdf3801edc8c63d7f6fb3f2ba79cff50cd571b96bb752587f62df23
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
@@ -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 my-stack
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
- The output should look similiar to this:
22
+ Here's a screenshot of the output with the colorized diff:
8
23
 
9
- <img src="/img/tutorials/ec2/cfn-update-instance-type.png" alt="Stack Update" class="doc-photo">
24
+ <img src="/img/reference/lono-cfn-diff.png" alt="Stack Update" class="doc-photo">
10
25
 
11
- Notice that before the update gets performed lono provides a preview of the changes that are about to take place. There are two types of "diffs" in the preview.
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
@@ -1,3 +1,3 @@
1
1
  module Lono
2
- VERSION = "4.0.3"
2
+ VERSION = "4.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lono
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.3
4
+ version: 4.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen