-
Notifications
You must be signed in to change notification settings - Fork 0
/
aws.yaml
64 lines (58 loc) · 1.38 KB
/
aws.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
61
62
63
64
version: "3.8"
secrets:
PRIVATE_KEY:
x-secrets:
Name: /sftp/test-secret-key
VarName: PRIVATE_KEY_SECRET_ARN
services:
s3-to-sftp:
secrets:
- PRIVATE_KEY
environment:
QUEUE_NAME: x-sqs::JobsQueue::QueueName
deploy:
replicas: 3
x-monitoring:
CWAgentCollectEmf: True
x-scaling:
Range: 0-5
x-sqs:
JobsQueue:
Properties:
ReceiveMessageWaitTimeSeconds: 10
Services:
s3-to-sftp:
Access: RWMessages
Scaling:
Steps:
- LowerBound: 1
UpperBound: 10
Count: 1
- LowerBound: 10
UpperBound: 20
Count: 3
- LowerBound: 20
Count: 5
x-s3:
SourceBucket:
Properties:
AccessControl: BucketOwnerFullControl
PublicAccessBlockConfiguration:
BlockPublicAcls: True
BlockPublicPolicy: True
IgnorePublicAcls: True
RestrictPublicBuckets: True
BucketEncryption:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
SSEAlgorithm: "aws:kms"
KMSMasterKeyID: "alias/aws/s3"
NotificationConfiguration:
QueueConfigurations:
- Queue: x-sqs::JobsQueue
Event: s3:ObjectCreated:*
Services:
s3-to-sftp:
Access:
bucket: RO
objects: RO