aws-inspector-quickstart
You will need to create a fork of the repository below:
- Create a github access token to use for the parameter
GitHubToken
in theaws-inspector-pipeline.yaml
template file.
- Create an EC2 keypair in the region you’re planning to launch the pipeline template in
- The name of the EC2 keypair needs to be used in the parameter
KeyPair
of theaws-inspector-pipeline.yaml
template file.
All parameters are located in the aws-inspector-pipeline.yaml
- Set the
RepositoryOwner
parameter to the owner of the github account that the repository has been forked to. - Set the
RepositoryName
parameter to the repository name - Set the
BranchName
parameter to the branch you’re going to run the pipeline against if you aren’t going to use the master branch.
- Inspector scan duration can be set by updating the value for the parameter
ScanLength
in theaws-inspector-pipeline.yaml
. - The unit of time is in seconds. The default value is set to 3 minutes.
Steps to run verify_resources.py
- Configure a default AWS profile or the AWS environment variables on the machine intended to run the script
- Have Python 3 installed on the machine intended to run the script
- Install the dependencies listed in the
requirements.txt
file from the repository - Provide the name of the Inspector Pipeline Cloudformation stack as a command line argument
The test will call the AWS api using boto3 and print the CodePipeline name, Lambda function name, S3 reports bucket name and the ARN of the SNS topic used to notify the user when new scans complete.