AWS CLI
You can use AWS-provided security hub cli API to enable it, run the below command to set up the security hub with default standards.
aws securityhub enable-security-hub - -enable-default-standards --tags '{"enabledBy": "DilLip"}'
- enable-security-hub is a sub command of security hub service cli API, which will grant all the required permission for the security hub service to gather security issues, from various services.
- enable-default-standards will enable the security hub with default security standards.
- tags will add the tags to the created resource.
How To Set up AWS Security Hub?
AWS Security Hub is an Open Security Hub Service page that collects the data from the various AWS services and identifies security issues and provides us a comprehensive view of all the issues with cause and remediation.
It helps us to keep our AWS services and applications deployed on AWS more secure., and follow industry-standard security practices.