Hi,

I am trying to use AWS China region (cn-north-1) with JClouds. This region
works independently and you need to define the region (or the end point).

I log in to other AWS regions

Iterable<Module> modules = ImmutableSet.<Module> of(new
SshjSshClientModule());
ComputeServiceContext context = ContextBuilder.newBuilder("aws-ec2")
        .credentials("user", "key")
        .modules(modules)
        .buildView(ComputeServiceContext.class);

ComputeService compute = context.getComputeService();
Set<? extends ComputeMetadata> nodes = compute.listNodes();

How can I define the region or the end point ?

Regards,
Ruben

Reply via email to