This directory contains some documentation about the driftctl codebase, aimed at readers who are interested in making code contributions.
driftctl uses Terraform providers besides cloud providers SDK to retrieve data.
Resource listing is done using cloud providers SDK. Resource details retrieval is done by calling terraform providers with gRPC.
Remoteis a representation of a cloud providerResourceis an abstract representation of a cloud provider resource (e.g. S3 bucket, EC2 instance, etc ...)Enumeratoris used to list resources of a given type from a given remote and return a resource list, it should exist only one Enumerator per resourceDetailsFetcheris used to retrieve resource's details of a given type, this is an optional layer and is used only in deep mode.