Skip to content

Commit

Permalink
Merge pull request #3 from Samseppiol/master
Browse files Browse the repository at this point in the history
Update cfndsl yaml config standard to use external_parameters
  • Loading branch information
Guslington authored Dec 31, 2019
2 parents 584fc36 + 0215262 commit eaa331e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions route53-zone.cfndsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
tags = []
tags << { Key: 'Environment', Value: Ref(:EnvironmentName) }
tags << { Key: 'EnvironmentType', Value: Ref(:EnvironmentType) }
extra_tags.each { |key,value| tags << { Key: key, Value: value } } if defined? extra_tags

extra_tags = external_parameters.fetch(:extra_tags, {})
extra_tags.each { |key,value| tags << { Key: key, Value: value } }

dns_domain = external_parameters[:dns_domain]
Route53_HostedZone('HostedZone') do
Condition 'CreateZone'
Name FnSub(dns_domain)
Expand Down

0 comments on commit eaa331e

Please sign in to comment.