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
* Added Prettier, ESLint, and Husky
* Added options for separate S3 and Lambda regions. Removed CloudFront region.
* Updated README
* Bumped version to 1.2.0-rc.0
Copy file name to clipboardExpand all lines: README.md
+8-2
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,10 @@ It is quite verbose, but manageable when it does not need to be executed often a
49
49
The preferred way is to use a configuration file that specifies information about all Lambda@Edge functions for a specific CloudFront distribution.
50
50
Even if there is only one Lambda@Edge function attached to the distribution, the configuration file can simplify the commands considerably.
51
51
52
+
**Note:** If your S3 bucket used to store the Lambda ZIP files is in a different AWS region than where the base Lambda functions
53
+
are deployed, replace `awsRegion` with `s3Region` and `lambdaRegion`. This might be the case if your company has strict security
54
+
or compliance requirements.
55
+
52
56
Start with this configuration file template and modify to fit your needs (triggers can be removed if not used):
53
57
```json
54
58
{
@@ -121,7 +125,9 @@ The following options are global to all commands:
121
125
122
126
-`--dry-run`: Executes the command but does not make any changes in AWS. Note: it still needs to access AWS for metadata such as Lambda versions and CloudFront configurations.
123
127
-`--pwd`: Sets the present working directory. All relative paths (for config file and local file path) will resolve from this value. Defaults to `process.cwd()`
124
-
-`--region`: Sets the AWS region. Defaults to `'us-east-1'`
128
+
-`--region`: Sets the AWS region for both S3 and Lambda. Defaults to `'us-east-1'`
129
+
-`--s3-region`: Sets the AWS region for S3. Overrides the `--region` option, requires `--lambda-region` to be set also.
130
+
-`--lambda-region`: Sets the AWS region for Lambda. Overrides the `--region` option, requires `--s3-region` to be set also.
125
131
-`--config`: The path to the configuration file (can be relative to pwd or absolute)
126
132
-`--vreq`: If using a configuration file, executes the command for the Viewer Request trigger (if configured)
127
133
-`--oreq`: If using a configuration file, executes the command for the Origin Request trigger (if configured)
@@ -295,7 +301,7 @@ Then I have a downstream job to run the rest of the Prod commands to activate th
295
301
296
302
## Contributing
297
303
298
-
Feel free to open a pull request.
304
+
Feel free to open an issue with a feature request or a pull request.
0 commit comments