awful 0.0.45 → 0.0.46
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/awful/cloudformation.rb +15 -0
- data/lib/awful/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d157d01948ca24e5720e4bb99092ac61f59f94d
|
4
|
+
data.tar.gz: 883ecf5a96b431922f6a49277e251a8ecdc35945
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cabb8bd5d87cd0107884fb47fbb4ef3ea7c911c99c6d73bd06b004a24fe90434cfdedd0beb2c567e332564995689e14127c428a6d651cf1af0ffb389bdad0366
|
7
|
+
data.tar.gz: 2331c69b58f074f94e779385c9c4b17af4112e8040059e8215834c73025b1aa3ca33c7eb07b00886dc36dca454f8b24290cbc4b39827e6728a781fa15cab86e5
|
data/lib/awful/cloudformation.rb
CHANGED
@@ -101,6 +101,21 @@ module Awful
|
|
101
101
|
end
|
102
102
|
end
|
103
103
|
|
104
|
+
desc 'id NAME RESOURCE', 'get physical_resource_id from a logical_resource_id RESOURCE for stack with NAME'
|
105
|
+
method_option :all, aliases: '-a', default: false, desc: 'Return all details about resource as YAML'
|
106
|
+
def id(name, resource)
|
107
|
+
detail = cf.describe_stack_resource(stack_name: name, logical_resource_id: resource).stack_resource_detail
|
108
|
+
if options[:all]
|
109
|
+
detail.tap do |d|
|
110
|
+
puts YAML.dump(stringify_keys(d.to_hash))
|
111
|
+
end
|
112
|
+
else
|
113
|
+
detail.physical_resource_id.tap do |id|
|
114
|
+
puts id
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
104
119
|
desc 'limits', 'describe cloudformation account limits'
|
105
120
|
def limits
|
106
121
|
cf.describe_account_limits.account_limits.tap do |limits|
|
data/lib/awful/version.rb
CHANGED