Skip to content

XeniaP/Trend-Micro-FileStorageSecurity-Upload-Demo-App

Repository files navigation

Serverless-Example-S3-Upload-Interface-for-Demo-of-CloudOne-FileStorage-Security

THIS REPOSITORY IS ONLY A DEMO FOR CLOUD ONE FILE STORAGE SECURITY

Cloud One - File Storage Security Trial -

Architecture

Image of Architecture

Guide

  1. Install SAM-CLI -
  2. Install AWS-CLI -
  3. Configure AWS-CLI -
  4. Deploy Cloud One File Storage Security - Scanner Stack.
  5. Create and S3 Bucket for Storage code and files- How-to
  6. Clone this repository
git clone https://github.com/XeniaP/Upload-Demo-C1-FSS.git
cd Upload-Demo-C1-FSS
  1. Copy files to S3 for Storage Code and File, with the next Commands:
sam package --template-file Template.yaml --s3-bucket <Bucket-Name-Created-Step-5>
sam package --output-template-file Template.yaml --s3-bucket <Bucket-Name-Created-Step-5>
  1. Edit this values in samconfig.toml without <>
stack_name = <Name-Of-Deployment>
s3_bucket = <Name-Bucket-Created-Step-5>
region = <AWS-Region>
parameter_overrides = "S3BucketToScan=\"<Name-Of-Bucket-To-Scan>\" ExternalID=\"<ExternalID>\" ScannerAWSAccount=\"<AWS-Account-ID>\" ScannerSQSURL=\"<ScannerSQSURL>" AWSRegion=\"<AWS-Region>\" PromoteMode=\"move\" QuarantineMode=\"move\""

NOTE: S3BucketToScan It's the name it's for a new S3 Bucket

NOTE: The values for ExternalID, ScannerAWSAccount and ScannerSQSURL you can get from ScannerStack deployed in Step 4

  1. Deploy the application:
sam deploy --template-file Template.yaml --stack-name <Name-Bucket-Created-Step-5>
  1. Copy the API-gateway-value in gui/js/index.js [Line 5], you can get the HTTP API endpoint URL from outputs in sam-cli or CloudFormation Stack. Image of get Api URL Image of Configure Value in Index.html

  2. You cannot run this directly on a local browser, you can use XAMPP, or deploy using AWS Amplify Console.

  3. Configure the Storage in Trend Micro Cloud One

    Before you must have the Cloud One File Storage Stack Scanner deployed - Here you find the guide.

    In the Cloud One - File Storage Security console, in the Stack Management Menu. Select Add Storage and in Step 3: Copy the value of the arn that you can obtain from the SAM-CLI outputs or the AWS Cloud Formation Stack outputs

    Image of get ARN Value Image of Add Storage Image of Paste ARN

  4. Use the application

caption

NOTES:

For Delete first Empty de S3 Bucket created in Deploy and Delete de Root Stack and delete storage in Cloud One File Storage

Contributing

If you encounter a bug, think of a useful feature, or find something confusing in the docs, please create a new issue! We ❤️ pull requests.