![38% of CISOs Fear They’re Not Moving Fast Enough on AI](https://cdn.sanity.io/images/cgdhsj6q/production/faa0bc28df98f791e11263f8239b34207f84b86f-1024x1024.webp?w=400&fit=max&auto=format)
Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.