openvidu-pro: Add custom env variables for custom instance type and volume size to be added in rest endpoint to add media nodes

pull/609/head
cruizba 2021-02-02 13:58:26 +01:00
parent 1102308c17
commit 4204aef74e
1 changed files with 8 additions and 0 deletions

View File

@ -35,6 +35,14 @@ exit_on_error () {
esac
}
# Check custom parameters
if [[ -n "${CUSTOM_INSTANCE_TYPE}" ]]; then
AWS_INSTANCE_TYPE="${CUSTOM_INSTANCE_TYPE}"
fi
if [[ -n "${CUSTOM_VOLUME_SIZE}" ]]; then
AWS_VOLUME_SIZE="${CUSTOM_VOLUME_SIZE}"
fi
docker run --rm amazon/aws-cli:${AWS_CLI_DOCKER_TAG} ec2 run-instances \
--image-id ${AWS_IMAGE_ID} --count 1 \
--instance-type ${AWS_INSTANCE_TYPE} \