Skip to content

Instantly share code, notes, and snippets.

@josjaf
Created August 9, 2019 21:52
Show Gist options
  • Save josjaf/67ecde72f6120947508e98747dfb906d to your computer and use it in GitHub Desktop.
Save josjaf/67ecde72f6120947508e98747dfb906d to your computer and use it in GitHub Desktop.
DynamoDBTable:
Type: AWS::DynamoDB::Table
Properties:
TableName: repokid_roles
AttributeDefinitions:
- AttributeName: RoleId
AttributeType: S
- AttributeName: Account
AttributeType: S
- AttributeName: RoleName
AttributeType: S
KeySchema:
- AttributeName: RoleId
KeyType: HASH
ProvisionedThroughput:
ReadCapacityUnits: '5'
WriteCapacityUnits: '5'
GlobalSecondaryIndexes:
- IndexName: Account
KeySchema:
- AttributeName: Account
KeyType: HASH
Projection:
ProjectionType: INCLUDE
NonKeyAttributes:
- RoleId
ProvisionedThroughput:
ReadCapacityUnits: '5'
WriteCapacityUnits: '5'
- IndexName: RoleName
KeySchema:
- AttributeName: RoleName
KeyType: HASH
Projection:
ProjectionType: INCLUDE
NonKeyAttributes:
- RoleId
ProvisionedThroughput:
ReadCapacityUnits: 5
WriteCapacityUnits: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment