aws_metadata 0.1.3 → 0.1.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
  SHA1:
3
- metadata.gz: c63ea1d57e2fe0bb33ba80713de577e870717100
4
- data.tar.gz: 1a2bb7987e6dc1c607ea578447618ddc8c0a1db9
3
+ metadata.gz: 3b0460eb560e5d3f2550b6b9974d743e273450d5
4
+ data.tar.gz: 6c4f85ce0e75b54a47e4fa06221910910a080cbd
5
5
  SHA512:
6
- metadata.gz: f01d97f7200651b849e5f25bf9b502fa01df102c1d16fb32389785ac325937465e00c79e12d1a87748ef01b371b9334e0698a67cc98d62fe77958d3bec94b442
7
- data.tar.gz: c8e30a6776e38f07bc97830f8500d7ead6bccc4321ea137a4c55974e5e3a1f47b6227ed8b30fd3a450c91b135e0d234a9b288484877b700d877fdb3a5bc3616b
6
+ metadata.gz: d2475064140697e30b234182779b6944240fc7cd865f5d9cad27a9d25284672f338170a265a59f970297acc6d9aaa7323d4fa1356a19575353050c63c416716f
7
+ data.tar.gz: d60031ec53de55a4ac4edddaabef1e0f963bad642790219403755533c726f77da869a4155a6acf533ec10873a630bb3a2eac2a6ef675b294aae6870ef4fc17c1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aws_metadata (0.1.2)
4
+ aws_metadata (0.1.4)
5
5
  aws-sdk
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -117,6 +117,17 @@ AWS::Metadata.cfn_dev_outputs_path = 'path/to/cfn_dev_output.yml'
117
117
  AWS::StackOutput.get
118
118
  ```
119
119
 
120
+ The application user's role will need to be authorized to perform: cloudformation:DescribeStacks.
121
+
122
+ If the `AWS::StackOutput` object is not needed, then you can disable it.
123
+
124
+ ```ruby
125
+ AWS::Metadata.configure do |config|
126
+ config.disable_cfn_stack_output = true
127
+ end
128
+ ```
129
+
130
+
120
131
  ## Differences between `AWS::InstMD` and `AWS::Instance`
121
132
 
122
133
  The code for `AWS::Instance` is mostly a copy directly from the aws_instmd repo. The only differences between `AWS::Instance` and `AWS::InstMD` are:
data/lib/aws_metadata.rb CHANGED
@@ -18,7 +18,7 @@ module AWS
18
18
  # end
19
19
  def self.configure
20
20
  yield self
21
- AWS::StackOutput.get
21
+ AWS::StackOutput.get unless disable_cfn_stack_output
22
22
  end
23
23
 
24
24
  # Set to true to return canned Instance responses and stubbed StackOutput responses from a cfn_dev_output.yml file.
@@ -37,6 +37,22 @@ module AWS
37
37
  @stub_responses
38
38
  end
39
39
 
40
+ # Set to true to disable the AWS::StackOutput object and prevent it from loading.
41
+ #
42
+ # @param disable_cfn_stack_output [Boolean]
43
+ # @return [Boolean]
44
+ def self.disable_cfn_stack_output=(disable_cfn_stack_output = false)
45
+ @disable_cfn_stack_output = disable_cfn_stack_output
46
+ end
47
+
48
+ # The flag whether or not to disable the AWS::StackOutput object and prevent it from loading.
49
+ #
50
+ # @param stub_responses [Boolean]
51
+ # @return [Boolean]
52
+ def self.disable_cfn_stack_output
53
+ @disable_cfn_stack_output
54
+ end
55
+
40
56
  # Set the stack name as identified by the Stack Name column in the CloudFormation Section of the AWS console.
41
57
  #
42
58
  # @param stack_name
@@ -1,5 +1,5 @@
1
1
  module AWS
2
2
  module Metadata
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws_metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evident.io
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-06 00:00:00.000000000 Z
11
+ date: 2016-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler