ec2messages:SendReply

Write

ec2messages:SendReply is a Write access-level action in the ec2messages service. Grants permission to send replies from clients/instances to upstream service

Resource types

This action does not support resource-level permissions; use "Resource": "*" in your policy.

Condition keys

Keys you can use in the Condition block of a policy that grants ec2messages:SendReply.

ec2:SourceInstanceARN ARN

Filters access by the ARN of the instance from which the request originated

ssm:SourceInstanceARN ARN

Filters access by verifying the Amazon Resource Name (ARN) of the AWS Systems Manager's managed instance from which the request is made. This key is not present when the request comes from the managed instance authenticated with an IAM role associated with EC2 instance profile

Example IAM policy

A minimal policy that allows ec2messages:SendReply. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowEc2messagesSendReply",
      "Effect": "Allow",
      "Action": "ec2messages:SendReply",
      "Resource": "*"
    }
  ]
}

Related actions in ec2messages

View all ec2messages actions →