awscloud/secure-instance: enrich logging with secure instance id
we'll log as direct URL to the console for easier tracing
This commit is contained in:
parent
992f876da0
commit
b5c71cd7e2
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue