-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsamconfig.toml
77 lines (67 loc) · 2.13 KB
/
samconfig.toml
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
version = 0.1
# Build (default configured for local dev)
[default.build.parameters]
use_container = true
parameter_overrides = [
'Platform=local',
'Stage=dev',
'DockerTag=latest',
'Architetcure=__TARGETARCH__' # Change according to your TARGETARCH environment variable
]
[dev.build.parameters]
use_container = true
parameter_overrides = [
'Stage=dev',
'DockerTag=latest'
]
[staging.build.parameters]
use_container = true
parameter_overrides = [
'Stage=staging',
'DockerTag=latest'
]
[prod.build.parameters]
use_container = true
# Local start-api (default configured for local dev)
[default.local_start_api.parameters]
warm_containers = 'EAGER'
container_host = 'host.docker.internal' # Use for Mac only, else remove
parameter_overrides = [
'Platform=local',
'Stage=dev',
'DockerTag=latest',
'Architetcure=__TARGETARCH__' # Change according to arm64 or x86_64 to match with your TARGETARCH
]
# AWS deploy
[dev.deploy.parameters]
stack_name = 'greeting-service'
region = 'eu-west-1' # Set to primary/default region and override when to deploying to other regions
image_repository = '058264375193.dkr.ecr.eu-west-1.amazonaws.com/greeting' # replace __ACCOUNT_ID__ with AWS dev account id
capabilities = [
'CAPABILITY_IAM',
'CAPABILITY_NAMED_IAM'
]
parameter_overrides = [
'Stage=dev',
'DockerTag=latest'
]
[staging.deploy.parameters]
stack_name = 'greeting-service'
region = 'us-east-1' # Set to primary/default region and override when to deploying to other regions
image_repository = '__STAGING_ACCOUNT_ID__.dkr.ecr.us-east-1.amazonaws.com/greeting' # replace __ACCOUNT_ID__ with AWS dev account id
capabilities = [
'CAPABILITY_IAM',
'CAPABILITY_NAMED_IAM'
]
parameter_overrides = [
'Stage=staging',
'DockerTag=latest'
]
[prod.deploy.parameters]
stack_name = 'greeting-service'
region = 'us-east-1' # Set to primary/default region and override when to deploying to other regions
image_repository = '__PROD_ACCOUNT_ID__.dkr.ecr.us-east-1.amazonaws.com/greeting' # replace __ACCOUNT_ID__ with AWS dev account id
capabilities = [
'CAPABILITY_IAM',
'CAPABILITY_NAMED_IAM'
]