A DynamoDB table is created for every feature. Variants of features have separate documents. Each document maps entities to their feature value. A metadata table is stored in DynamoDB as well to allow the provider to keep track of its own state. Featureform’s scheduler aims to achieve consistency between DynamoDB’s internal state with the user’s desired state as specified in the metadata service.
First we have to add a declarative DynamoDB configuration in Python. In the following example, only name, access key, and secret key are required, but the other parameters are available.
dynamodb_config.py
Copy
Ask AI
import featureform as ffaws_creds = ff.AWSStaticCredentials( access_key="<AWS_ACCESS_KEY>", secret_key="<AWS_SECRET_KEY>")ff.register_dynamodb( name = "dynamodb", description = "Example inference store", team = "Featureform", credentials = aws_creds, region="us-east-1",)
Once our config file is complete, we can apply it to our Featureform deployment