ec2-instance-connect:SendSerialConsoleSSHPublicKey is a Write access-level action in the ec2-instance-connect service. Grants permission to push an SSH public key to the specified EC2 instance to be used for serial console SSH
ARNs that ec2-instance-connect:SendSerialConsoleSSHPublicKey can be scoped to in an IAM policy.
Keys you can use in the Condition block of a policy that grants ec2-instance-connect:SendSerialConsoleSSHPublicKey.
Filters access by tags associated with the resource
Filters access by tags associated with the resource
A minimal policy that allows ec2-instance-connect:SendSerialConsoleSSHPublicKey. Replace "Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowEc2instanceconnectSendSerialConsoleSSHPublicKey",
"Effect": "Allow",
"Action": "ec2-instance-connect:SendSerialConsoleSSHPublicKey",
"Resource": "*"
}
]
}