Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable aws cli pager #107

Closed
artkrz opened this issue Jun 5, 2024 · 0 comments · Fixed by #112
Closed

Disable aws cli pager #107

artkrz opened this issue Jun 5, 2024 · 0 comments · Fixed by #112

Comments

@artkrz
Copy link

artkrz commented Jun 5, 2024

When using the following step:

- label: Deploy
    concurrency_group: "cicd-eval-deploy"
    concurrency: 1
    plugins:
      - ecs-deploy#v3.0.0:
          cluster: "cicd-eval"
          service: "cicd-eval-buildkite"
          task-family: "cicd-eval-buildkite"
          image: "xxx.dkr.ecr.us-west-2.amazonaws.com/cicd-eval:${BUILDKITE_BUILD_NUMBER}"

deployment stalls:

Updating service for cicd-eval-buildkite | 4m 20s
-- | --
  | {
  | "service": {
  | "serviceArn": "arn:aws:ecs:us-west-2:xxx:service/cicd-eval/cicd-eval-buildkite",
  | "serviceName": "cicd-eval-buildkite",
  | "clusterArn": "arn:aws:ecs:us-west-2:xxx:cluster/cicd-eval",
  | "loadBalancers": [],
  | "serviceRegistries": [],
  | "status": "ACTIVE",
  | "desiredCount": 1,
  | "runningCount": 1,
  | "pendingCount": 0,
  | "capacityProviderStrategy": [
  | {
  | "capacityProvider": "FARGATE",
  | "weight": 1,
  | "base": 0
  | }
  | ],
  | "platformVersion": "LATEST",
  | "platformFamily": "Linux",
  | "taskDefinition": "arn:aws:ecs:us-west-2:xxx:task-definition/cicd-eval-buildkite:8",
  | :

This is caused by paginated output of task definition json, to mitigate I've added:

[default]
cli_pager=

to ~/.aws/config of buildkite-agent user home but this should be addressed by adding --no-paginate to all AWS CLI commands.

artkrz added a commit to artkrz/ecs-deploy-buildkite-plugin that referenced this issue Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant