Closed DeliciousKokas closed 1 month ago
I think this was partially fixed with #219. I'm creating #221 so this fix is applied to the job as well.
I think this new version should solve your problem 5.2.1
Thanks for the quick respond, seems to be able to point out region from parameters.
+@
I also found similar parameters on verify_revision_is_deployed
command.
Although, this command does not includes description about region parameters, but wondering was it on purpose.
DEPLOYMENTS=$(aws ecs describe-services \
--profile "${ORB_STR_PROFILE_NAME}" \
--cluster "$ORB_STR_CLUSTER_NAME" \
--services "${ORB_STR_SERVICE_NAME}" \
--region "${AWS_DEFAULT_REGION}" \
--output text \
--query 'services[0].deployments[].[taskDefinition, status]' \
"$@")
NUM_DEPLOYMENTS=$(aws ecs describe-services \
--profile "${ORB_STR_PROFILE_NAME}" \
--cluster "$ORB_STR_CLUSTER_NAME" \
--services "${ORB_STR_SERVICE_NAME}" \
--region "${AWS_DEFAULT_REGION}" \
--output text \
--query 'length(services[0].deployments)' \
"$@")
TARGET_REVISION=$(aws ecs describe-services \
--profile "${ORB_STR_PROFILE_NAME}" \
--cluster "$ORB_STR_CLUSTER_NAME" \
--services "${ORB_STR_SERVICE_NAME}" \
--region "${AWS_DEFAULT_REGION}" \
--output text \
--query "services[0].deployments[?taskDefinition==\`$ORB_STR_TASK_DEF_ARN\` && runningCount == desiredCount && (status == \`PRIMARY\` || status == \`ACTIVE\`)][taskDefinition]" \
"$@")
The initial design of the orb was to use the environment variables for the region. For the update_service command there was a recent addition of the parameter to solve some specific situation and that's why it't the only having it.
Hi @marboledacci
Thanks for working on this issue ✨
Support are receiving request from user that it would be beneficial to be able to pass on pipeline parameters like the other command. Will the team able to also apply it for update_task_definition
command which is calling src/scripts/get_prev_task.sh
as well?
PREVIOUS_TASK_DEFINITION="$(aws ecs describe-task-definition \
--task-definition "${ECS_TASK_DEFINITION_NAME}" \
--include TAGS --profile "${ORB_STR_PROFILE_NAME}" \
--region "${AWS_DEFAULT_REGION}" "$@")"
Hi @nanophate I'm working on an update for that. The idea is to standardize it and let all the commands and jobs using the region parameter.
Version 6.0.0 now has a region parameter for all the jobs and commands. I'm going to close this issue.
Orb version:
5.x
What happened:
During the running
deploy_service_update
job, it's generate errorInvalid endpoint: https://ecs..amazonaws.com
It's seems to error related missingregion
parameter, but it's correctly setup already.However, it's resolved when setting ${AWS_DEFAULT_REGION} which should be an optional. Seems to during the steps, it directly refer to ${AWS_DEFAULT_REGION} env not parameter.
Expected behavior:
Make it
region
parameter override ${AWS_DEFAULT_REGION} env, and correct command refer to parameter.Additional Information:
Taking look
deploy_service_update
job on orb source 5.x, below steps were included. And it's not using registered parameter but only take it directly from ${AWS_DEFAULT_REGION}.Same steps on version 4.1, there was no region flag. So I assuming it's only effected on 5.x.