Integrate with AWS IAM for CloudWatch
Developers can monitor their AWS resources by integrating data from Amazon CloudWatch into their test and view it in real-time, while the BlazeMeter test is running. First set up AWS IAM and then connect it to BlazeMeter.
Access Amazon Access Key ID and Secret Access Key
To learn more about policy setup and controlling User Access to your account, see also Identity and access management for Amazon CloudWatch (docs.aws.amazon.com).
Follow these steps:
-
In IAM, go to Access Management > Policies, and then click Create policy.
-
Specify permissions: Select the JSON editor, copy the below policy snippet, and paste the snippet in the editor.
Copy{ "Version": "2012-10-17",
"Statement": [
{
"Action": [
"autoscaling:Describe*",
"cloudwatch:Describe*",
"cloudwatch:List*",
"cloudwatch:Get*",
"ec2:Describe*",
"ec2:Get*",
"ec2:ReportInstanceStatus",
"elasticache:DescribeCacheClusters",
"elasticloadbalancing:Describe*",
"sqs:GetQueueAttributes",
"sqs:ListQueues",
"rds:DescribeDBInstances",
"SNS:ListTopics"
],
"Effect": "Allow",
"Resource": "*"
}
]
} -
Click Next.
-
Name the policy and then click Create policy.
Follow these steps:
-
Back in IAM, go to Access Management > User groups, and then click Create group.
-
Name the group.
-
Under Attach permissions policies, select the custom policy created in the previous step.
-
Click Create user group.
Next, assign users to the group. When creating a new user, you can either sign up or log in with your user credentials provided by BlazeMeter to the BlazeMeter integration with AWS CloudWatch.
Follow these steps:
-
Back in IAM, go to Access Management > Users and click Create user.
-
In the Specify user details page, enter a name for the user. Click Next.
-
In the Set permissions page, select the user group created in the previous step, and click Create user.
-
Find the new user in the User consoleand go to the Security Credentials tab.
-
Under Access keys, click Create access key.
-
In the Create access key page, select the use case: Application running outside AWS. Click Next.
-
In the Set description tag page, optionally, add description. Click Create.
-
In the Retrieve access keys page, write down your Access Key ID and Secret Access Key, and download the .csv file.
Now you have a user with access to CloudWatch metrics. Once the user is created and you've logged in, save the Access Key ID and Secret Access Key in BlazeMeter.
Proceed with integrating data from CloudWatch into your test and viewing it in real-time.