Skip to content

Commit

Permalink
awscloud/secure-instance: enrich logging with secure instance id
Browse files Browse the repository at this point in the history
we'll log as direct URL to the console for easier tracing
  • Loading branch information
schuellerf committed Nov 19, 2024
1 parent 992f876 commit b5c71cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/cloud/awscloud/secure-instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,12 @@ func (a *AWS) RunSecureInstance(iamProfile, keyName, cloudWatchGroup, hostname s
}
secureInstance.Instance = &descrInstOutput.Reservations[0].Instances[0]

logrus.Infof(
"Secure instance created: https://%s.console.aws.amazon.com/ec2/v2/home?region=%s#InstanceDetails:instanceId=%s",
identity.Region,
identity.Region,
secureInstance.InstanceID)

return secureInstance, nil
}

Expand Down

0 comments on commit b5c71cd

Please sign in to comment.