UNPKG

cloud-report

Version:

Collects and analyzes cloud resources

32 lines (31 loc) 1.33 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const types_1 = require("../../../types"); const base_1 = require("../../base"); class AccountIdAnalyzer extends base_1.BaseAnalyzer { analyze(params, fullReport) { const accountId = params.id; if (!accountId) { return undefined; } const summary = { type: types_1.CheckAnalysisType.Informational }; summary.what = "Cloud reports scans and reports issues about the AWS Account"; summary.why = `AWS cloud offers several security features but it also enforces a shared responsibility so we need to keep reviewing the account and fixing the issues.`; summary.recommendation = "Recommended to run the Cloud reports at least once in month."; summary.regions = { global: [{ action: "Run Cloud Reports on regular basis", message: `${new Date().toString()}`, resourceSummary: { name: "AccountId", value: accountId, }, severity: types_1.SeverityStatus.Info, }], }; return { summary }; } } exports.AccountIdAnalyzer = AccountIdAnalyzer;