The Wayback Machine - https://web.archive.org/web/20200905101508/https://github.com/serverless/components/issues/496/
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom, Branded URL Shortner Component with just API Gateway #496

Open
eahefnawy opened this issue Sep 25, 2019 · 0 comments
Open

Custom, Branded URL Shortner Component with just API Gateway #496

eahefnawy opened this issue Sep 25, 2019 · 0 comments

Comments

@eahefnawy
Copy link
Member

@eahefnawy eahefnawy commented Sep 25, 2019

A great, simple and cheap use case for a component is a URL shortener that might just only require API Gateway proxies with a custom domain name. Lambda & DynamoDB wouldn't be required here.

shortner:
  component: @serverless/url-shortner
  inputs:
    domain: sls.io
    urls:

     # You could provide a custom path => sls.io/NewRelease
      - name: NewRelease
         url: https://serverless.com/blog/some-release-blog

     # or you could just have the component auto generate one for you => sls.io/qdjvbid
      - url: https://serverless.com/blog/some-thing-else
       

outputs

shortner:
  urls:
    - sls.io/NewRelease => https://serverless.com/blog/some-release-blog
    - sls.io/qdjvbid => https://serverless.com/blog/some-thing-else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.