Skip to content

Adding terraform deployment howto #1

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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
README: add output highlighting
  • Loading branch information
jkogut committed Sep 21, 2018
commit 5865ae52d18fd6c52a95ed192f461659dc39e6c3
12 changes: 6 additions & 6 deletions terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ Deploy your application with your artifact already available in the s3 bucket

`terraform apply -var="app_version=1.0.0"`

You should get an output of your API Gateway *base_url*:
You should get an output of your API Gateway **base_url**:

`
```python
Outputs:
base_url = https://95q1xx0fol.execute-api.eu-central-1.amazonaws.com/v1
`
```

Tests
---
Test your lambda function via API Gateway with *curl*:
Test your lambda function via API Gateway with **curl**:

`
```python
curl -H "Content-Type: application/json" -X POST -d '{"answer":"def sum(x,y):\n return x-y"}' base_url/pyexecute
`
```