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
Copy file name to clipboardExpand all lines: README.md
+37Lines changed: 37 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,43 @@ $ terraform destroy
122
122
123
123
**NOTICE: the above command probably ends up with error. See [Deleting Lambda@Edge Functions and Replicas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-edge-delete-replicas.html) for detail.**
124
124
125
+
## Development
126
+
127
+
You just need to install [Docker](https://www.docker.com/) to develop this module.
128
+
129
+
- Terraform configurations for this module is located at [module/](module/) directory.
130
+
- Lambda@Edge functionsource code is located at [src/basic-auth.js](src/basic-auth.js). It needs to be transpiled by [Babel](https://babeljs.io/) and minified by [UglifyJS](http://lisperator.net/uglifyjs/) before zip-compressed by Terraform.
131
+
132
+
### Updating Lambda Function Code
133
+
134
+
If you update the Lambda functionsource code, you also need to update the functioncodein the module. It can be done by running:
135
+
136
+
```bash
137
+
$ ./build.sh
138
+
```
139
+
140
+
### Deleting Generated Lambda Function Code
141
+
142
+
If you want to delete Lambda functioncode generated by running `./build.sh`, run the following:
143
+
144
+
```bash
145
+
$ ./clean.sh
146
+
```
147
+
148
+
You should rarely have to use the command.
149
+
150
+
### Generating Inputs and Outputs Documentation
151
+
152
+
If you add or remove inputs or outputs of this module, you have to update the documentation.
153
+
154
+
You can generate inputs and ouputs documentation of this module by running:
155
+
156
+
```bash
157
+
$ ./docs.sh
158
+
```
159
+
160
+
It shows markdown table of inputs and outputs, same as included in this README.
0 commit comments