Restarting Virtuoso on EC2 Using Amazon SNS

Overview In the following article, I described how to perform health checks. I also described the command for restarting Virtuoso when it stops in the following article. This time, I will try restarting Virtuoso in conjunction with Amazon SNS notifications. Method To send a command like sudo rm -rf /usr/local/var/lib/virtuoso/db/virtuoso.lck && ... to an EC2 instance, SSM (AWS Systems Manager) configuration was required. IAM Roles and Policies I created a new IAM role and granted the AmazonSSMFullAccess policy. Initially, I had granted the AmazonSSMManagedInstanceCore policy, but the following error occurred when executing the Lambda function described later, and it did not work properly. ...

November 24, 2023 · 13 min · Nakamura

Resolving SAM Error: Running AWS SAM Projects Locally Requires Docker

Overview When trying sam local invoke with AWS SAM, the following message was displayed. E r r o r : R u n n i n g A W S S A M p r o j e c t s l o c a l l y r e q u i r e s D o c k e r . H a v e y o u g o t i t i n s t a l l e d a n d r u n n i n g ? The environment was Mac, and Docker was running. ...

November 24, 2023 · 1 min · Nakamura

Memo: Specifying a Profile When Running sam deploy

Specify a profile when deploying as follows. s a m d e p l o y - g u i d e d - p r o f i l e < p r o f i l e - n a m e >

May 21, 2022 · 1 min · Nakamura

Resolving "Error building docker image" During Local Development with AWS SAM

When doing local development with AWS SAM, I follow these steps: s c s a d a m m s i a l n m o i - c t a a p l p - s r t u a n r t t i - m a e p = i p y t h o n 3 . 8 However, when running the above, the following error sometimes occurred: ...

May 21, 2022 · 3 min · Nakamura