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

support code deploy config override #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mmshin
Copy link

@mmshin mmshin commented Jun 14, 2021

No description provided.

@mmshin mmshin requested a review from c-ameron June 14, 2021 07:42
--revision "{\"revisionType\": \"AppSpecContent\", \"appSpecContent\": {\"content\": \"{\\\"version\\\": 1, \\\"Resources\\\": [{\\\"TargetService\\\": {\\\"Type\\\": \\\"AWS::ECS::Service\\\", \\\"Properties\\\": {\\\"TaskDefinition\\\": \\\"${CCI_ORB_AWS_ECS_REGISTERED_TASK_DFN}\\\", \\\"LoadBalancerInfo\\\": {\\\"ContainerName\\\": \\\"$ECS_PARAM_CD_LOAD_BALANCED_CONTAINER_NAME\\\", \\\"ContainerPort\\\": $ECS_PARAM_CD_LOAD_BALANCED_CONTAINER_PORT}}}}]}\"}}" \
--query deploymentId \
--output text)
echo "Created CodeDeploy deployment: $DEPLOYMENT_ID"

if [ "$ECS_PARAM_VERIFY_REV_DEPLOY" == "1" ]; then
echo "Waiting for deployment to succeed."
if $(aws deploy wait deployment-successful --deployment-id "${DEPLOYMENT_ID}"); then
if $(aws deploy wait deployment-successful --deployment-id $DEPLOYMENT_ID); then

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how come you're removing the extra evaluation?


DEPLOYMENT_ID=$(aws deploy create-deployment \
--application-name "$ECS_PARAM_CD_APP_NAME" \
--deployment-group-name "$ECS_PARAM_CD_DEPLOY_GROUP_NAME" \
--application-name $ECS_PARAM_CD_APP_NAME \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you also need to keep the " so it's properly evaluated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants