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

Documentation wip #2

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Documentation wip #2

wants to merge 11 commits into from

Conversation

AL-SparkGeo
Copy link

Updated Documentation to be more in-line with further internal doc templates that I will be working on. Please let me know what you would like changed.

Copy link

@jbants jbants left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove the readme_old.md. Looks good otherwise!


Project Link: [https://github.com/sparkgeo/terradactile-lambda/](https://github.com/sparkgeo/terradactile-lambda/)

Readme template edited by Alex Leamy at SparkGeo Consulting Ltd.
Copy link

@jbants jbants Mar 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove this edited component

@jbants jbants self-requested a review March 11, 2021 23:42
Copy link
Contributor

@michaelconnor00 michaelconnor00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work @AL-SparkGeo ! I added some comments regarding formatting and being more explicit. Mostly my preference, so do what you want with it.

README.md Outdated
- terradactile/terradactile - Code for the application's Lambda function.
- terradactile/template.yaml - A template that defines the application's AWS resources. **Update the environment variables for BUCKET and ALLOWED_ORIGINS.**
- terradactile/template.yaml - A template that defines the application's AWS resources.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code block is a bit weird to me. Consider not putting File Contents in a code block and leave it as text. Then use to identify thatterradactile/terradactileandterradactile/template.yaml` are paths.


The application uses several AWS resources, including Lambda functions and an API Gateway API. These resources are defined in the `template.yaml` file in this project. You can update the template to add AWS resources through the same deployment process that updates your application code.
**Update the environment variables for BUCKET and ALLOWED_ORIGINS.**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider making this more explicit by adding a .env-example file with those in it. Or use a code block here such as:

export BUCKET=myBucket
export ALLOWED_ORIGINS=*

README.md Outdated

To use the SAM CLI, you need the following tools.

* SAM CLI - [Install the SAM CLI](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html)
* [Python 3 installed](https://www.python.org/downloads/)
* Docker - [Install Docker community edition](https://hub.docker.com/search/?type=edition&offering=community)


The application uses several AWS resources, including Lambda functions and an API Gateway API. These resources are defined in the `template.yaml` file in this project. You can update the template to add AWS resources through the same deployment process that updates your application code.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should template.yaml be terradactile/template.yaml, to be more explicit?

## Deployment

The Serverless Application Model Command Line Interface (SAM CLI) is an extension of the AWS CLI that adds functionality for building and testing Lambda applications. It uses Docker to run your functions in an Amazon Linux environment that matches Lambda. It can also emulate your application's build environment and API.

To build and deploy your application for the first time, cd to the project directory and run the following in your shell:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What directory are you cd into? Consider adding it to the code block below to be explicit.

Updated documentation with Mike's suggestions.
Copy link
Contributor

@darrenwiens darrenwiens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we dont want to commit README_old.md, do we?

@AL-SparkGeo
Copy link
Author

Old readme deleted. I'll remove it from the UI repo as well.

Copy link

@jbants jbants left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.
Sorry for the delay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants