|
1 | 1 | # samconfig.toml - SAM CLI configuration for guided and non-interactive deploys |
2 | 2 | # Replace the placeholder values (Hosted Zone ID, region, stack_name, etc.) |
3 | | -# Usage: `sam deploy --config-file samconfig.toml --config-env default` |
| 3 | +# Usage: `sam deploy --config-file samconfig.toml --config-env dev` |
4 | 4 |
|
5 | 5 | version = 0.1 |
6 | 6 |
|
7 | | -[default] |
8 | | -# Global settings that apply to all environments |
9 | | -s3_prefix = "cfm-notification/dev" |
10 | | - #stack_name = "cfm-notification-dev" |
| 7 | +# ============================================================================= |
| 8 | +# Development Environment |
| 9 | +# Usage: sam deploy --config-env dev |
| 10 | +# ============================================================================= |
11 | 11 |
|
| 12 | +[dev.validate.parameters] |
| 13 | +lint = true |
12 | 14 |
|
13 | | -[default.package] |
14 | | -[default.package.parameters] |
| 15 | +[dev.build.parameters] |
| 16 | +cached = true |
| 17 | +parallel = true |
15 | 18 |
|
16 | | -[default.deploy] |
17 | | -[default.deploy.parameters] |
18 | | -# Region to deploy to |
| 19 | +[dev.deploy] |
| 20 | +[dev.deploy.parameters] |
19 | 21 | region = "us-east-1" |
20 | | -# IAM capability; use CAPABILITY_NAMED_IAM if your template creates named roles |
| 22 | +s3_bucket = "cfm-sam-artifacts" |
| 23 | +s3_prefix = "user-fridge-notification-service/dev" |
21 | 24 | capabilities = "CAPABILITY_NAMED_IAM" |
22 | | -# Whether to prompt for changeset confirmation |
23 | 25 | confirm_changeset = true |
24 | | -# Useful to avoid failing when there are no changes |
25 | 26 | no_fail_on_empty_changeset = false |
26 | | -stack_name = "cfm-notification-dev" |
27 | | -resolve_s3 = true |
28 | | - |
29 | | -# Template parameters defined in your template.yaml |
| 27 | +stack_name = "user-fridge-notification-service-dev" |
30 | 28 | parameter_overrides = [ |
31 | | - "Environment=aws", |
32 | | - "Stage=dev", |
33 | | - "CFMHostedZoneId=Z03114523DQKTV4IMEMPR", |
34 | | - "FirebaseProjectId=your-firebase-project-id" # Replace with your actual Firebase Project ID |
| 29 | + "DeploymentTarget=aws", |
| 30 | + "Environment=dev", |
| 31 | + "CFMHostedZoneId=<REPLACE_ME>", |
| 32 | + "FirebaseProjectId=<REPLACE_ME>" # Replace with your actual Firebase Project ID |
35 | 33 | ] |
36 | 34 |
|
37 | | -tags = "project=FridgeFinder service=notifications" |
| 35 | +tags = [ |
| 36 | + "project=CFM", |
| 37 | + "service=user-fridge-notification", |
| 38 | + "env=dev" |
| 39 | +] |
38 | 40 |
|
39 | 41 |
|
40 | | -########################### |
41 | | -# Staging environment |
42 | | -########################### |
| 42 | +# ============================================================================= |
| 43 | +# Staging Environment |
| 44 | +# Usage: sam deploy --config-env staging |
| 45 | +# ============================================================================= |
43 | 46 |
|
44 | | -[staging] |
45 | | -s3_prefix = "cfm-notification/staging" |
46 | | - #stack_name = "cfm-notification-staging" |
| 47 | +[staging.validate.parameters] |
| 48 | +lint = true |
47 | 49 |
|
48 | | -[staging.package] |
49 | | -[staging.package.parameters] |
| 50 | +[staging.build.parameters] |
| 51 | +cached = true |
| 52 | +parallel = true |
50 | 53 |
|
51 | 54 | [staging.deploy] |
52 | 55 | [staging.deploy.parameters] |
53 | 56 | region = "us-east-1" |
| 57 | +s3_bucket = "cfm-sam-artifacts" |
| 58 | +s3_prefix = "user-fridge-notification-service/staging" |
54 | 59 | capabilities = "CAPABILITY_NAMED_IAM" |
55 | 60 | confirm_changeset = true |
56 | 61 | no_fail_on_empty_changeset = false |
57 | | -stack_name = "cfm-notification-staging" |
58 | | -resolve_s3 = true |
| 62 | +stack_name = "user-fridge-notification-service-staging" |
59 | 63 | parameter_overrides = [ |
60 | | - "Environment=aws", |
61 | | - "Stage=staging", |
| 64 | + "DeploymentTarget=aws", |
| 65 | + "Environment=staging", |
62 | 66 | "CFMHostedZoneId=<REPLACE_ME>", |
63 | | - "FirebaseProjectId=your-firebase-project-id" # Replace with your actual Firebase Project ID |
| 67 | + "FirebaseProjectId=<REPLACE_ME>" # Replace with your actual Firebase Project ID |
64 | 68 | ] |
65 | | -tags = "project=FridgeFinder service=notifications env=staging" |
66 | 69 |
|
| 70 | +tags = [ |
| 71 | + "project=FridgeFinder", |
| 72 | + "service=notifications", |
| 73 | + "env=staging" |
| 74 | +] |
67 | 75 |
|
68 | | -########################### |
69 | | -# Production environment |
70 | | -########################### |
71 | 76 |
|
72 | | -[prod] |
73 | | -s3_prefix = "cfm-notification/prod" |
74 | | - #stack_name = "cfm-notification-prod" |
| 77 | +# ============================================================================= |
| 78 | +# Production Environment |
| 79 | +# Usage: sam deploy --config-env prod |
| 80 | +# ============================================================================= |
75 | 81 |
|
76 | | -[prod.package] |
77 | | -[prod.package.parameters] |
| 82 | +[prod.validate.parameters] |
| 83 | +lint = true |
| 84 | + |
| 85 | +[prod.build.parameters] |
| 86 | +cached = true |
| 87 | +parallel = true |
78 | 88 |
|
79 | 89 | [prod.deploy] |
80 | 90 | [prod.deploy.parameters] |
81 | 91 | region = "us-east-1" |
| 92 | +s3_bucket = "cfm-sam-artifacts" |
| 93 | +s3_prefix = "user-fridge-notification-service/prod" |
82 | 94 | capabilities = "CAPABILITY_NAMED_IAM" |
83 | 95 | confirm_changeset = true |
84 | 96 | no_fail_on_empty_changeset = false |
85 | | -stack_name = "cfm-notification-prod" |
86 | | -resolve_s3 = true |
| 97 | +stack_name = "user-fridge-notification-service-prod" |
87 | 98 | parameter_overrides = [ |
88 | | - "Environment=aws", |
89 | | - "Stage=prod", |
| 99 | + "DeploymentTarget=aws", |
| 100 | + "Environment=prod", |
90 | 101 | "CFMHostedZoneId=<REPLACE_ME>", |
91 | | - "FirebaseProjectId=your-firebase-project-id" # Replace with your actual Firebase Project ID |
| 102 | + "FirebaseProjectId=<REPLACE_ME>" # Replace with your actual Firebase Project ID |
| 103 | +] |
| 104 | + |
| 105 | +tags = [ |
| 106 | + "project=FridgeFinder", |
| 107 | + "service=notifications", |
| 108 | + "env=prod" |
92 | 109 | ] |
93 | | -tags = "project=FridgeFinder service=notifications env=prod" |
|
0 commit comments