[[export-cloudformation-template]]
[role="xpack"]
=== Export AWS CloudFormation template  

You can use {beatname_uc} to export an {cloudformation-ref} template then use
the template with automation software to deploy {beatname_uc} code to your cloud
environment.

After configuring {beatname_uc}, use the following command to export the 
CloudFormation template:

*linux and mac:*

["source","sh",subs="attributes"]
----------------------------------------------------------------------
./{beatname_lc} export function FUNCTION_NAME
----------------------------------------------------------------------

*win:*

["source","sh",subs="attributes"]
----------------------------------------------------------------------
.{backslash}{beatname_lc}.exe export function FUNCTION_NAME
----------------------------------------------------------------------

{beatname_uc} writes the CloudFormation template to stdout. Modify the template
to work with your infrastructure.
