-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paths3-copy-chain-arc-project.jsonnet
100 lines (99 loc) · 2.07 KB
/
s3-copy-chain-arc-project.jsonnet
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
local props = import '../.properties.libsonnet';
local stage = props.stage;
local account = props.account;
local region = props.region;
local bucketName = stage +'-native-copy-chain-' + account + '-' + region;
local bucketPrefix = 's3://' + bucketName;
local unit = 'Twelfths';
{
project: {
name: 'S3Chain',
version: '20230101-00',
},
placement: {
stage: stage,
provider: 'aws',
account: account,
region: region,
},
resources: [
{
type: 'aws:core:s3Bucket',
name: 'bucket',
bucketName: bucketName,
},
],
boundaries: [
{
type: 'aws:core:s3PutListenerBoundary',
name: 'IngressPutListener',
// infrequent: one event per interval
// frequent: many events per interval, slightly higher cost
eventArrival: "infrequent",
dataset: {
name: 'ingress-chain',
version: '20220101',
pathURI: bucketPrefix+'/ingress/',
},
lotUnit: unit,
},
],
arcs: [
{
type: 'aws:core:s3CopyArc',
name: 'copyA',
sources: {
main: {
name: 'ingress-chain',
version: '20220101',
},
},
sinks: {
main: {
name: 'copy-a-chain',
version: '20230101',
pathURI: bucketPrefix+'/copy-a/',
},
},
},
{
type: 'aws:core:s3CopyArc',
name: 'copyB',
sources: {
main: {
name: 'copy-a-chain',
version: '20230101',
},
},
sinks: {
main: {
name: 'copy-b-chain',
version: '20230101',
pathURI: bucketPrefix+'/copy-b/',
},
},
workload: {
workloadProps: {
failArcOnPartialPercent: 0.1,
},
},
},
{
type: 'aws:core:s3CopyArc',
name: 'copyC',
sources: {
main: {
name: 'copy-b-chain',
version: '20230101',
},
},
sinks: {
main: {
name: 'copy-c-chain',
version: '20230101',
pathURI: bucketPrefix+'/copy-c/',
},
},
},
],
}