Pushing The Blueprint To AutoCloud
We’re now ready to push our Blueprint to AutoCloud. Let’s go ahead and take a look at the README.md file and run the instructions for how to do that.
The README.md contains comprehensive information about what this Blueprint is, how it works, and most importantly how to publish it so that you can use it on AutoCloud. If we scroll down line 46, we can see the instructions for how to do this.
Note: make sure that you have Terraform installed, and if you don’t then follow the instructions here to do so. Once you’re ready, then open up your terminal, change into the getting-started-aws directory, and run terraform init. You should see an output similar to this:
(optional) If you’d like to see what resources this Blueprint is going to create in AutoCloud before you actually create them, feel free to `terraform plan` and you’ll see an output that looks something like this:
As you can see from the plan output, we are not actually creating any Terraform resources on AWS here - we’re simply going to create a new Blueprint in AutoCloud which can itself be used to create Terraform code.
Now that we’ve verified everything looks good, let’s go ahead and run the terraform apply command, and when prompted enter "yes" so the apply runs.
If everything was successful then you will see a message that looks like this:
And that’s it, you’ve successfully pushed your first Terraform Blueprint up to AutoCloud! Let’s head back over to the IaC Catalog page in the AutoCloud app and take the Blueprint we just published for a test drive.
