aws/aws-sam-cli

Bug: Terraform support is not working for SAM CLI installed in linux using the x86_64 - command line installer

moelasmar opened this issue · 2 comments

Description:

Customers are seeing Error: Import error - HookFunctionality module "samcli.hook_packages.terraform.main when attempting to use sam cli commands against terraform projects.

Steps to reproduce:

Observed result:

SAM CLI failed to build the terraform project with this error Error: Import error - HookFunctionality module "samcli.hook_packages.terraform.main"

Expected result:

SAM CLI should build the terraform project without errors.

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS: Linux
  2. sam --version: 1.65.0

Add --debug flag to command you are running

This issue is fixed in this sam nightly release. As a workaround for now, please follow these instructions to install the sam nightly version. We will update this issue once we release this fix.

SAM CLI released 1.66.0 and Terraform support feature is working when installing through Linux installer. I'm resolving this issue.