This article explains how to retrieve a DynamoDB table name stored in AWS Systems Manager Parameter Store (SSM Parameter Store) using an AWS SAM template.
AWS Systems Manager Parameter Store is a service for managing configuration data and secrets in a secure and hierarchical manner.
To retrieve the parameter in an AWS SAM template, use the syntax {{resolve:ssm:/my/database/name}} and assign the necessary IAM roles to the Lambda function.
In code, retrieve the DynamoDB table name from the SSM Parameter Store using the GetParameterCommand from the @aws-sdk/client-ssm package.