stackup 1.2.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f55503b308cdd370ea8bc46922ad2acbc9567886
4
- data.tar.gz: 2b623ad6f1352d455ff3693b5e89a0dca11aec71
2
+ SHA256:
3
+ metadata.gz: 9b2b7a0536a72a652bc20f3e2afaa65db33bb97c03fbc761bae6bebd9c6cd664
4
+ data.tar.gz: c6dfbccf6f5428b37af5ba7b93ddd95f5e22f20ee65f3f92f26c1919384763f8
5
5
  SHA512:
6
- metadata.gz: 58ab92b1218ba18e61b0d2bcab092963f8215436e26122ee9d43e8f6568871ec9c19472864fced2068ead2c1a0a307a43c00838451605ba9cbbdcb4ec489cf80
7
- data.tar.gz: 9a0f8d2415a2dc15c7a09177845ca395d2eefd11ee1184eddae1903580b703a41769338719dab03177cd2c3029374e4ae36aecfd0a7c392f2a71d69c4b956b1a
6
+ metadata.gz: 46c0107e466288546bc932eda695cf337b16b3e60755090eb16c6fc66654560fdc3126d0cd87d9ab57a8f24b3fe45161bd5874b182dfce5c1e9b2eafe20934d7
7
+ data.tar.gz: d461a8ebdc5ad7cf4771e9e86eff852a0af2b513e29bbc46bdf0df10b9536b57711aaf95057062ac1079049a8c74fabb8fd7ea8121a216048128d500cf6335b6
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.3.0 (2018-05-22)
2
+
3
+ * Fix #53: Add support for CloudFormation Service Role
4
+
1
5
  ## 1.2.0 (2017-10-24)
2
6
 
3
7
  * Add support for change-sets.
data/README.md CHANGED
@@ -125,6 +125,15 @@ You can also use the `--with-role` option to temporarily assume a different IAM
125
125
  $ stackup myapp-test up -t template.json \
126
126
  --with-role arn:aws:iam::862905684840:role/deployment
127
127
 
128
+ You can use the `--sercvice-role-arn` option to pass a specific IAM service role for CloudFormation to use for stack
129
+ operations:
130
+
131
+ $ stackup myapp-test up -t template.json \
132
+ --service-role-arn arn:aws:iam::862905684840:role/cloudformation-role
133
+
134
+
135
+ (for more information on CloudFormation service roles, see [AWS' documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-servicerole.html)).
136
+
128
137
  ### Using URLs as inputs
129
138
 
130
139
  You can use either local files, or HTTP URLs, to specify inputs; stack template, parameters, etc.
@@ -192,6 +192,13 @@ Clamp do
192
192
  :attribute_name => :policy_source,
193
193
  &Stackup::Source.method(:new)
194
194
 
195
+ option "--service-role-arn", "SERVICE_ROLE_ARN", "cloudformation service role ARN" do |arg|
196
+ unless arg =~ %r{^arn:aws:iam::\d+:role/}
197
+ fail ArgumentError, "#{arg.inspect} doesn't look like a role ARN"
198
+ end
199
+ arg
200
+ end
201
+
195
202
  option "--on-failure", "ACTION",
196
203
  "when stack creation fails: DO_NOTHING, ROLLBACK, or DELETE",
197
204
  :default => "ROLLBACK"
@@ -218,6 +225,7 @@ Clamp do
218
225
  options[:stack_policy] = policy_source.data
219
226
  end
220
227
  end
228
+ options[:role_arn] = service_role_arn if service_role_arn
221
229
  options[:use_previous_template] = use_previous_template?
222
230
  report_change do
223
231
  stack.create_or_update(options)
@@ -1,5 +1,5 @@
1
1
  module Stackup
2
2
 
3
- VERSION = "1.2.1"
3
+ VERSION = "1.3.0"
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stackup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Williams
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-12-07 00:00:00.000000000 Z
12
+ date: 2018-05-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk-resources
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  version: '0'
135
135
  requirements: []
136
136
  rubyforge_project:
137
- rubygems_version: 2.6.14
137
+ rubygems_version: 2.7.6
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: Manage CloudFormation stacks