ecs-deploy icon indicating copy to clipboard operation
ecs-deploy copied to clipboard

--aws-instance-profile is not yet in use

Open davidshare opened this issue 4 years ago • 1 comments

I keep getting this error when trying to deploy to ecs via gitlab ci

--aws-instance-profile is not yet in use

This is the anchor I use for the deployment

.deploy: &deploy_to_ecr
  image:
    name: silintl/ecs-deploy:latest
    entrypoint: [""]
  stage: deploy
  script:
    - /ecs-deploy --cluster $CI_AWS_ECS_CLUSTER --service-name $CI_AWS_ECS_SERVICE
      --aws-instance-profile arn:aws:iam::668089922344:instance-profile/app-graph-gitlab-runner-role
      --image $ECR:$CI_COMMIT_SHORT_SHA
      --region us-west-2
      --verbose
  when: manual

This is how it is used.

deploy finance:
variables:
  <<: *deploy-variables
  CI_AWS_ECS_SERVICE: app-test-appname
  ECR: 178353947583.dkr.ecr.us-west-2.amazonaws.com/hyre-finance-ecr
<<: *deploy_to_ecr

Any help will be appreciated.

davidshare avatar Jan 09 '21 12:01 davidshare

Hi @davidshare, well this is interesting, from the best I can tell that argument is essentially ignored. It prints out the message that it's not yet in use and then isn't used again. I can't remember at all why it exists and wasn't implemented.

What is it you're ultimately trying to accomplish? I can try to look into how to support it and see if we can add or implement the arguments needed.

fillup avatar Feb 26 '21 16:02 fillup

No response, closing.

devon-sil avatar Apr 19 '24 20:04 devon-sil