Skip to content

Commit c1a1055

Browse files
committed
Table.dynamodb: add examples with kmsKeyArnSelector
Signed-off-by: Erhan Cagirici <erhan@upbound.io>
1 parent 1de6916 commit c1a1055

File tree

2 files changed

+122
-0
lines changed

2 files changed

+122
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
apiVersion: dynamodb.aws.upbound.io/v1beta2
6+
kind: Table
7+
metadata:
8+
annotations:
9+
meta.upbound.io/example-id: dynamodb/v1beta2/table
10+
name: example
11+
spec:
12+
forProvider:
13+
region: us-west-1
14+
attribute:
15+
- name: UserId
16+
type: S
17+
- name: GameTitle
18+
type: S
19+
- name: TopScore
20+
type: "N"
21+
billingMode: PROVISIONED
22+
hashKey: UserId
23+
rangeKey: GameTitle
24+
readCapacity: 20
25+
writeCapacity: 20
26+
globalSecondaryIndex:
27+
- name: GameTitleIndex
28+
hashKey: GameTitle
29+
rangeKey: TopScore
30+
projectionType: INCLUDE
31+
nonKeyAttributes:
32+
- UserId
33+
readCapacity: 10
34+
writeCapacity: 10
35+
ttl:
36+
attributeName: TimeToExist
37+
enabled: true
38+
tags:
39+
Environment: production
40+
Name: dynamodb-table-1
41+
serverSideEncryption:
42+
kmsKeyArnSelector:
43+
matchLabels:
44+
testing.upbound.io/example-name: table-with-encryption
45+
46+
---
47+
apiVersion: kms.aws.upbound.io/v1beta1
48+
kind: Key
49+
metadata:
50+
annotations:
51+
meta.upbound.io/example-id: dynamodb/v1beta2/table
52+
labels:
53+
testing.upbound.io/example-name: table-with-encryption
54+
name: example-key-table-encryption-uptest
55+
spec:
56+
forProvider:
57+
description: Example test key for dynamodb table server-side encryption
58+
region: us-west-1
59+
60+
---
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
apiVersion: dynamodb.aws.m.upbound.io/v1beta1
6+
kind: Table
7+
metadata:
8+
annotations:
9+
meta.upbound.io/example-id: dynamodb/v1beta1/table
10+
name: example
11+
namespace: upbound-system
12+
spec:
13+
forProvider:
14+
region: us-west-1
15+
attribute:
16+
- name: UserId
17+
type: S
18+
- name: GameTitle
19+
type: S
20+
- name: TopScore
21+
type: "N"
22+
billingMode: PROVISIONED
23+
hashKey: UserId
24+
rangeKey: GameTitle
25+
readCapacity: 20
26+
writeCapacity: 20
27+
globalSecondaryIndex:
28+
- name: GameTitleIndex
29+
hashKey: GameTitle
30+
rangeKey: TopScore
31+
projectionType: INCLUDE
32+
nonKeyAttributes:
33+
- UserId
34+
readCapacity: 10
35+
writeCapacity: 10
36+
ttl:
37+
attributeName: TimeToExist
38+
enabled: true
39+
tags:
40+
Environment: production
41+
Name: dynamodb-table-1
42+
serverSideEncryption:
43+
kmsKeyArnSelector:
44+
matchLabels:
45+
testing.upbound.io/example-name: table-with-encryption
46+
47+
---
48+
apiVersion: kms.aws.m.upbound.io/v1beta1
49+
kind: Key
50+
metadata:
51+
annotations:
52+
meta.upbound.io/example-id: dynamodb/v1beta1/table
53+
labels:
54+
testing.upbound.io/example-name: table-with-encryption
55+
name: example-key-table-encryption-uptest
56+
namespace: upbound-system
57+
spec:
58+
forProvider:
59+
description: Example test key for dynamodb table server-side encryption
60+
region: us-west-1
61+
62+
---

0 commit comments

Comments
 (0)