Blueprint
The primary Terraform resource for the Terraform blueprint is the autocloud_blueprint resource. This resource combines all the configuration elements together and defines the display, contents, and (optionally) the destination pull request for the code a consumer generates when using the blueprint, and creates the blueprint in AutoCloud. The sections that follow define the arguments the resource requires.
The Terraform blueprint requires some metadata used to define how it is displayed in the catalog to consumers. This metadata consists of five arguments:
Argument | Description | Required |
name | A string with a descriptive display name for the blueprint. | Yes |
author | The email address of the AutoCloud user who is responsible for maintaining the blueprint. | Yes |
description | A short description of the purpose of the blueprint and the resources it will generate. | Yes |
labels | An array of string labels to apply to the blueprint for searching and filtering. | Yes |
instructions | A markdown string containing instructions to the consumer indicating how they should complete the blueprint. | Yes |
Example:
The Terraform blueprint requires and accepts one config argument, which contains the final configuration of the modules as defined by the autocloud_blueprint_config data resources.
Example:
A Terraform blueprint can have a set of target git repositories the consumer is allowed to submit generated code to for review and deployment. If no git_config is defined for a blueprint, the consumer will still be able to download the terraform code generated by the blueprint. The git_config argument block specifies this configuration. Only one git_config block is allowed. The block supports four arguments:
Argument | Description | Required |
destination_branch | Defines the destination branch the generated pull request will target. | Yes |
git_url_options | An array of of Git repository URLs the user can submit code to. | Yes |
git_url_default | The default Git repository to submit to, needs to be in the git_url_options block. | Yes |
pull_request | A block specifying the configuration for the generated pull request. See below. | Yes |
The pull_request block supports four arguments:
Argument | Description | Required |
title | A string defining the pull request title. Interpolation supported. | Yes |
commit_message_template | A string defining the commit message used to commit the generated code. Interpolation supported. | Yes |
body | A markdown string defining the contents of the pull request. Interpolation supported. | Yes |
variables | A dictionary of keys and values used in interpolating the other arguments. | No |
Example:
ο»ΏA Terraform blueprint can have multiple output files which contain the generated code. These files are specified using the file argument block. The block supports four arguments:ο»Ώ
Argument | Description | Required |
action | Defines the action, currently must always be "CREATE". | Yes |
destination | Defines the path relative to the Git repository root where the file will be created. Interpolation supported. | Yes |
variables | A dictionary of keys and values used in interpolating the destination string. | No |
modules | An array of modules to include in the file, referenced by their Terraform resource name. | Yes |
Example:
ο»Ώ

