Module: Eaglenube::Synchronizer::AWS::Database::AcmSyncMethods
- Includes:
- ApiWrapper::AWS::Database, CloudObjectMapper::AWS
- Defined in:
- lib/eaglenube/synchronizer/aws/database.rb
Instance Method Summary collapse
Methods included from CloudObjectMapper::AWS
#cloud_obj_mapper, #cloud_obj_mapper_yml, #parse_provider_data
Methods included from ApiWrapper::AWS::Database
Instance Method Details
#sync_resource(credential, region_code) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/eaglenube/synchronizer/aws/database.rb', line 21 def sync_resource(credential, region_code) remote_db_instances = describe_db_instances(credential, region_code) remote_db_instances.each do |remote_db_instance| , optional_attributes = yield(remote_db_instance) create_or_update(remote_db_instance, , **optional_attributes) end end |