Skip to content
Merged
Prev Previous commit
Next Next commit
docs: setup dummy aws credentials
Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>
  • Loading branch information
TremaMiguel committed Apr 4, 2022
commit 0440598922d111af932d2488ae28e4e37bc6a75f
12 changes: 11 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,17 @@ To test across clouds, on top of setting up Redis, you also need GCP / AWS / Sno

**AWS**
1. TODO(adchia): flesh out setting up AWS login (or create helper script)
2. To avoid AWS fees `DynamoDBOnlineStore` can be tested locally if you deploy DynamoDB Locally on your Computer, for this setup a [Local DynamoDB on your Computer](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html)
2. To avoid AWS fees `DynamoDBOnlineStore` can be tested locally if you deploy DynamoDB Locally on your Computer, for this

A. Setup a [Local DynamoDB on your Computer](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html).

B. Setup dummy AWS Credentials and `us-west-2` as region. (Optional: Only if testing the `DynamoDBOnlineStore`)

```txt
export AWS_ACCESS_KEY_ID: 'DUMMYIDEXAMPLE'
export AWS_SECRET_ACCESS_KEY: 'DUMMYEXAMPLEKEY'
export AWS_DEFAULT_REGION: 'us-west-2'
```
3. Modify `RedshiftDataSourceCreator` to use your credentials

**Snowflake**
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/feast/infra/online_stores/dynamodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple

from pydantic import StrictStr
from pydantic.typing import Literal
from pydantic.typing import Literal, Optional

from feast import Entity, FeatureView, utils
from feast.infra.infra_object import DYNAMODB_INFRA_OBJECT_CLASS_TYPE, InfraObject
Expand Down Expand Up @@ -53,7 +53,7 @@ class DynamoDBOnlineStoreConfig(FeastConfigBaseModel):
batch_size: int = 40
"""Number of items to retrieve in a DynamoDB BatchGetItem call."""

endpoint_url: str = None
endpoint_url: Optional[str] = None
"""DynamoDB local development endpoint Url, i.e. http://localhost:8000"""

region: StrictStr
Expand Down