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
moelasmar commented
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:
- install SAM CLI using in a linux environment using the x86_64 - command line installer (https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/install-sam-cli.html)
- on a Terraform project, run
sam build --hook-name terraform --beta-features --debug
- you will get the following error
Error: Import error - HookFunctionality module "samcli.hook_packages.terraform.main"
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)
- OS: Linux
sam --version
: 1.65.0
Add --debug flag to command you are running
moelasmar commented
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.