Closed csgyuricza closed 8 years ago
By the way, I also tried resources.source.1.config.endpoint=us-west-2
but in that case it generates exceptions in the logs:
2016-06-06 23:30:07,311 [qtp193837291-33] ERROR com.dtolabs.rundeck.core.resources.ExceptionCatchingResourceModelSource - [ResourceModelSource: 1.aws-ec2 (AWS EC2 Resources), project: PowerReviews]
com.amazonaws.AmazonClientException: Unable to execute HTTP request: us-west-2
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:452)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:292)
...
I figured it out... the endpoint config requires the actual URL of the AWS endpoint not the region as per the ec2-nodes-plugin documenation. I'll do a PR to fix this, but basically the documentation says:
endpoint - the AWS region endpoint to use, or blank for the us-east-1
when it should say something like
endpoint - the FQDN of the AWS endpoint for the desired region (see http://docs.aws.amazon.com/general/latest/gr/rande.html#ec2_region)
An even nicer solution would be to change the endpoint config to region so we can specify the region rather than the FQDN endpoint.
I have Rundeck 2.6.4-1 and installed the ec2 plugin v 1.5.2. I added this to the project configuration:
But in the nodes section, it continues to list all my nodes from the us-east-1 region, basically ignoring the us-west-2 specification in the config. Already restarted the rundeck process but that didn't help.
I see no errors in the logs.
Any ideas what could be wrong?