-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GQL-98: Implements AWS CDK and removes Serverless Framework (#152)
* GQL-98: Implements AWS CDK and removes Serverless Framework * GQL-98: Updates library * GQL-98: Fixes python tests * GQL-98: Adds docker network to sam command, and fixes container weirdness * GQL-98: Update cdk util library * GQL-98: Adds the api gateway deployment id to an env variable * GQL-98: Fixes s3 lambda trigger source
- Loading branch information
Showing
42 changed files
with
14,039 additions
and
6,036 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Paths to external applications | ||
CMR_ROOT_URL=https://cmr.earthdata.nasa.gov | ||
DRAFT_MMT_ROOT_URL=https://draftmmt.earthdata.nasa.gov | ||
MMT_ROOT_URL=https://mmt.earthdata.nasa.gov | ||
URS_ROOT_URL=https://urs.earthdata.nasa.gov | ||
|
||
# EDL configs, obtain from team member | ||
# Client ID and Password are used for EDL Groups | ||
EDL_CLIENT_ID=EDL_CLIENT_ID | ||
EDL_PASSWORD=EDL_PASSWORD | ||
|
||
# JWK and Key ID are used for EDL JWT token verification | ||
EDL_JWK=EDL_JWK | ||
EDL_KEY_ID=EDL_KEY_ID | ||
|
||
# Graph Database Configurations | ||
GRAPHDB_HOST=http://localhost | ||
GRAPHDB_PATH=gremlin | ||
GRAPHDB_PORT=8182 | ||
|
||
# Stellate Configrations (https://stellate.co/) | ||
STELLATE_APP_NAME="" | ||
STELLATE_KEY="" | ||
|
||
# Timeout for lambda | ||
LAMBDA_TIMEOUT=30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cdk.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Contributing to Earthdata Search | ||
|
||
Thanks for contributing! | ||
|
||
## Making Changes | ||
|
||
To allow us to incorporate your changes, please use the following process: | ||
|
||
1. Fork this repository to your personal account. | ||
2. Create a branch and make your changes. | ||
3. Test the changes locally/in your personal fork. | ||
4. Submit a pull request to open a discussion about your proposed changes. | ||
5. The maintainers will talk with you about it and decide to merge or request additional changes. | ||
|
||
## Commits | ||
|
||
Our ticketing and CI/CD tools are configured to sync statuses amongst each other. Commits play an important role in this process. Please start all commits with the GQL ticket number associated with your feature, task, or bug. All commit messages should follow the format "GQL-XXXX: [Your commit message here]" | ||
|
||
## Disclaimer | ||
|
||
The Earthdata Search development team will review all pull requests submitted. Only requests that meet the standard of quality set forth by existing code, following the patterns set forth by existing code, and adhering to the design patterns set forth by existing UI elements will be considered and/or accepted. | ||
|
||
For general tips on open source contributions, see [Contributing to Open Source on GitHub](https://guides.github.com/activities/contributing-to-open-source/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
cd src/earthdataVarinfo | ||
pip install -r requirements.txt -t . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
# This will start the watch script and start the sam local api. | ||
# The watch script watches for code changes and rebuilts the CDK template. | ||
# The sam local api starts the api locally using the CDK template. | ||
|
||
# This is done in a shell script because CTRL-C will kill both processes and shut down any running docker containers. | ||
(trap 'kill 0' SIGINT; npm run watch & sam local start-api -t ./cdk/graphql/cdk.out/graphql-dev.template.json --warm-containers LAZY --port 3013 --docker-network host) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
*.js | ||
!jest.config.js | ||
*.d.ts | ||
node_modules | ||
|
||
# CDK asset staging directory | ||
.cdk.staging | ||
cdk.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
*.ts | ||
!*.d.ts | ||
|
||
# CDK asset staging directory | ||
.cdk.staging | ||
cdk.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Welcome to your CDK TypeScript project | ||
|
||
This is a blank project for CDK development with TypeScript. | ||
|
||
The `cdk.json` file tells the CDK Toolkit how to execute your app. | ||
|
||
## Useful commands | ||
|
||
* `npm run build` compile typescript to js | ||
* `npm run watch` watch for changes and compile | ||
* `npm run test` perform the jest unit tests | ||
* `npx cdk deploy` deploy this stack to your default AWS account/region | ||
* `npx cdk diff` compare deployed stack with current state | ||
* `npx cdk synth` emits the synthesized CloudFormation template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env node | ||
import * as cdk from 'aws-cdk-lib'; | ||
import { GraphqlInfrastructureStack } from '../lib/graphql-infrastructure-stack'; | ||
|
||
const { | ||
AWS_ACCOUNT = '1234567890', | ||
AWS_REGION = 'us-east-1', | ||
STAGE_NAME = 'dev', | ||
} = process.env; | ||
const app = new cdk.App(); | ||
new GraphqlInfrastructureStack(app, `graphql-infrastructure-${STAGE_NAME}`, { | ||
/* If you don't specify 'env', this stack will be environment-agnostic. | ||
* Account/Region-dependent features and context lookups will not work, | ||
* but a single synthesized template can be deployed anywhere. */ | ||
|
||
/* Uncomment the next line to specialize this stack for the AWS Account | ||
* and Region that are implied by the current CLI configuration. */ | ||
// env: { account: process.env.CDK_DEFAULT_ACCOUNT, region: process.env.CDK_DEFAULT_REGION }, | ||
|
||
/* Uncomment the next line if you know exactly what Account and Region you | ||
* want to deploy the stack to. */ | ||
env: { account: AWS_ACCOUNT, region: AWS_REGION }, | ||
|
||
/* For more information, see https://docs.aws.amazon.com/cdk/latest/guide/environments.html */ | ||
}); |
Oops, something went wrong.