Class EC2BootstrapGatewayProvider
A BootstrapGatewayProvider implementation that can be used with Connect(string, BootstrapGatewayProvider) to connect to ScaleOut hosts running in an Amazon EC2 environment.
public class EC2BootstrapGatewayProvider : BootstrapGatewayProvider
- Inheritance
-
EC2BootstrapGatewayProvider
- Inherited Members
Remarks
If an EC2BootstrapGatewayProvider instance is supplied to Connect(string, BootstrapGatewayProvider), the following exceptions may be thrown during the initial connection or during cache operations when the library is trying to reconnect to instances of the ScaleOut service:
Exception | Description |
---|---|
Scaleout.Client.EC2.EC2AdapterException |
No EC2 instances were found with the ScaleOut store name supplied to the EC2BootstrapGatewayProvider's constructor,
or a ScaleOut EC2 instance contains invalid metadata in its __soss_metadata tag.
|
Scaleout.Client.EC2.EC2TagMissingException |
ScaleOut EC2 instances are missing tag metadata (the __soss_metadata tag)
that is required for a client connections. This tag is set
automatically by the CloudFormation template that was used to deploy
the ScaleOut service.
|
Amazon.EC2.AmazonEC2Exception | AWS libraries encountered and error while querying EC2 instance metadata (bad credentials, insufficient permissions, bad region name, etc...). |
Constructors
- EC2BootstrapGatewayProvider(IAmazonEC2, string, GatewayType, ILogger)
Constructs an EC2BootstrapGatewayProvider using an existing AmazonEC2Client instance.
Methods
- GetAsync()
Returns a collection of Bootstrap gateway specifications for ScaleOut hosts running in an AWS EC2 environment.