THIS REPOSITORY IS ONLY A DEMO FOR CLOUD ONE FILE STORAGE SECURITY
Cloud One - File Storage Security Trial -
- Install SAM-CLI -
- Install AWS-CLI -
- Configure AWS-CLI -
- Deploy Cloud One File Storage Security - Scanner Stack.
- Create and S3 Bucket for Storage code and files- How-to
- Clone this repository
git clone https://github.com/XeniaP/Upload-Demo-C1-FSS.git
cd Upload-Demo-C1-FSS
- 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>
- 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
- Deploy the application:
sam deploy --template-file Template.yaml --stack-name <Name-Bucket-Created-Step-5>
-
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.
-
You cannot run this directly on a local browser, you can use XAMPP, or deploy using AWS Amplify Console.
-
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
-
Use the application
For Delete first Empty de S3 Bucket created in Deploy and Delete de Root Stack and delete storage in Cloud One File Storage
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.