-
Notifications
You must be signed in to change notification settings - Fork 73
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
[DOP-4170]: Create AWS ECS Task definition to process Snooty Parser cache updates #951
Conversation
Your feature branch infrastructure has been deployed! Your webhook URL is: https://l2yimj2j9d.execute-api.us-east-2.amazonaws.com/prod/webhook/githubEndpoint/trigger/build For more information on how to use this endpoint, follow these instructions. |
@@ -1,6 +1,6 @@ | |||
import { Duration } from 'aws-cdk-lib'; | |||
import { Cors, CorsOptions, LambdaIntegration, LambdaRestApi } from 'aws-cdk-lib/aws-apigateway'; | |||
import { Code, Function, Runtime } from 'aws-cdk-lib/aws-lambda'; | |||
import { Code, DockerImageCode, DockerImageFunction, Function, Runtime } from 'aws-cdk-lib/aws-lambda'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these new imports needed still? I believe they're unused.
assumedBy: new ServicePrincipal('ecs-tasks.amazonaws.com'), | ||
}); | ||
|
||
const snootyParseCacheBucket = Bucket.fromBucketName(this, 'snooty-parse-cache', 'snooty-parse-cache'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Since snooty-parse-cache
is already a constant here, should we change it to be a global variable we can utilize here? Not a blocker for merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey Matt! I think this is a great suggestion, but I am running into issues when importing it here. I believe it has to do with the fact that the cdk-infra
is a separate project from the root project, and this leads to funky behavior.
What I'll do is define the constant here, and add that as an environment variable 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok! Def not a blocker!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this mostly LGTM. waiting for changes in last review by Matt and left a minor comment about requiring version / branch / tag detail of doc repo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Ticket
DOP-4170
Notes
This ticket implements the cache update worker via an ECS task. This ticket also contains additional updates to the
update-feature-branch.yml
workflow to process jobs in parallel, as well as provide caching fornode_modules
between jobs.Spike document for context
Verification
Here is a link to the CloudWatch logs that show a successful job run.
Here is a link of the uploaded cache file for
docs-java
.