This guide walks you through deploying your first Patterned Designs module.

Choose a Module

For your first deployment, we recommend starting with a foundational module like vpc or security-group.

Browse available modules in the patterneddesigns namespace.

Create Your Configuration

Create a new directory for your Terraform configuration:

mkdir my-infrastructure
cd my-infrastructure

Create a main.tf file:

module "example_vpc" {
  source  = "registry.patterneddesigns.ca/patterneddesigns/vpc/aws"
  version = "1.0.0"

  # Required inputs
  name = "my-first-vpc"
  cidr = "10.0.0.0/16"
}

Initialize and Deploy

# Download the module
terraform init

# Preview changes
terraform plan

# Apply the configuration
terraform apply

Review Outputs

After deployment, Terraform displays the module outputs:

terraform output

Clean Up

To remove the resources:

terraform destroy

Next Steps