Upload to S3 not working (v6.6.0 (5c11bbdfb4))

Hi, ive read through all the other issues in the forum, and beleive I have everything configured correctly.

I’m running Grafana within an AWS VPC (the subnet has access to the internet as i have datasources being read over the inernet), and i’m attempting to get Slack alerts working with Images. My set up is using instance IAM profile below rather than secret and access keys.

Running from Docker

-e GF_LOG_LEVEL=debug
-e GF_EXTERNAL_IMAGE_STORAGE_PROVIDER=s3
-e GF_EXTERNAL_IMAGE_STORAGE_S3_BUCKET=fake-bucket-name
-e GF_EXTERNAL_IMAGE_STORAGE_S3_REGION=eu-west-2

When i fire an alert, i see the alert in Slack, but no image attached. And no image within the S3 bucket.

The logs show:

t=2020-01-29T14:43:34+0000 lvl=dbug msg="Image rendered" logger=rendering renderer=phantomJS path=/var/lib/grafana/png/89dYVhxBBFOgYrdTyhx4.png
t=2020-01-29T14:43:34+0000 lvl=dbug msg="Rendered alert panel image" logger=alerting.notifier ruleId=6 path=/var/lib/grafana/png/89dYVhxBBFOgYrdTyhx4.png took=1.64134128s
t=2020-01-29T14:43:34+0000 lvl=dbug msg="Uploading alert panel image to external image store" logger=alerting.notifier ruleId=6 path=/var/lib/grafana/png/89dYVhxBBFOgYrdTyhx4.png
t=2020-01-29T14:43:34+0000 lvl=dbug msg="Uploading image to s3. bucket = fake-bucket-name, path = FPjvdd45jpjEUzoqGe4r.png"
t=2020-01-29T14:43:40+0000 lvl=dbug msg="Scheduling update" logger=alerting.scheduler ruleCount=5
t=2020-01-29T14:43:50+0000 lvl=dbug msg="Scheduling update" logger=alerting.scheduler ruleCount=5

My IAM profile is:

{
“Version”: “2012-10-17”,
“Statement”: [
{
“Action”: [
“s3:ListBucket”
],
“Resource”: [
“arn:aws:s3:::fake-bucket-name”
],
“Effect”: “Allow”,
“Sid”: “AllowListGrafanaImages”
},
{
“Action”: [
“s3:PutObject”,
“s3:PutObjectAcl”,
“s3:GetObject”,
“s3:DeleteObject”
],
“Resource”: [
“arn:aws:s3:::fake-bucket-name/*”
],
“Effect”: “Allow”,
“Sid”: “AllowGrafanaAlertImages”
}
]
}

Any help appreciated.

Thanks