Skip to content

Commit 4664dbd

Browse files
committed
refactor: create a dot-env template file
1 parent 4eaca56 commit 4664dbd

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ PIP := $(PYTHON) -m pip
1414
ifneq ("$(wildcard .env)","")
1515
include .env
1616
else
17-
$(shell echo -e "OPENAI_API_ORGANIZATION=PLEASE-ADD-ME\nOPENAI_API_KEY=PLEASE-ADD-ME\nPINECONE_API_KEY=PLEASE-ADD-ME\nPINECONE_ENVIRONMENT=gcp-starter\nGOOGLE_MAPS_API_KEY=PLEASE-ADD-ME\nDEBUG_MODE=True\n" >> .env)
17+
$(shell cp ./doc/example-dot-env .env)
1818
endif
1919

2020
.PHONY: analyze pre-commit api-init api-activate api-lint api-clean api-test client-init client-lint client-update client-run client-build client-release

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ A [React](https://react.dev/) + [AWS Serverless](https://aws.amazon.com/serverle
2323

2424
2. Review and edit the master [Terraform configuration](./api/terraform/terraform.tfvars) file **before** running the commands below.
2525

26-
3. Add your API keys and AWS CLI configuration data to a `.env` file which the `make init` command below will automatically scaffold for you. See [this screen shot](https://github.com/FullStackWithLawrence/aws-openai/blob/main/doc/img/dot-env.png) example.
26+
3. Add your API keys and AWS CLI configuration data to a `.env` file which the `make init` command below will automatically scaffold for you, or if you prefer, you can use this [example-dot-env](https://github.com/FullStackWithLawrence/aws-openai/blob/main/doc/example-dot-env) template to create the file yourself.
2727

2828
4. Initialize, build and run the application
2929

doc/example-dot-env

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Required environment variables
2+
# ---------------------------------
3+
OPENAI_API_KEY=sk-SET-ME-PLEASE
4+
5+
# Optional environment variables
6+
# ---------------------------------
7+
AWS_APIGATEWAY_CREATE_CUSTOM_DOMAIN=False
8+
AWS_APIGATEWAY_ROOT_DOMAIN=example.com
9+
AWS_PROFILE=default
10+
AWS_REGION=us-east-1
11+
AWS_ACCESS_KEY_ID=SET-ME-PLEASE
12+
AWS_SECRET_ACCESS_KEY=SET-ME-PLEASE
13+
DEBUG_MODE=False
14+
DUMP_DEFAULTS=True
15+
GOOGLE_MAPS_API_KEY=SET-ME-PLEASE
16+
OPENAI_API_ORGANIZATION=org-SET-ME-PLEASE
17+
OPENAI_ENDPOINT_IMAGE_N=4
18+
OPENAI_ENDPOINT_IMAGE_SIZE=1024x768
19+
PINECONE_API_KEY=SET-ME-PLEASE
20+
PINECONE_ENVIRONMENT=gcp-starter

0 commit comments

Comments
 (0)