Hi Azureg,

Were you able to resolve the issue? If yes, how did you solve it?

Even I am facing similar error while trying to automate using Scalr API2. I 
get an error message "API Error (InvalidStructure): You must describe a VPC 
Router" HTTP bad request when I am trying to create Farm Role using the API 
"POST /api/v1beta0/user/<env_id>/farms/<farm_id>/farm-roles/". Below is the 
JSON request body that is being posted to the API,
{'role': {'id': 83190}, 'scaling': {'maxInstances': '2', 'enabled': True, 
'minInstances': '1'}, 'instance': {instanceType': {'id': 'm3.xlarge'}, 
'instanceConfigurationType': 'AwsInstanceConfiguration'}, 'platform': 'ec', 
'placement': {'region': 'us-east-1', 'subnets': [{'id': 
'subnet-7bb1ef22'}], 'placementConfigurationType': 
'AwsVpcPlacementConfiguration'}, 'alias': 'auto-micro-dcs-webportal'}

I am able to automate most of the other things that include creating roles, 
scripts, orchestration rules, images, global variables, farm etc. except 
farm role as stated above. I would appreciate any help in this regard.

Thanks,
Chidambar

On Saturday, 12 March 2016 05:55:21 UTC+5:30, azureg wrote:
>
> Hi, I started to work with Scalr one week ago, I tried to automate the 
> whole process of creating and manage VPC via Scalr APIs. 
> Everything goes pretty well until I try to automatically add a Farm Router 
> Role which is needed by the case of adding instances into a private subnet 
> within the VPC and got an error "Only base roles supported to be added to 
> farm via API". The API document on FarmAddRole also tells that "This API 
> Call currently only Roles implementing the "Base" or "Chef" behaviors (i.e. 
> built-in automation such as MySQL automation is not supported)", the 
> question here is: 
> 1. How can I workaround the unsupported feature right now? what I tried to 
> do is to automate the whole flow(Create Farm associated with vpc, Add Farm 
> Role with specific private subnet as well as security group, Launch the 
> Farm), is it something I can do now with Scalr API? 
> 2. Is it really necessary to use Scalr VPC Router to spin up an instance 
> in vpc private subnet? I can associate a Farm role with VPC private subnet 
> without specifying Scalr VPC Router via API, but I am not able to do it 
> manually through Scalr web UI 
> I hope I am clear on my problem above, thanks in advance.
>

-- 
You received this message because you are subscribed to the Google Groups 
"scalr-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to