ArunKumarKakarl
Contributor
Contributor

modify payload properties

Hi,

I am trying to deploy EC2 instances to multiple availability zones using vRA.

As part of the deployment I want to deploy EC2 instances in round robin to multiple availability zone.

 

example

instance1 goes  to availability zone 1

instance2 goes to availability zone 2

is there any way to achieve this using vRA or by updating property  /machine/properties/__amazon.subnetId : using vRO?

 

Thanks

Arun

0 Kudos
2 Replies
itviktor
Contributor
Contributor

I have a similar problem, but gave up on the payload.  Instead I'm using an XaaS BP to call the composite blueprint and pass the subnet data that way through the vRA API.  It seems to work ok if I pass vRA's integer value for the subnet (amazon_subnet_id = <integer>), but if I instead pass the AWS identifier for the subnet (amazonSubnetId : subnet-<hex number>) the subnet input is ignored and the EC2 instance is placed in some (seemingly) random subnet.  I do not know of a way to lookup the identifiers vRA uses for subnets, but already have an action that queries AWS for subnets, filters on name, checks for the number of available IPs and returns the AWS identifier for the subnet.  How do I pass the AWS identifier to the vRA API and get the provisoining process to actually use that subnet?
0 Kudos
Johnnyw463
Contributor
Contributor

Were you ever able to resolve this? I am stuck in the same boat right now.

vRA is identifying my subnets by some seemingly random integer value, and not by the ID in AWS. I am trying to call a blueprint through an XAAS blueprint, and am unable to figure out how to identify these integer values.

0 Kudos