Setting Your Cloud Accounts¶
For security reasons, it is recommended not to add any cloud account information into the template file. Hammr allows you to register your cloud account information to the UForge server, then reference the cloud account tag name in the template.
To do this, you need to create a JSON or YAML file which contains all the necessary cloud credentials. This will depend on your cloud type. For more information, refer to the Builders Specification section of the documentation.
Once this file is ready, you create the cloud account on UForge by running the command
account create. The following example assumes you have created a YAML file, but you can also use JSON.
$ hammr account create --file aws-account.yml Validating the template file [aws-account.yml] ... OK: Syntax of template file [aws-account.yml] is ok Create account for 'ami'... OK: Account create successfully for [ami]
Once the cloud account is created, you can safely reference the cloud credentials in all the template files by using the account name.