lib/aws_recon/collectors/route53.rb in aws_recon-0.2.34 vs lib/aws_recon/collectors/route53.rb in aws_recon-0.2.35
- old
+ new
@@ -17,10 +17,10 @@
log(response.context.operation_name, page)
response.hosted_zones.each do |zone|
struct = OpenStruct.new(zone.to_h)
struct.type = 'zone'
- struct.arn = zone.id
+ struct.arn = "aws:route53:#{@region}:#{@account}:zone/#{zone.name}"
struct.logging_config = @client
.list_query_logging_configs({ hosted_zone_id: zone.id })
.query_logging_configs.first.to_h
resources.push(struct.to_h)