Deploy pre-requsites for Qualys Zero Touch API Based Assessment
THIS SCRIPT IS PROVIDED TO YOU "AS IS." TO THE EXTENT PERMITTED BY LAW, QUALYS HEREBY DISCLAIMS ALL WARRANTIES AND LIABILITY FOR THE PROVISION OR USE OF THIS SCRIPT. IN NO EVENT SHALL THESE SCRIPTS BE DEEMED TO BE CLOUD SERVICES AS PROVIDED BY QUALYS
For more information, please refer: https://docs.qualys.com/en/tc/latest/#t=get_started%2Fgetting_started.htm Follow the below mentioned steps to deploy below to deploy pre-requsites for Qualys Zero Touch API Based Assessment.
- Login to AWS Console and navigate to CloudFormation.
- Stack > Create Stack > With new resources (standard).
- In 'Specify template', upload the template file. --> EventBridgeCF.yml
- Click Next.
- Under Specify stack details, provide Stack name.
- In APIGatewayURL parameter, provide the Qualys API Gateway URL. Find the Gateway URL at https://www.qualys.com/platform-identification/
- Follow below steps to Genrate Subscription Token using Curl Calls.
- Generate Auth token. --> curl --location --request POST 'https://< API Gateway URL >/auth' --header 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'username= --data-urlencode 'password='--data-urlencode 'token=true'
- Generate Subscription Token. --> curl --location --request POST 'https://< API Gateway URL >/qas/subscription-token' --header 'Content-Type: application/json' --header 'Authorization: Bearer Auth Token --data-raw '{ "expiry": 500000}'
- Provide the Subscription Token and click next.
- Keep the default settings step 3 and step 4.
- Click Next > Submit.
- Login to AWS Console > Navigate to CloudFormation
- StackSets > Create StackSets
- Permissions
- IAM Role: Select the StackSet Administrator Role Name that was created as part of the previous stack deployment.
- IAM execution role name:- Enter the StackSet Execution Role Name that was created as part of the previous stack deployment.
- Prerequisite - Prepare template
- Template is ready.
- Specify template.
- Upload a template file. (EventBridgeCrossRegion.yml) https://github.com/Qualys/zero_touch_api_based_assessment/blob/main/EventBridgeCrossRegion.yml
- Click “Next”
- StackSet Name:- Qualys-cross-region-event-bridge
- Parameters
- RoleArn :- Enter the Qulays API Based Assessment Role Bus ARN that was created as part of the previous Stack Deployments
- StackRegion : Enter the EventBridge Deployment Region
- Click “Next” --> “Next”
- Set deployment options
- Accounts > Deploy stacks in accounts
- Enter account numbers where the stack needs to be deployed
- Specify regions:- Select the regions for Cross Region Event Routing
- Deployment options
- Region Concurrency: Parallel
- Click “Next” -> Submit
Note: For Qualys Zero touch API Based Assessment, make sure that your EC2 instance has the SSM Agent installed and has SSM Inventory Configured. For more information, refer the below links: