-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdynamodb_oauth.tf
More file actions
33 lines (27 loc) · 693 Bytes
/
dynamodb_oauth.tf
File metadata and controls
33 lines (27 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# DynamoDB Table for OAuth Tokens
# Stores per-user OAuth tokens with field-level encryption for third-party service integrations
resource "aws_dynamodb_table" "oauth_tokens" {
name = "${local.naming_prefix}OAuthTokens"
billing_mode = "PAY_PER_REQUEST"
hash_key = "pk"
attribute {
name = "pk"
type = "S"
}
ttl {
attribute_name = "ttl"
enabled = true
}
server_side_encryption {
enabled = true
kms_key_arn = aws_kms_key.oauth_tokens.arn
}
point_in_time_recovery {
enabled = true
}
tags = {
Name = "${local.naming_prefix}OAuthTokens"
Environment = var.environment
ManagedBy = "Terraform"
}
}