You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[AWS CLI](https://aws.amazon.com/cli/) - sammie uses this for all AWS operations under the hood.
@@ -24,34 +26,39 @@ sammie deploy
24
26
25
27
This will generate a basic serverless application, deploy it to a development environment, and direct you to your app served over https!
26
28
29
+
---
30
+
27
31
### Commands
28
32
29
33
#### init - Generates a serverless application including a SAM template & lambda function
30
34
31
-
`sammie init <name>`
35
+
`sammie init <name>`
32
36
_Options:_
33
37
`-y, --yaml`: Generate yaml for SAM template. Defaults to json, because javascript.
34
38
35
39
#### deploy - Deploys application
36
40
37
-
`sammie deploy`
41
+
`sammie deploy`
38
42
_Options:_
39
43
`-t, --template`: Path to a SAM template. Defaults to `sam.(json|yaml)` in the current directory.
40
44
`-e, --environment`: An environment name to deploy. Defaults to "development".
41
45
`-p, --parameters`: A list of parameters to override in your template.
42
46
47
+
---
48
+
43
49
### Environments
44
50
45
51
It's a best practice to create completely separate stacks for each of your application's environments, rather than a single stack with multiple lambda qualifiers, API Gateway stages, and permissions. This makes your application more portable and reduces the blast radius of taking down your live application during the development cycle.
46
52
47
-
To support this, sammie will deploy separate stacks for you based on your environment option.
48
-
E.g. your stack name is "my-app":
49
-
`sammie deploy` will deploy stack "my-app-development"
53
+
To support this, sammie will deploy separate stacks for you based on the environment option:
54
+
55
+
E.g. your stack name is "my-app":
56
+
`sammie deploy` will deploy stack "my-app-development" (development is the default)
50
57
`sammie deploy --environment production` will deploy stack "my-app-production"
51
58
52
59
#### Environment variables & properties
53
60
54
-
To add environemnt specific variables & properties, you can create separate sam templates named with the environemnt suffix.
61
+
To add environemnt specific variables & properties, create separate sam templates named with the environemnt suffix.
55
62
E.g. `sam-production.json` containing the following, will get merged with your base template `sam.json` upon `sammie deploy --environment production`
0 commit comments