-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path01-s3-dynamo-composition.yaml
60 lines (60 loc) · 1.68 KB
/
01-s3-dynamo-composition.yaml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
apiVersion: apiextensions.crossplane.io/v1
kind: Composition
metadata:
name: dynamodb-with-bucket
spec:
compositeTypeRef:
apiVersion: my-api.dmaganto.es/v1alpha1
kind: XDatabase
resources:
- name: s3-bucket
base:
apiVersion: s3.aws.crossplane.io/v1beta1
kind: Bucket
metadata:
name: s3-bucket
spec:
forProvider:
accelerateConfiguration:
status: Enabled
acl: private
corsConfiguration:
corsRules:
- allowedHeaders:
- "*"
allowedMethods:
- GET
allowedOrigins:
- "*"
exposeHeaders:
- x-amz-server-side-encryption
lifecycleConfiguration:
rules:
- expiration:
days: 15
filter:
prefix: ola/
status: Enabled
locationConstraint: eu-west-1
providerConfigRef:
name: provider-config-aws
- name: dynamodb
base:
apiVersion: dynamodb.aws.crossplane.io/v1alpha1
kind: Table
metadata:
name: table-dynamodb
spec:
forProvider:
attributeDefinitions:
- attributeName: attribute1
attributeType: S
keySchema:
- attributeName: attribute1
keyType: HASH
provisionedThroughput:
readCapacityUnits: 1
writeCapacityUnits: 1
region: eu-west-1
providerConfigRef:
name: provider-config-aws