Git Product home page Git Product logo

Comments (5)

michaelwittig avatar michaelwittig commented on May 30, 2024

Hi @anujgeek
If the paid antivirus solution provides a way to scan a file using the cli, yes.

The line you have to modify: https://github.com/widdix/aws-s3-virusscan/blob/master/template.yaml#L581

clamdscan #{fileName} is the way to scan a file with ClamAV.
Replace clamdscan with whatever is provided by your antivirus solution. Contract is that is returns a success exit coe if the file is clean, otherwise a non zero exit code.

from aws-s3-virusscan.

anujgeek avatar anujgeek commented on May 30, 2024

Hi @michaelwittig, thanks for replying back.
I'm looking at Bitdefender business products and they do provide a cli interface along with UI.
I'll also have to tweak the yaml file to not install ClamAV and install Bitdefender in AWS EC2 instance. I'm also hoping that the Bitdefender auto-update service should take care of updates and I won't have to worry about updating from cli.
Can you please let me know how to tweak the yaml file to not install ClamAV. Also, how can I login to that EC2 instance to install Bitdefender there. I'm on my AWS EC2 console and can't figure out how to connect to that instance:
image

from aws-s3-virusscan.

michaelwittig avatar michaelwittig commented on May 30, 2024

Hi @anujgeek You used CloudFormation to create stack? During the process you provide some parameters, one of them is called KeyName. This is where you should enter the name of the EC2 key pair that you can then use to connect via SSH. You can update the existing stack to change the parameter!

Regarding the other question of installing Bitdefender: How is the software packaged? maybe an rpm file that you can use?

from aws-s3-virusscan.

anujgeek avatar anujgeek commented on May 30, 2024

Yes, I did use the CloudFormation to create stack. I deleted and recreated the stack after creating and associating a key pair, but I was only able to login using key 'ec2user' as username, but not the key name I provided. I used the same pem/ppk file though.
Bitdefender licensing and deployment models were complex, so I switched to using Avast. They do provide rpm packages (http://files.avast.com/lin/repo/dists/rhel/release/x86_64/) and installation instructions (http://deb.avast.com/lin/doc/techdoc.pdf Page 3). I'm new to linux, so I wasn't able to figure out how to execute these:

  1. Add the Avast repository to the system repositories:
    # echo '[avast] name=Avast baseurl=http://rpm.avast.com/lin/repo/dists/rhel/release enabled=1 gpgcheck=1' > /etc/yum.repos.d/avast.repo
    # rpm --import /path/to/avast.gpg
  2. Install the avast package:
    # yum install avast
    Can you please help me in using the avast package in yaml file or using ssh terminal?

from aws-s3-virusscan.

michaelwittig avatar michaelwittig commented on May 30, 2024

@anujgeek the username is always ec2-user (on Amazon Linux) and is not related to your key name.

you can add the three commands here: https://github.com/widdix/aws-s3-virusscan/blob/master/template.yaml#L688

you can find the docs here: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-init.html

from aws-s3-virusscan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.