tecnom1k3 / api-valeriehudak-com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repository is permanently archived. Further development is not to be expected

Needs the serverless framework and an AWS account

create the domains from the serverless.yml file:

sls create_domain --stage dev
sls create_domain --stage prod
...

create the environmental variables in AWS SSM

aws ssm put-parameter --name "/api.YOURDOMAIN.com/environment/{ENVIRONMENT_NAME_FROM_ABOVE}/fromAddress" --value "YOUR_VALUE" --type String
aws ssm put-parameter --name "/api.YOURDOMAIN.com/environment/{ENVIRONMENT_NAME_FROM_ABOVE}/toAddress" --value "YOUR_VALUE" --type String
aws ssm put-parameter --name "/api.YOURDOMAIN.com/environment/{ENVIRONMENT_NAME_FROM_ABOVE}/mailSubject" --value "YOUR_VALUE" --type String

deploy with

sls deploy --stage dev

default environment is dev

see if your api works:

curl -X GET https://dev-api.YOURDOMAIN.com 

TODO

About


Languages

Language:PHP 94.3%Language:Blade 5.1%Language:HTML 0.6%Language:Hack 0.0%Language:Shell 0.0%