Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
fargate-helper
Advanced tools
This tool creates or updates a Fargate service, along with the pieces that it relies on (ELB Rules, Target Group, Health Check, etc.).
It assumes that an image has been pushed to Docker Hub - it takes the image name and creates a Fargate service around it.
The tool supports the following actions:
The syntax for the script is:
fargate <action> <options>
Example (creates or updates the service my-service
with the specified parameters):
fargate service \
--command "node lib/service.js" \
--containerPort 3000 \
--cpu 1024 \
--env key=value \
--image bespoken/my-service-image \
--memory 2048 \
--name my-service
For create
, the script will:
For update
, the script will:
For delete
, the script will:
Install the package:
npm install fargate-helper -g
Set these environment variables - for the AWS SDK that this relies on:
us-east-1
if not setThe values for configuring the service will come from three places:
For the command-line, values are passed in with the format:
--name value
For values with spaces, they should be passed in as so:
--name "my value"
NOTE The memory and CPU must be valid for Fargate. The supported configurations are here:
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-cpu-memory-error.html
Values can also be set via environment variable
We store certain key default values, such as DockerHub credentials, in defaults in our AWS Secrets.
They can be found under the name "fargate-helper". Values we store there are:
The AWS secret values are meant to be one universal defaults for the account
These values must be manually configured for the deployment to run:
Though not required, these are useful parameters for more advanced cases:
fargate-cluster
Environment variables can also be set inside the running container.
If --passEnv
is set to true, we take all the environment variables currently set and pass them to the container in the taskDefinition, under environment.
Environment variables in the container can also be set by specifying on the command-line:
fargate --env KEY=VALUE
This will set the environment variable key
to value
inside the container.
By default, we create a target group with rules on our ELB when first creating the service.
The target group will be configured:
<SERVICE_NAME>.bespoken.io
to the serviceFor more complex ELB configurations, we recommend they be done manually, and then only update be called (which does not modify the ELB configuration).
To see a sample project that uses this, check out the Utterance Tester:
https://github.com/bespoken/UtteranceTester
In particular, here is the Circle CI configuration:
https://github.com/bespoken/UtteranceTester/blob/master/.circleci/config.yml#L32
FAQs
Helper scripts for deploying to Fargate
The npm package fargate-helper receives a total of 4 weekly downloads. As such, fargate-helper popularity was classified as not popular.
We found that fargate-helper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.