SnappyFlow SfPoller Setup In AWS
Prerequisites
Create IAM Role:
Sign in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam/
In the navigation pane of the IAM console, click Policies, and then click Create policy
In the JSON tab , add policy json:
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"cloudwatch:Describe*",
"cloudwatch:Get*",
"cloudwatch:List*",
"cloudwatch:GetMetricStatistics*",
"elasticloadbalancing:Describe*",
"s3:Get*",
"s3:List*",
"rds:Describe*",
"rds:ListTagsForResource",
"logs:Get*",
"logs:Describe*",
"ecs:Describe*",
"ecs:List*",
"pi:*"
],
"Effect": "Allow",
"Resource": "*"
}
]
}Click Review Policy
Add a Policy name (must be unique)
(Optional) For description, type a description for the new policy
Click Create Policy
In the navigation pane of the IAM console, click Roles, and then click Create role
For Select type of trusted entity, click AWS service
For click the use case for your service, click EC2
Click Next: Permissions
Search for the policy created in step 3. Select the check box next to that policy.
Click Next: Review
- Add a Role name (must be unique)
- (Optional) For Role description, type a description for the new role
- Review the role and then click Create role
Refrences: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-service.html
Create AWS Security Group:
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
In the navigation pane, click Security Groups
Click Create security group
In the Basic details section, do the following:
Enter a descriptive name and brief description for the security group.
For VPC, click the VPC in which to create the security group. The security group can only be used in the VPC in which it is created
Add security group rules now
Add inbound rules:
Type Protocol Port Source Description HTTP TCP 80 0.0.0.0,::/0 sfPoller http HTTPS TCP 443 0.0.0.0,::/0 sfPoller https SSH TCP 22 0.0.0.0,::/0 sfPoller ssh Note:
Define Source as per user's requirements. Use anywhere if sfPoller has to be accessed from multiple locations. Use Custom if sfPoller will be used from Office/VPN (also provide IP address). Click Create.
Be ready with SSH keypair to be used for launching instance.
Launching SfPoller Instance
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
In the navigation pane, click Instances
Click Launch Instance
Click on AWS Marketplace and search for SnappyFlow Poller Appliance
Select SnappyFlow sfPoller Appliance AMI
Read SnappyFlow sfPoller Appliance usage policy and detail. Click continue to proceed
Select the instance type (Min Recommended: t2.medium )
Configure instance:
Provide network, subnet and IAM role (IAM role created in prerequisite)
(Optional) Add tags for sfpoller instance
Configure security group:
- Click the security group created in the prerequisite step
- Review changes before clicking launch
Click the SSH key pair and launch
Wait till the instance state goes to ready and then open the launched instance on EC2 panel. Copy Public DNS (IPv4) from instance description in AWS console
Paste Public DNS (IPv4) of the launched instance to the browser and open the sfPoller Launcher.
Enter username: admin and password: instanceID of launched instance and login to sfPoller
Note: Instance ID can be copied from instance description (as used in step 7).
sfPoller installation is complete now
Configure sfPoller
Add Profile Key:
Copy profile key from "Profiles" section under "Manage" tab of your SnappyFlow SaaS account or SnappyFlow server and save.
Add Cloud Account:
Click cloud type and enter its details.
(Optional) Add cloud metric plugins under "Plugins" tab if it is required to monitor account as well.
Create Project:
- Go to Application tab
- Click "Create project" and provide project name
Add Applications:
- Add application by clicking add application button under "Actions" column (icon with + sign)
- Users can either discover applications from cloud using resource tags or manually add application and endpoints
- Click discover and provide tag keys for the account (If resources are tagged properly on the cloud, then Discovery feature discovers all end points)
- Add endpoints after selection (by default all endpoints are visible)
After adding endpoint click the save button
Go to SnappyFlow dashboard (from where profile key was copied) and wait for sometime to get your applications discovered