Repository navigation
Releases
Releases · DNX-BR/oni
3.6.6
3.6.3
3.6.2
- Removing assumeRole from GetSecrets function.
3.6.1
- Added the parameter
USE_STATIC_IMAGEin theEXTRA_CONTAINERSblock. IfUSE_STATIC_IMAGEis true, you must add the image with the tag in theAPP_IMAGEfield. If it is false, add only the image, and the image tag will be dynamically changed according to the commit.
Example with static image:
development:
ECR_AWS_REGION: us-east-2
ECR_AWS_ACCOUNT: '333333333333'
...
ECR_AWS_ROLE: your-deploy-role
EXTRA_CONTAINERS:
- APP_NAME: datadog
APP_IMAGE: public.ecr.aws/datadog/agent:7.64.1 # static tag image
USE_STATIC_IMAGE: true
IS_FARGATE: false
APP_VARIABLES: []
APP_SECRETS: []
APP_MEMORY: 1024
APP_MEMORY_RESERVATION: 1024
APP_CPU: 1024
Example without static image:
development:
ECR_AWS_REGION: us-east-2
ECR_AWS_ACCOUNT: '333333333333'
...
ECR_AWS_ROLE: your-deploy-role
EXTRA_CONTAINERS:
- APP_NAME: datadog
APP_IMAGE: public.ecr.aws/datadog/agent # tag will be added based on your build number/commit
USE_STATIC_IMAGE: false
IS_FARGATE: false
APP_VARIABLES: []
APP_SECRETS: []
APP_MEMORY: 1024
APP_MEMORY_RESERVATION: 1024
APP_CPU: 1024
Update APP_SECRETS extrac
Update APP_SECRETS extract for allow extract value from secret manager, using full arn of secret or name of secret, for example:
APP_SECRETS:
NAME: SECRET_NAME:NAMEAPP_SECRETS:
NAME: arn:aws:secretsmanager:us-east-1:000000000000:secret:SECRET_NAME:NAME::Add ecs task REPOSITORY CREDENTIALS
3.5.0 add credentials provider and fix secret manager generator
3.2.0
New Features:
- It is now possible to extract variables from SecretsManager and save them to a file before the build step. Simply define the SecretsManager ARN in the
APP_SECRET_EXTRACT_ENV_FILEfield in the oni.yaml file and runoni create-env-from-secretscommand, passing the app name, the path to the file to be saved, and the options to assume the role defined in oni.yaml and format the variables.
Example:
In oni.yaml
development:
ECR_AWS_REGION: us-east-2
ECR_AWS_ACCOUNT: '333333333333'
ECR_AWS_ROLE: your-deploy-role
APP_DEFAULT:
APP_NAME: YYYYYYYYYYYYYY
APP_ROLE: your-deploy-role
...
APP_SECRET_EXTRACT_ENV_FILE: arn:aws:secretsmanager:us-east-2:XXXXXX:secret:/ecs/app/dashboard-Tnr8gh
In pipeline:
oni create-env-from-secrets -n APP_DEFAULT -p .env -a -f
This command will create a file named .env and format the values into the standard format for .env files, like:
KEY=VALUE
KEY_2=VALUE_2
Without the -f flag, the variables will be saved in the same format as they were extracted from the SecretsManager.
- It is now also possible to add tags to the task definition for apps in ECS by adding the
APP_TAGSfield in oni.yaml file with the tag keys and values.
Example in oni.yaml:
development:
ECR_AWS_REGION: us-east-2
ECR_AWS_ACCOUNT: '333333333333'
ECR_AWS_ROLE: your-deploy-role
APP_DEFAULT:
APP_NAME: YYYYYYYYYYYYYY
...
APP_TAGS:
MY_CUSTOM_TAG: VALUE
Fix get last ecr image function
3.1.2 fix get last ecr image
3.1.1 - Add option to keep folder after S3 sync on deploy-static
Add flag -k on deploy-static command to keep S3 files/folder after sync.
3.1.0 - Add awscli and jq
Add awscli and jq to oni image