ステップ 9: データモデルをデプロイする - AWS 規範ガイダンス

ステップ 9: データモデルをデプロイする

この特定の例では、モデルのデプロイは、最新のデータベース開発とオペレーション用のアプリケーションである NoSQL Workbench を使用して行われました。このツールを使用して、データモデルを作成し、データをアップロードし、AWS アカウント へ直接デプロイすることができます。この例を実装する場合は、NoSQL Workbench によって生成された次の AWS CloudFormation テンプレートを使用できます。

AWSTemplateFormatVersion: 2010-09-09 Resources: Components: Type: 'AWS::DynamoDB::Table' Properties: KeySchema: - AttributeName: ComponentId KeyType: HASH AttributeDefinitions: - AttributeName: ComponentId AttributeType: S - AttributeName: ParentId AttributeType: S - AttributeName: GraphId AttributeType: S - AttributeName: Path AttributeType: S GlobalSecondaryIndexes: - IndexName: GS1 KeySchema: - AttributeName: ParentId KeyType: HASH - AttributeName: ComponentId KeyType: RANGE Projection: ProjectionType: KEYS_ONLY - IndexName: GSI2 KeySchema: - AttributeName: GraphId KeyType: HASH - AttributeName: Path KeyType: RANGE Projection: ProjectionType: INCLUDE NonKeyAttributes: - ComponentId BillingMode: PAY_PER_REQUEST TableName: Components