Skip to content

app/aws/ec2

region - string

The region where the EC2 Instance resides.

instance_id - string

The ID of the EC2 Instance.

Format: i-01234567890123456

adminer - object [Optional]

An AWS IAM user and access keys with explicit access to start an SSH session. This is optional and enables nullstone ssh from the Nullstone CLI.

Format

value = {
    name       = aws_iam_user.adminer.name
    access_key = aws_iam_access_key.adminer.id
    secret_key = aws_iam_access_key.adminer.secret
}
value = {
    name       = aws_iam_user.adminer.name
    access_key = aws_iam_access_key.adminer.id
    secret_key = aws_iam_access_key.adminer.secret
}

Required IAM permissions

[ec2-arn]
    ssm:StartSession
arn:aws:ssm:[region]::document/AWS-StartSSHSession
    ssm:StartSession
[ec2-arn]
    ssm:StartSession
arn:aws:ssm:[region]::document/AWS-StartSSHSession
    ssm:StartSession

IAM permissions for Port Forwarding

arn:aws:ssm:[region]::document/AWS-StartPortForwardingSession
    ssm:StartSession
arn:aws:ssm:[region]::document/AWS-StartPortForwardingSessionToRemoteHost
    ssm:StartSession
arn:aws:ssm:[region]::document/AWS-StartPortForwardingSession
    ssm:StartSession
arn:aws:ssm:[region]::document/AWS-StartPortForwardingSessionToRemoteHost
    ssm:StartSession