systemd-cloud-watch icon indicating copy to clipboard operation
systemd-cloud-watch copied to clipboard

Not getting instance_id

Open abzmungul opened this issue 8 years ago • 4 comments

it seems that the logstream does not pick up the instance_id correctly

I get NO_NAME-xxx-xx-x-xx-eu-west-1a, is there a way to set this so that the instance_id dynamically appears as the logstream name?

abzmungul avatar Feb 24 '17 16:02 abzmungul

I ran into the same issue. Any help?

fiunchinho avatar Apr 09 '17 17:04 fiunchinho

You might need to append this to your current IAM policy under "statements" or you can create a new policy and attach it to the role.

{ "Effect": "Allow", "Action": [ "ec2:DescribeInstances" ], "Resource": [ "*" ] }

Tanbouz avatar May 02 '17 06:05 Tanbouz

unfortunately this did not work still getting this

LogStreamName was not set so using NO_NAME-xxx-xx-x-xxx-eu-west-1c

abzmungul avatar May 02 '17 14:05 abzmungul

@Tanbouz suggestion works for me.

donovan avatar Sep 18 '18 03:09 donovan