Starting with Grafana v6.6.1 and Cloudwatch Metrics

I am very new to Grafana and AWS and was trying this for a POC to learn more about it. I set-up a t2.micro ec2 instance and set-up a grafana container. I am able to access the URL and dashboards after importing but am unable to see any data and so was wondering what else I could be missing, Any pointers would be super-helpful. Thank you so much.

P.S.: I was following the steps listed on this blog-page to import some dashboards.

This is how I instantiated my grafana docker container

docker run -d
-p 3000:3000
-e “GF_SERVER_ROOT_URL=http://xxx.xx.xx.xx”
-e “GF_AWS_PROFILES=default”
-e “GF_AWS_default_ACCESS_KEY_ID=xxxxxxxxxxxxx”
-e “GF_AWS_default_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”
-e “GF_AWS_default_REGION=us-east-1”
-v grafana-storage:/var/lib/grafana

docker container logs grafana
t=2020-02-12T15:57:35+0000 lvl=eror msg=“Metric request error” logger=context userId=1 orgId=1 uname=admin error=“Failed to call ec2:DescribeInstances”

Below is my set-up:
Grafana: v6.6.1
IAM Policy Name: CustomerGrafana:

“Version”: “2012-10-17”,
“Statement”: [
“Sid”: “AllowReadingMetricsFromCloudWatch”,
“Effect”: “Allow”,
“Action”: [
“Resource”: “"
“Sid”: “AllowReadingTagsInstancesRegionsFromEC2”,
“Effect”: “Allow”,
“Action”: [
“Resource”: "

“Sid”: “AllowReadingResourcesForTags”,
“Effect”: “Allow”,
“Action”: “tag:GetResources”,
“Resource”: “*”

Ec2 Instance Profile: grafana_ec2_policy --> Attached Policy: CustomerGrafana
IAM User: service_grafana (programmatic Access provided): Permissions: CustomerGrafana
Grafana DataSource Configuration: Datasource Name: cloudwatch; AuthProvider: “Access & Secret Key”. Datasource connection successful.
Datasource: Tried ARN and Credentials File also but no luck. Same exception message.
Steps I followed from the blog to import dashboards:

dashboards=(1516 677 139 674 590 659 758 623 617 551 653 969 650 644 607 593 707 575 1519 581 584 2969 8050);
for dashboard_id in “${dashboards[@]}”; do
echo “Processing dashboard: $dashboard_id”

Get dashboard content

content=$(curl -s -k -u “$GRAFANA_USERNAME:$GRAFANA_PASSWORD” $GRAFANA_HOST/api/gnet/dashboards/$dashboard_id | jq .json)

Override dashboard configuration

cat > /tmp/dashboard.json << EOF
“dashboard”: $content,
“overwrite”: true,
“pluginId”: “cloudwatch”,
“name”: “DS_CLOUDWATCH”,
“type”: “datasource”,
“value”: “cloudwatch1”

Publish dashboard on Grafana

curl -s
-H “Content-Type: application/json”
-H “Accept: application/json”
-d @/tmp/dashboard.json
echo “”
rm /tmp/dashboard.json