Hi Khayam, the Fn::FindInMap is not supported in HOT as far as I can see in the code.
The list of functions supported in the HOT version you are using is defined in this part of the code: https://github.com/openstack/heat/blob/master/heat/engine/hot/template.py#L274 The list for version 2013-05-23 can be found in the same file. I think this should also be covered in docs that get generated from the sources, but I do not have a link at hand right now. Regards, Thomas > From: Khayam Gondal <khayam.gon...@gmail.com> > To: "openstack@lists.openstack.org" <openstack@lists.openstack.org> > Date: 11/02/2015 07:03 > Subject: [Openstack] Fn::FindInMap gives error in Heat HOT Template > > In my HOT template heat_template_version: 2014-10-16 I have a > autoscaling group as > auto_scale_server: > type: OS::Heat::AutoScalingGroup > properties: > min_size: 0 > max_size: { "Fn::FindInMap" : [ "mirror_map", { "Ref" : "Mirror" } ]} > resource: > type: OS::Nova::Server > properties: > name: Scaled_Blade > image: UbuntuDemo > flavor: g1.disk > key_name: htor > networks: [{network: internal}] > where value of max_size depends upon Property Mirror > In Parameters section > parameters: > > Mirror: > type: string > label: Mirroring Port > description: Select the Port on which you want to Mirror the traffic > constraints: > - allowed_values: > - port1 > - fm00 > > Mappings: > mirror_map: > fm00: 0 > port1: 1 > When I start this template, I got error > ERROR: Invalid key 'mirror_map' for parameter (Mappings) > > P.S I had also changed HOT template version to '2013-05-23' but no luck > _______________________________________________ > Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack > Post to : openstack@lists.openstack.org > Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack _______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack