I ended up NOT using the Scalr NAT instance because I though the HashiCorp Terraform was powerful enough. To get things working I just used a pretty simple config that makes user of the AWS NAT AMI.
resource "aws_instance" "nat" { ami = "${var.aws_nat_ami}" availability_zone = "eu-west-1a" instance_type = "t2.medium" key_name = "${var.aws_key_name}" security_groups = ["${aws_security_group.nat.id}"] subnet_id = "${aws_subnet.eu-west-1a-public.id}" associate_public_ip_address = true source_dest_check = false tags { Name = "eu-ire-eng-nat01" user = "${var.aws_user_tags}" } } There is also a section that builds the firewall rule, assigns and EIP, builds the routes, etc. On Friday, March 11, 2016 at 5:25:21 PM UTC-7, 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 scalr-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.