-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathserverless.yml
27 lines (22 loc) · 1.57 KB
/
serverless.yml
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
service: global-reverse-proxy-server-1 # Assuming there's only one EC2 instance per region, otherwise change stack name manually
custom:
# Caddy config
caddy:
targetDomainName: 'your-target-domain.com' # The target domain name where to proxy to
letsEncryptEmailAddress: '[email protected]' # Use for automatic certificate generation
domainServiceEndpoint: '${cf:global-reverse-proxy-domain-service-${self:provider.stage}.DomainVerifierFunctionUrl}' # Get Function URL from domain service stack export
dynamoDBTableArn: '${cf:global-reverse-proxy-domain-service-${self:provider.stage}.CertificateTableArn}' # Get DynamoDB table name from base stack export
dynamoDBTableName: '${cf:global-reverse-proxy-domain-service-${self:provider.stage}.CertificateTableName}' # Get DynamoDB table name from base stack export
dynamoDBTableRegion: '${cf:global-reverse-proxy-domain-service-${self:provider.stage}.CertificateTableRegion}' # Get DynamoDB table name from base stack export
# EC2
ec2:
instanceType: 't2.micro' # For free tier usage
keyName: 'the-key-name' # Update this to your key name, which you need to create in the AWS Console BEFORE deploying this stack
sshClientIPAddress: 'XXX.XXX.XXX.XXX' # Change to your current IP address, and enable the port 22 portion in the SecurityGroup
provider:
name: aws
region: ${opt:region, 'us-east-1'} # Can be changed by the --region CLI option
stage: ${opt:stage, 'prd'} # Can be changed by the --stage CLI option
resources:
- ${file(resources/ec2.yml)}
- ${file(resources/outputs.yml)}