Website logo
HomeTwitterLinkedInLogin ➑️
⌘K
πŸ†•New User Onboarding
πŸ‘©β€πŸ’»Terraform Blueprints & IaC Catalog
Terraform Blueprints Overview
Writing Terraform Blueprints By Hand
Terraform Provider Reference
Configuration Options
Available Quick Starts
Blueprint FAQs
🌏Connect Cloud Accounts
AWS Account
Azure Subscription
GCP Project
πŸ—οΈManaging Cloud Accounts
What are Accounts
Credentials
Scanning Options
Changelog
Compliance
CI/CD
πŸ—ΊοΈIaC Explorer
IaC Explorer Overview
Codifier
Generating Terraform
Terraform Remote State File Integration
πŸ’ΌManagement
πŸ”’Security
πŸ€”Feedback/Contact
Docs powered byΒ Archbee
Terraform Blueprints & IaC Cat...
Terraform Provider Reference

Terraform Module Integration

2min

Terraform blueprints are designed to integrate with existing Terraform modules and deploy them together as a single set of resources. The autocloud_module resource defines the link between AutoCloud and a module. The autocloud_module resource takes three arguments:

Argument

Description

Required

name

The reference name for the module in blueprint configs. Characters must be in [a-zA-Z0-9]

Yes

source

The module source. Can be either a git reference or a registry reference. See module source documentation for details.

Yes

version

The version of the module to use. Only supported for registry sources, git sources should use ref syntax to pin to specific tag, branch or commit.

No

The resource has a single attribute, blueprint_config, which is used to configure the display elements and link modules together.

Example using git source:

Terraform
resource "autocloud_module" "kms_key" {
  name   = "kmskey"
  source = "git@github.com:autoclouddev/infrastructure-modules-demo.git//aws/security/kms/key?ref=0.10.2"
}
ο»Ώ

Example using registry source:

Terraform
resource "autocloud_module" "kms_key" {
  name    = "cpkmskey"
  source  = "cloudposse/kms-key/aws"
  version = "0.12.1"
}
ο»Ώ

ο»Ώ

Updated 07 Mar 2023
Did this page help you?
PREVIOUS
String Formatting
NEXT
Blueprint Configuration
Docs powered byΒ Archbee
Docs powered byΒ Archbee