-
Notifications
You must be signed in to change notification settings - Fork 7
Add Search API with OpenSearch Domain and VPC Resources #1219
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
Merged
Merged
Changes from all commits
Commits
Show all changes
137 commits
Select commit
Hold shift + click to select a range
e968b41
Add VPC stack with tests
landonshumway-ia c7a6fd0
PR feedback
landonshumway-ia 100b125
Add encryption to VPC flow logs
landonshumway-ia 3d4054a
PR feedback - fix docs
landonshumway-ia f513430
Add search persistent stack with OpenSearch Domain
landonshumway-ia 90b57f8
remove 'beta release' from the IT docs
landonshumway-ia 6097f5c
Set explicit CIDR blocks
landonshumway-ia d72fea4
Set explicit subnet for non-prod OpenSearch domain
landonshumway-ia fad5fb0
Fix cloudwatch policy
landonshumway-ia 7c6fb81
Add alarms for domain monitoring
landonshumway-ia e1bcd0e
Tweak alarms thresholds
landonshumway-ia ae50c5a
Add advanced option to prevent specifying index in queries for security
landonshumway-ia 5bfbfde
Add custom resource to manage OpenSearch indices
landonshumway-ia 9028af0
Add requirements for search lambda directory
landonshumway-ia 56f6ff8
Add domain access policy to restrict access to lambda roles
landonshumway-ia 2d066ce
formatting
landonshumway-ia 8c143b4
apply vpc policy to all lambdas
landonshumway-ia f411f6d
PR feedback
landonshumway-ia a30147c
Add needed nag suppressions
landonshumway-ia 7bd9344
Use custom analyzer to support ascii folding in name searches
landonshumway-ia 4078df0
Add needed HEAD permission for checking if an index exists
landonshumway-ia 4dc665c
Add HEAD permission to access policy for search lambda role
landonshumway-ia 6a965de
PR feedback
landonshumway-ia 8f79d4d
fix commment
landonshumway-ia ad4cca8
Add Search API Stack with resources
landonshumway-ia 6fff21a
Formatting
landonshumway-ia 91236e5
WIP - add lambda to index provider documents
landonshumway-ia fc20257
add lambda runtime logic to index provider documents
landonshumway-ia 7bfafe7
PR feedback
landonshumway-ia 391d57b
serialize provider documents before indexing
landonshumway-ia 6ebb48d
Do not specify index in bulk index body
landonshumway-ia 6eb717b
Restrict api access to search operation
landonshumway-ia e13a875
Add search api spec
landonshumway-ia c552bec
update download spec script
landonshumway-ia bf8e6da
remove lines added from merge conflict
landonshumway-ia 4117c1c
update requirements to latest
landonshumway-ia 98cb664
Add test coverage for search related logic
landonshumway-ia 6939625
update domain engine version to latest
landonshumway-ia e6f21d5
Extract domain definition into separate construct
landonshumway-ia da4e5e2
PR feedback
landonshumway-ia a7d7b70
support pagination for large data sets
landonshumway-ia 21ef219
formatting
landonshumway-ia 4324249
Add retry logic to handle read timeout errors
landonshumway-ia 558efa1
update doc to match current behavior
landonshumway-ia 85d8a5b
Add military status fields to mapping
landonshumway-ia c34ab1b
Formatting/linter
landonshumway-ia d552e57
update dev requirement
landonshumway-ia 7a3be2b
Update node dependency
landonshumway-ia f42e001
Update PR feedback
landonshumway-ia 9f390df
Update engine to latest
landonshumway-ia 1f49f71
Add endpoint to search privileges
landonshumway-ia 31f605d
logging/formatting
landonshumway-ia 5737ccf
Update purchase requirements
landonshumway-ia a23b092
Update requirements to latest
landonshumway-ia 509438a
Add notes about blue/green deployments
landonshumway-ia 9d3f59b
PR feedback
landonshumway-ia 8e572aa
Add documentation for search functionality
landonshumway-ia ded27a0
fix snapshot for test
landonshumway-ia 8997a96
update requirements to latest
landonshumway-ia 64b51eb
PR feedback
landonshumway-ia 7d0bf76
remove unused vars
landonshumway-ia 68b4fe5
Only return matching privileges on nested searches
landonshumway-ia e403c09
formatting
landonshumway-ia 65181e3
Support privilege CSV exports
landonshumway-ia 0421b2a
formatting
landonshumway-ia c4f3077
update comment
landonshumway-ia 74d3361
PR feedback
landonshumway-ia d2394d7
Return 404 if no matches found
landonshumway-ia 2ecead7
Search for all matches within a single query
landonshumway-ia 87a323e
Add export request schema
landonshumway-ia dd8f133
formatting
landonshumway-ia 687a825
Add runtime auth check for search endpoints
landonshumway-ia 02a1ace
set endpoints to member variables
landonshumway-ia 05cd632
fix test comments
landonshumway-ia 9e300b5
Increase memory size of search handler
landonshumway-ia da5c523
Add DynamoDB stream ingest handler
landonshumway-ia 4cd7897
PR feedback
landonshumway-ia afbac70
correct docstring
landonshumway-ia 9900d88
Handle deletion of documents if all provider records are removed from…
landonshumway-ia 72588e2
add test case where document has already been deleted
landonshumway-ia d1b6acc
clarify log markers
landonshumway-ia cb2fbcd
Track ingest failures for retries
landonshumway-ia 59428bc
write failures in batch
landonshumway-ia ba5b861
Retry failed ingest events
landonshumway-ia 19ba6b5
Add table name env var to handler
landonshumway-ia 553ce7d
reduce duplication
landonshumway-ia 213333c
remove unused var
landonshumway-ia 934d2af
remove documents from index on retry if provider not found
landonshumway-ia face0a3
Using event bridge pipe to process dynamodb stream
landonshumway-ia ee4e033
Remove unneeded search event state table
landonshumway-ia 9f5505a
linter/logs
landonshumway-ia c5d0783
Add comments to clarify SQS retry behavior
landonshumway-ia de916a7
Reduce ingest batch size to 2000
landonshumway-ia 77cac60
PR feedback - deserialize records
landonshumway-ia 105dc7c
Add query definitions for ingest and search
landonshumway-ia 58b4d36
Tweak ingest config based on load tests
landonshumway-ia 7e2c26d
PR feedback
landonshumway-ia 2f278ec
Update bootstrap stack permission boundary to allow new services
landonshumway-ia 59b7266
Add opensearch service link role to bootstrap templates
landonshumway-ia 5d3b007
update multi-account project requirements to latest
landonshumway-ia 9ac7c16
Add additional domain config settings based on testing
landonshumway-ia a5b222d
Tweak master node instance type based on testing
landonshumway-ia 899a9a2
Fix PROD index shard configuration
landonshumway-ia 46f0045
Set ingest pipeline to latest starting position
landonshumway-ia eaa5406
Add upgrade strategy notes based on findings from testing
landonshumway-ia ec0d65f
PR feedback
landonshumway-ia 2a86ea5
simplify check for prod env
landonshumway-ia 16ac231
remove unused params
landonshumway-ia 3d449e5
Check for cross-index queries
landonshumway-ia d9e4be8
remove outdated comment
landonshumway-ia dd9f7bb
Return query errors to client
landonshumway-ia d759714
Add domain health check logic to index manager to avoid timeouts
landonshumway-ia c2ad9fa
Returning specific client error message
landonshumway-ia ba3f2b8
Handling search timeouts
landonshumway-ia 26c16bb
linter
landonshumway-ia 6e790b1
update comments
landonshumway-ia 1c863ff
Check compact fields to prevent multi-index reaching
landonshumway-ia 8b582b9
Add error alarms for search and ingest
landonshumway-ia 34cf9e3
Cleanup/update docs with latest information
landonshumway-ia 506e042
Reduce complexity of migrations
landonshumway-ia 10de04e
PR feedback
landonshumway-ia 84f113e
enable search api deployment for prod
landonshumway-ia da2a72e
Instantiating opensearch client outside of lambda handler
landonshumway-ia 1898a21
update requirements to latest
landonshumway-ia d9b16c6
update multi-account folder requirements to latest
landonshumway-ia 0f9b1ef
update purchases folder requirements to latest
landonshumway-ia dbfb621
Add comment about purpose of logging request body
landonshumway-ia e1f6055
Initial PR feedback
landonshumway-ia 62d13cb
PR feedback - redact request body in log
landonshumway-ia 3f4cc88
formatting/linter
landonshumway-ia 68a2b25
update purchase dev dependency
landonshumway-ia 2fa4833
PR feedback - docs/comments
landonshumway-ia 2987a08
PR feedback - remove unused field from test setup
landonshumway-ia 1f49ca8
PR feedback - add note of race condition when indexing records
landonshumway-ia 150d165
PR feedback - clarify test comment
landonshumway-ia abd1228
update other test comment
landonshumway-ia eb63ee8
filter mismatched records from search results
landonshumway-ia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,2 @@ | ||
| PROD_ENV_NAME = 'prod' | ||
| BETA_ENV_NAME = 'beta' |
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.