Skip to content

Releases

3.6.6

Choose a tag to compare

@gbrlgn gbrlgn released this 21 Aug 20:22
  • Add new arm64 build with the 3.6.6-arm64 tag.

3.6.3

Choose a tag to compare

@gabrielamaximino gabrielamaximino released this 04 Jun 13:58
  • Add --exit-code 1 on trivy scan.

3.6.2

Choose a tag to compare

@gabrielamaximino gabrielamaximino released this 09 Apr 19:55
9834996
  • Removing assumeRole from GetSecrets function.

3.6.1

Choose a tag to compare

@gabrielamaximino gabrielamaximino released this 21 Mar 15:33
  • Added the parameter USE_STATIC_IMAGE in the EXTRA_CONTAINERS block. If USE_STATIC_IMAGE is true, you must add the image with the tag in the APP_IMAGE field. 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

Choose a tag to compare

@favachinho favachinho released this 12 Dec 15:42

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:NAME
APP_SECRETS:       
  NAME: arn:aws:secretsmanager:us-east-1:000000000000:secret:SECRET_NAME:NAME::

Add ecs task REPOSITORY CREDENTIALS

Choose a tag to compare

@favachinho favachinho released this 18 Nov 16:12
3.5.0

add credentials provider and fix secret manager generator

3.2.0

Choose a tag to compare

@gabrielamaximino gabrielamaximino released this 17 May 16:17
e434a3c

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_FILE field in the oni.yaml file and run oni create-env-from-secrets command, 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_TAGS field 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

Choose a tag to compare

@favachinho favachinho released this 29 Feb 17:19
3.1.2

fix get last ecr image

3.1.1 - Add option to keep folder after S3 sync on deploy-static

Choose a tag to compare

@gabrielamaximino gabrielamaximino released this 19 Feb 17:09
3661e6e

Add flag -k on deploy-static command to keep S3 files/folder after sync.

3.1.0 - Add awscli and jq

Choose a tag to compare

@gabrielamaximino gabrielamaximino released this 04 Jan 13:41
e4b3610

Add awscli and jq to oni image