Upgrade to Pro — share decks privately, control downloads, hide ads and more …

테스트 환경 개선하기

RIDI
November 02, 2018

테스트 환경 개선하기

RIDI

November 02, 2018
Tweet

More Decks by RIDI

Other Decks in Programming

Transcript

  1. ਃҳࢎ೦ • ৈ۞ѐ੄ ࢲ࠳ بݫੋ ࢤࢿ੉ оמ೧ঠ ೣ • п

    ࢲ࠳ بݫੋ߹۽ ة݀੸ੋ ߓನо оמ೧ঠ ೣ • admin ಕ੉૑ب ੽ࣘ оמ೧ঠ ೣ • పझ౟ ࢲߡী ૒੽ SSH ੽Ӕ оמ೧ঠ ೣ • ࢎղীࢲ݅ ੽ࣘೡ ࣻ ੓যঠ ೣ • Ҋ੿ػ بݫੋ (ex : library.dev.ridi.io) • ௢ఃח ܖ౟ بݫੋী ࢸ੿ • ౠ੿ ࠳ے஖ী ؀೧ ୭न ܻ࠺੹੉ ੗زਵ۽ ߈৔ • SSL ੋૐࢲ ੸ਊ • పझ౟ ജ҃ীࢲ ఋ౱੄ API ௒ী ޙઁо হযঠ ೣ
  2. ࢤࢿ সؘ੉౟ ઙܐ (JUQVTI UFTUSJEJJP"1* (JU-BC$*5SJHHFSप೯ %PDLFSCVJME &$3QVTI 4MBDL/PUJGZ FDTDMJDPNQPTFTFSWJDFVQ

    UFTUSJEJJP8FC6* &OWJSPONFOUTUPQ 1JQFMJOF.BOVBMKPCप೯ FDTDMJDPNQPTFTFSWJDFEPXO 4MBDL/PUJGZ #SBODI࢏ઁ
  3.  "-#ܻझցীੋૐࢲ୶о ecs-cli compose service up aws acm request-certificate --domain-name

    ${VHOST} --validation-method DNS --subject-alternative-names *.${VHOST} while true do sleep 2.5s OPTIONS=`aws acm describe-certificate --certificate-arn ${ARN} | jq .Certificate.DomainValidationOptions` [ `echo ${OPTIONS} | jq 'map(select(.ResourceRecord)) | length'` -gt 0 ] && break; done BATCH=`echo ${OPTIONS} | jq .[0] | jq --arg action UPSERT -f batch.jq` aws route53 change-resource-record-sets --change-batch "${BATCH}"  ࢲ࠳بݫੋFDTTFSWJDFTࢤࢿ  "$.ੋૐࢲߊәਃ୒  بݫੋࣗਬӂੋૐ  ੋૐࢲߊә৮ܐ؀ӝ aws acm wait certificate-validated --certificate-arn ${ARN} aws elbv2 add-listener-certificates --listener-arn ${LISTENER} --certificates CertificateArn=${ARN}