Terraform Cloud Agents are a paid feature, available as part of the Terraform Cloud Business tier. They are not available on the Free or Plus plans.
Why a custom agent image is needed
The defaulthashicorp/tfc-agent image does not include Python. The notify-slack module uses the terraform-aws-modules/lambda/aws submodule to package the Lambda function, which requires Python to be available in the environment where terraform apply runs. The module defaults to runtime = "python3.13", but the packaging step requires Python 3.11 or later to be present on the agent.
Build a custom tfc-agent image
Create aDockerfile that extends the official tfc-agent image and installs Python 3.11:
Override the Python runtime version
The Lambda function runtime defaults topython3.13. If your agent only has Python 3.11 installed, the packaging step will still succeed because the packaging tool (pip) installs dependencies for the target runtime rather than executing the function locally. The runtime variable controls the Lambda execution environment in AWS, not what runs on the agent.
To deploy the Lambda with a specific Python version, set the runtime variable:
runtime are any Python runtime string supported by AWS Lambda, such as "python3.11", "python3.12", or "python3.13".