Class: Chef::Resource::AwsNetworkInterface

Inherits:
Provisioning::AWSDriver::AWSResourceWithEntry
  • Object
show all
Defined in:
lib/chef/resource/aws_network_interface.rb

Instance Method Summary collapse

Instance Method Details

#aws_objectObject

TODO implement eip address association attribute :elastic_ip_address, kind_of: [ String, AWS::EC2::ElasticIp, AwsEipAddress, FalseClass ]



29
30
31
32
33
# File 'lib/chef/resource/aws_network_interface.rb', line 29

def aws_object
  driver, id = get_driver_and_id
  result = driver.ec2.network_interfaces[id] if id
  result && result.exists? ? result : nil
end