AWS User data is a mechanism that allows you to run scripts during an instance provisioning.
To install CWPP agents through user data:
In AWS, go to Create EC2 instance and initiate an instance creation.
In the Configure Instance Details wizard, select an IAM Role that has EC2-ReadOnlyAccessToS3Buckets
Upload the custom user data script
AgentInstall.shprovided in the previous section
NOTE: Ensure that the AWS S3 location in the script contains the valid
Ensure that the Agents have Outbound connection access to the internet. This is required to download the required packages.
Create the instance.
Once the instance creation is done, as part of the instance creation the
AgentInstall.sh script installs the CWPP agent. The installed agent will report to MVISION Cloud and will be flagged as a managed instance.