aws_metadata 0.1.3 → 0.1.4
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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +11 -0
- data/lib/aws_metadata.rb +17 -1
- data/lib/aws_metadata/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b0460eb560e5d3f2550b6b9974d743e273450d5
|
4
|
+
data.tar.gz: 6c4f85ce0e75b54a47e4fa06221910910a080cbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2475064140697e30b234182779b6944240fc7cd865f5d9cad27a9d25284672f338170a265a59f970297acc6d9aaa7323d4fa1356a19575353050c63c416716f
|
7
|
+
data.tar.gz: d60031ec53de55a4ac4edddaabef1e0f963bad642790219403755533c726f77da869a4155a6acf533ec10873a630bb3a2eac2a6ef675b294aae6870ef4fc17c1
|
data/Gemfile.lock
CHANGED
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
|
data/lib/aws_metadata/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|