k1LoW/awspec

Does awspec support RDS Aurora?

beviz opened this issue · 2 comments

beviz commented

I tried to locate my aurora cluster with awspec, but whatever the value I input, awspec cannot find it.

describe rds(db_name|cluster_id|cluster_resource_id) do
end

Does awspec still not support Aurora as of now? Is there any other way I can leverage temporarily?

k1LoW commented

Thank you for your report.

Probably not yet supported.

def find_rds(id)
begin
res = rds_client.describe_db_instances({
db_instance_identifier: id
})
rescue StandardError
res = rds_client.describe_db_instances({
filters: [{ name: 'db-instance-id', values: [id] }]
})
end
res.db_instances.single_resource(id)
end

awspec now supports rds_db_cluster and rds_global_cluster.
So you can find aurora clusters with these awspec resources.