Module: NewRelic::Agent::Aws
- Defined in:
- lib/new_relic/agent/aws.rb
Class Method Summary collapse
Class Method Details
.create_arn(service, resource, region) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/new_relic/agent/aws.rb', line 8 def self.create_arn(service, resource, region) return unless NewRelic::Agent.config[:'cloud.aws.account_id'] "arn:aws:#{service}:#{region}:#{NewRelic::Agent.config[:'cloud.aws.account_id']}:#{resource}" rescue => e NewRelic::Agent.logger.warn("Failed to create ARN: #{e}") end |