serverless-url-shortener
所属分类:FaaS/Serverless
开发工具:HCL
文件大小:13KB
下载次数:0
上传日期:2016-08-30 07:50:55
上 传 者:
sh-1993
说明: 无服务器url缩短器,,
(serverless-url-shortener,,)
文件列表:
functions (0, 2016-08-30)
functions\serverless_url_shortener (0, 2016-08-30)
functions\serverless_url_shortener\main.py (2104, 2016-08-30)
infrastructure (0, 2016-08-30)
infrastructure\modules (0, 2016-08-30)
infrastructure\modules\api_gateway (0, 2016-08-30)
infrastructure\modules\api_gateway\api_gateway.tf (1912, 2016-08-30)
infrastructure\modules\api_gateway\outputs.tf (63, 2016-08-30)
infrastructure\modules\api_gateway\variables.tf (71, 2016-08-30)
infrastructure\modules\cloudfront (0, 2016-08-30)
infrastructure\modules\cloudfront\cloudfront.tf (2834, 2016-08-30)
infrastructure\modules\cloudfront\outputs.tf (173, 2016-08-30)
infrastructure\modules\cloudfront\variables.tf (221, 2016-08-30)
infrastructure\modules\dns (0, 2016-08-30)
infrastructure\modules\dns\dns.tf (390, 2016-08-30)
infrastructure\modules\dns\outputs.tf (60, 2016-08-30)
infrastructure\modules\dns\variables.tf (107, 2016-08-30)
infrastructure\modules\iam (0, 2016-08-30)
infrastructure\modules\iam\iam.tf (605, 2016-08-30)
infrastructure\modules\iam\outputs.tf (85, 2016-08-30)
infrastructure\modules\iam\policy (0, 2016-08-30)
infrastructure\modules\iam\policy\lambda_assume_role_policy.json (194, 2016-08-30)
infrastructure\modules\iam\variables.tf (19, 2016-08-30)
infrastructure\modules\s3 (0, 2016-08-30)
infrastructure\modules\s3\outputs.tf (135, 2016-08-30)
infrastructure\modules\s3\s3.tf (862, 2016-08-30)
infrastructure\modules\s3\sources (0, 2016-08-30)
infrastructure\modules\s3\sources\admin (0, 2016-08-30)
infrastructure\modules\s3\variables.tf (60, 2016-08-30)
infrastructure\prod (0, 2016-08-30)
infrastructure\prod\main.tf (960, 2016-08-30)
infrastructure\prod\outputs.tf (193, 2016-08-30)
infrastructure\prod\variables.tf (435, 2016-08-30)
project.json (292, 2016-08-30)
serverless-url-shortener
========================
## Original concept
https://aws.amazon.com/jp/blogs/compute/build-a-serverless-private-url-shortener/
## How to use
```bash
$ curl \
-fsSL 'https://s3-us-west-2.amazonaws.com/sha-public-us-west-2/URLShortener/index.html' \
-o infrastructure/modules/s3/sources/admin/index.html
$ apex infra apply \
-target=module.iam \
-var apex_function_serverless_url_shortener=***
$ apex deploy serverless_url_shortener
$ apex infra apply \
-var-file=secret.tfvars
$ apex deploy serverless_url_shortener \
--set S3Bucket=<_YOUR_BUCKET>
```
近期下载者:
相关文件:
收藏者: