Using The Blueprint UI Builder
Creating Terraform Blueprints can either be done by writing Terraform code hand (as is explained in the next section of the documentation) or by using AutoCloud's Blueprint UI Builder. The UI Builder makes it easy to quickly create complex Terraform Blueprints without having to worry about learning the ins and outs of the AutoCloud Terraform Provider syntax and is generally recommended as it's faster than writing Blueprint code by hand.
In this guide, we will be using the AutoCloud UI Builder to create a Blueprint for a KMS Encrypted S3 Bucket so you can see how the Builder works. To create a new Terraform Blueprint using AutoCloud's UI Builder simply click on the "New Blueprint" button on the top right-hand side of the IaC Catalog page.
You'll then see a page that looks like this that provides two options. Click the "Get Started" button on the right-hand side of the screen under where it says "Use the Visual Builder".
You'll then be taken to a page that looks like this where we can begin to build our Blueprint. The first step in our process will be to give the blueprint a name and a description so that your end users will be able to understand what this blueprint is at a glance. For the purposes of this guide, we'll be creating a KMS Encrypted S3 Bucket, but the same principles apply to any Blueprint. If you'd like to follow along go ahead and enter the following Display Name and Description:
We're going to be using two different CloudPosse open-source modules to create this Blueprint, one for KMS and one for S3. Go ahead and copy and paste the following module source for the KMS Key into the field that says "URL to Git Repository" git::https://github.com/cloudposse/terraform-aws-kms-key.git?ref=0.12.1 and paste in the name kms_key to the field that says "Module Display Name" like so:
Click the "Add Module" button and you should see that the module successfully added:
Let's repeat the process with the S3 module. Go ahead and paste in the following module source git::https://github.com/cloudposse/terraform-aws-s3-bucket.git?ref=4.0.1 and give this module a name of s3 and click the add module button. You should now see two modules in the Blueprint:
We're now ready to move on to the next step in the UI Builder process where we configure our variables. Go ahead and click the "Next" button on the bottom right-hand side of the screen.