output "instance_profile" { description = "Launch instances with this profile, and tag them for access." value = aws_iam_instance_profile.instance.name } output "security_group" { description = "A security group with no inbound rules." value = aws_security_group.no_inbound.id } output "operator_policy_arn" { description = "Attach to the roles or groups allowed to open sessions." value = aws_iam_policy.operator.arn } output "verify" { description = "How to prove sessions work, are recorded, and are limited." value = <<-EOT aws ssm start-session --target # opens, as the operator aws ssm start-session --target # refused: not authorised aws ssm start-session --target --document-name AWS-StartPortForwardingSession # refused aws s3 ls s3://${aws_s3_bucket.sessions.bucket}/sessions/ # one transcript per session EOT }