This policy uses a Flexnet Manger Cloud/On-premise instance and checks all EC2 instances running in AWS to determine if the FlexNet Inventory Agent is running on the instance and reports on any that are missing the agent. The policy is a recommendation only policy, no action is taken during the Policy Escalation.
The policy leverages the cloud API to get all current EC2 instances and the FlexNet Manager report (Custom view) API to get all AWS cloud instances with agent. It cross-checks the two lists to determine if any instances are running on the cloud that aren't known to FlexNet Manager. The policy matches the InstanceCloudID from FlexNet Manager System and the instanceId from AWS.
Current limitations:
- Output is limited to max 100000 rows.
This policy has the following input parameters required when launching the policy.
- Allowed Regions - A list of allowed regions for an AWS account. Please enter the allowed regions code if SCP is enabled, see Available Regions in AWS; otherwise, the policy may fail on regions that are disabled via SCP. Leave blank to consider all the regions.
- FNMS Report URL - Full FlexNet URL (e.g.
https://flexera-demo-1.flexnetmanager.com/Suite
or WStunnel tunnel URLhttps://wstunnel1-1.rightscale.com/_token/<token>/
) - FNMS Report ID - FlexNet Manager System Custom View ID.
- Email addresses to notify - Email addresses of the recipients you wish to notify when new incidents are created
- Account Number - The Account number for use with the AWS STS Cross Account Role. Leave blank when using AWS IAM Access key and secret. It only needs to be passed when the desired AWS account is different than the one associated with the Flexera One credential. more
- Tags to ignore - List of tags that will exclude EC2 instance from being evaluated by this policy. Multiple tags are evaluated as an 'OR' condition. Tag keys or key/value pairs can be listed. Example: 'test,env=dev'.
- Send an email report
For On Premise If FlexNet Manager Suite is not accessible from the Internet, you will need to setup a wstunnel to provide a secure connection into the FlexNet manager system.For more details on wstunnel please refer to this: https://github.com/rightscale/wstunnel
This policy uses credentials for connecting to the cloud -- in order to apply this policy you must have a credential registered in the system that is compatible with this policy. If there are no credentials listed when you apply the policy, please contact your cloud admin and ask them to register a credential that is compatible with this policy. The information below should be consulted when creating the credential.
For administrators creating and managing credentials to use with this policy, the following information is needed:
Provider tag value to match this policy: aws
, aws_sts
, flexera_fnms
-
Credential type for fnms:
- API Key - For FNMS Cloud - (Location:header, Type: Bearer)
or
- NTLM - For On Premise FNMS
Required permissions in the provider aws:
{
"Version": "2012-10-17",
"Statement":[{
"Effect":"Allow",
"Action":["ec2:DescribeInstances", "ec2:DescribeRegions"],
"Resource":"*"
}]
}
a. Cloud
Click on Preview and filter.
Select Amazon Web Services
under Inventory device
> Hosted in
Once saved, note the report number in the URL field : you need it when activating the Policy for 'FlexNet Manager System Report ID'.
- Retrieve the API Token in FlexNet Manager System:
b. On Premise
Click on Preview and filter.
Select Amazon Web Services
under Inventory device
> Hosted in
Once saved, note the report number in the URL field : you need it when activating the Policy for 'FlexNet Manager System Report ID'.
- Set Up user for FlexNet manager on-premise:
NOTE: You can use a normal interactive user for the API credentials, but it is recommended to add a special service user for the API connection.
- AWS
This Policy Template does not incur any cloud costs.