Add AWS troubleshooting message

This commit is contained in:
itay 2019-02-12 16:26:29 +02:00
parent 48ae805458
commit dfb51cc962
1 changed files with 15 additions and 6 deletions

View File

@ -326,16 +326,25 @@ class RunMonkeyPageComponent extends AuthComponent {
Update AWS details
{ this.state.awsUpdateClicked ? <Icon name="refresh" className="text-success" style={{'marginLeft': '5px'}}/> : null }
</Button>
{
this.state.awsUpdateFailed ?
<div className="alert alert-danger" role="alert">Authentication failed. Bad credentials.</div>
:
null
}
</div>
</div>
</div>
</div>
{
this.state.awsUpdateFailed ?
<div className="col-sm-8 col-sm-offset-2" style={{'fontSize': '1.2em'}}>
<p className="alert alert-danger" role="alert">Authentication failed.</p>
<p className="alert alert-info">
<i className="glyphicon glyphicon-info-sign" style={{'marginRight': '5px'}}/>
In order to remotely run commands on AWS EC2 instances, please make sure you have
the <a href="https://docs.aws.amazon.com/console/ec2/run-command/prereqs" target="_blank">prerequisites</a> and if the
instances don't show up, check the
AWS <a href="https://docs.aws.amazon.com/console/ec2/run-command/troubleshooting" target="_blank">troubleshooting guide</a>.
</p>
</div>
:
null
}
</div>
</div>
</div>