Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
22K

Deploy to ECS ecs-deploy

Deploy your app to AWS Elastic Container Service.

arguments

  • AWS_ACCESS_KEY_ID - Amazon access key ID
  • AWS_SECRET_ACCESS_KEY - amazon secret key (make sure it's encrypted)
  • aws-region - aws region
  • cluster_name - ecs cluster name
  • image_tag - app image tag
  • service_name - ecs service name
    deploy to ecs:
  type: ecs-deploy
  arguments:
    AWS_ACCESS_KEY_ID: '${{AWS_ACCESS_KEY_ID}}'
    AWS_SECRET_ACCESS_KEY: '${{AWS_SECRET_ACCESS_KEY}}'
    aws-region: us-east-2
    cluster_name: MY_ECS_CLUSTER
    service_name: MY_ECS_SERVICE

  
    deploy to ecs:
  type: ecs-deploy
  arguments:
    AWS_ACCESS_KEY_ID: '${{AWS_ACCESS_KEY_ID}}'
    AWS_SECRET_ACCESS_KEY: '${{AWS_SECRET_ACCESS_KEY}}'
    aws-region: us-east-2
    cluster_name: MY_ECS_CLUSTER
    service_name: MY_ECS_SERVICE
    image_tag: 0.0.1

  
github.com
Oleg Verhovsky
May 10, 2022