Get started with your DynamoDB Tables
Create a new graph in GraphOS and follow the "Set up your local development environment" instructions.
Create a user in IAM with at least
dynamodb:ListTables, dynamodb:GetItem
anddynamodb:DescribeTable
permissions for the table you created (AWS docs) - create an Access Key for quick testing or see the Apollo docs for IAM roles configuration.Update your local
router.yaml
file to configure Sigv4 authentication:
authentication:
connector:
sources:
products.dynamodb:
aws_sig_v4:
default_chain:
region: "us-east-1"
service_name: "dynamodb"
# assume_role:
# role_arn: "arn:aws:iam::{accountId}:role/{roleName}"
# session_name: "connector"
Modify your local schema to reflect the shape of your AWS DynamoDB entries. Make sure to modify the
baseURL
in the@source
directive to reflect the region your AWS DynamoDB is deployed to (example).Run
rover dev
with your IAM user Access Key for Sigv4 authenticationl.
export AWS_ACCESS_KEY_ID=...
export AWS_SECRET_ACCESS_KEY=...
rover dev \
--supergraph-config supergraph.yaml \
--router-config router.yaml
Connectors resources
Learn more about Connectors by checking out the Connectors documentation.
Have questions? Check out the Apollo Community for Connectors to discuss.