6
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/cfn-model/validator/reference_validator.rb', line 6
def unresolved_references(cloudformation_hash)
if cloudformation_hash['Parameters'].nil?
parameter_keys = []
else
parameter_keys = cloudformation_hash['Parameters'].keys
end
resource_keys = cloudformation_hash['Resources'].keys
legal_identifiers = Set.new(parameter_keys + resource_keys)
missing_refs = all_references(cloudformation_hash) - legal_identifiers
post_process_special_refs(missing_refs, legal_identifiers)
end
|