Hi,
i am trying to deploy Openvidu 2.13 on AWS on a dedicated VPC following the instructions here, but it fails.
Here is the log:
++ echo arn:aws:cloudformation:eu-central-1:040173031875:stack/OpenviduStackDeploy2/c56f2ae0-92be-11ea-8121-0a0c9a06689c + sed -i ‘s/#AWS_STACK_ID=/AWS_STACK_ID=arn:aws:cloudformation:eu-central-1:040173031875:stack/OpenviduStackDeploy2/c56f2ae0-92be-11ea-8121-0a0c9a06689c/’ /opt/openvidu/.env + sed -i s/#AWS_STACK_NAME=/AWS_STACK_NAME=OpenviduStackDeploy2/ /opt/openvidu/.env ++ docker run --rm amazon/aws-cli:2.0.7 ec2 describe-security-groups --output text --filters Name=tag:aws:cloudformation:logical-id,Values=KMSSecurityGroup Name=tag:aws:cloudformation:stack-id,Values=arn:aws:cloudformation:eu-central-1:0401 73031875:stack/OpenviduStackDeploy2/c56f2ae0-92be-11ea-8121-0a0c9a06689c --query ‘SecurityGroups[].GroupId[]’ You must specify a region. You can also configure your region by running “aws configure”.
The subnet you’re using most likely doesn’t have public access. Openvidu needs public access in the used subnet.
If you still have problems, please send us the complete log files ‘/var/log/cloud-init.log’ and ‘/var/log/cloud-init-output.log’, in addition to the information in the file ‘/opt/openvidu/.env’.
sed -i s/OPENVIDU_PRO_LICENSE=/OPENVIDU_PRO_LICENSE=XXXXXXX/ /opt/openvidu/.env
sed -i s/OPENVIDU_SECRET=/OPENVIDU_SECRET=eAZ9ltBbg6GBY4QQmolA/ /opt/openvidu/.env
[[ letsencrypt == \l\e\t\s\e\n\c\r\y\p\t ]]
sed -i s/OPENVIDU_DOMAIN_OR_PUBLIC_IP=/OPENVIDU_DOMAIN_OR_PUBLIC_IP=openvidu.dexie.it/ /opt/openvidu/.env
sed -i s/OPENVIDU_PRO_CLUSTER_MODE=manual/OPENVIDU_PRO_CLUSTER_MODE=auto/ /opt/openvidu/.env
sed -i s/#OPENVIDU_PRO_CLUSTER_MEDIA_NODES=/OPENVIDU_PRO_CLUSTER_MEDIA_NODES=1/ /opt/openvidu/.env
sed -i s/OPENVIDU_PRO_CLUSTER_ENVIRONMENT=on_premise/OPENVIDU_PRO_CLUSTER_ENVIRONMENT=aws/ /opt/openvidu/.env
sed -i s/CERTIFICATE_TYPE=selfsigned/CERTIFICATE_TYPE=letsencrypt/ /opt/openvidu/.env
sed -i s/LETSENCRYPT_EMAIL=user@example.com/LETSENCRYPT_EMAIL=m.chiaravalloti@gsnetitalia.it/ /opt/openvidu/.env
sed -i s/KIBANA_USER=kibanaadmin/KIBANA_USER=kibanaadmin/ /opt/openvidu/.env
sed -i s/KIBANA_PASSWORD=/KIBANA_PASSWORD=1deDec36292944cb5cca8c8c7Cb18022/ /opt/openvidu/.env
sed -i s/#AWS_DEFAULT_REGION=/AWS_DEFAULT_REGION=eu-central-1/ /opt/openvidu/.env
sed -i s/#AWS_IMAGE_ID=/AWS_IMAGE_ID=ami-00e8de73a56620da5/ /opt/openvidu/.env
sed -i s/#AWS_INSTANCE_TYPE=/AWS_INSTANCE_TYPE=c5.xlarge/ /opt/openvidu/.env
sed -i s/#AWS_KEY_NAME=/AWS_KEY_NAME=openviduServer/ /opt/openvidu/.env
sed -i s/#AWS_SUBNET_ID=/AWS_SUBNET_ID=subnet-0879bdff7292a0812/ /opt/openvidu/.env
++ sed ‘s#/#\/#g’
++ echo arn:aws:cloudformation:eu-central-1:040173031875:stack/OpenviduStackDeploy2/c56f2ae0-92be-11ea-8121-0a0c9a06689c
sed -i ‘s/#AWS_STACK_ID=/AWS_STACK_ID=arn:aws:cloudformation:eu-central-1:040173031875:stack/OpenviduStackDeploy2/c56f2ae0-92be-11ea-8121-0a0c9a06689c/’ /opt/openvidu/.env
sed -i s/#AWS_STACK_NAME=/AWS_STACK_NAME=OpenviduStackDeploy2/ /opt/openvidu/.env
++ docker run --rm amazon/aws-cli:2.0.7 ec2 describe-security-groups --output text --filters Name=tag:aws:cloudformation:logical-id,Values=KMSSecurityGroup Name=tag:aws:cloudformation:stack-id,Values=arn:aws:cloudformation:eu-central-1:0401 73031875:stack/OpenviduStackDeploy2/c56f2ae0-92be-11ea-8121-0a0c9a06689c --query ‘SecurityGroups.GroupId’
You must specify a region. You can also configure your region by running “aws configure”.
Ok @Oscar.Soto,
i’ ll try that when i’ll deploy Openvidu on production environment.
Right now i’m running correctly Openvidu on test environment on the default VPC.
I’ ll let you know.
Thank you for the support.
Greetings.
Marco