Unable to run terraspace plan with modules

I am attempting to run terraspace plan in a stack that references a module, the output looks good when I run terraspace init, it successful fetches the module however when I run terraspace plan I get an error that the module isn’t installed.

Below is my output:

**$** AWS_REGION=eu-west-1 TS_ENV=new-schema terraspace init sqs
Building .terraspace-cache/eu-west-1/new-schema/stacks/sqs
Built in .terraspace-cache/eu-west-1/new-schema/stacks/sqs
Current directory: .terraspace-cache/eu-west-1/new-schema/stacks/sqs
=> terraform init -get -input=false
**Initializing modules...**
- mailer-queue in ../../modules/sqs
- verification-status-queue in ../../modules/sqs
**Initializing the backend...**
**Initializing provider plugins...**
- Reusing previous version of hashicorp/aws from the dependency lock file
- Using previously-installed hashicorp/aws v4.3.0
**Terraform has been successfully initialized!**
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
**at** **MacBook-Pro-2** **in** **~/GolandProjects/tf** **on** **master** **[+!?$]**
**$** AWS_REGION=eu-west-1 TS_ENV=new-schema terraspace plan sqs
Building .terraspace-cache/eu-west-1/new-schema/stacks/sqs
Built in .terraspace-cache/eu-west-1/new-schema/stacks/sqs
Current directory: .terraspace-cache/eu-west-1/new-schema/stacks/sqs
=> terraform plan -input=false
╷
│ **Error:** **Module not installed**
│
│ on main.tf line 1:
│ 1: module "verification-status-queue" {
  │
│ This module's local cache directory could not be read. Run "terraform
│ init" to install all modules required by this configuration.
╵
╷
│ **Error:** **Module not installed**
│
│ on main.tf line 6:
│ 6: module "mailer-queue" {
│
│ This module's local cache directory could not be read. Run "terraform
│ init" to install all modules required by this configuration.
╵
Error running command: terraform plan -input=false

Is there an extra step I need to install modules within the Terraspace modules folder?

Naw. There shouldn’t be an extra step. :thinking:

Thinking give one of the Getting Started Guides a try.

https://terraspace.cloud/docs/learn/aws/review-project/

It generates an example that uses a module. And it doesn’t require any extra steps.

I had to run terraform get within the stack using the module and now terraspace plan runs correctly :tada:

Thanks!