Hi,
I’m using the notify-slack module with Bitbucket Pipeline and the image: hashicorp/terraform
docker image.
- step:
name: Terraform plan
oidc: true
script:
- cd network
- export AWS_REGION=$TF_VAR_AWS_REGION
- export AWS_ROLE_ARN=$TF_VAR_AWS_ROLE_ARN_production
- export AWS_WEB_IDENTITY_TOKEN_FILE=$(pwd)/web-identity-token
- echo $BITBUCKET_STEP_OIDC_TOKEN > $(pwd)/web-identity-token
- terraform init -backend-config="access_key=$TF_VAR_aws_access_key_old_prod" -backend-config="secret_key=$TF_VAR_aws_secret_key_old_prod"
- terraform workspace select prod || terraform workspace new prod
- terraform plan -out plan.tfplan
When Bitbucke pipeline executes the terraform plan
, I get the following error:
`│ Error: can't find external program "python3"`
`│ `
`│ with module.database.module.notify_slack.module.lambda.data.external.archive_prepare[0],`
`│ on .terraform/modules/database.notify_slack.lambda/package.tf line 7, in data "external" "archive_prepare":`
`│ 7: data "external" "archive_prepare" {`
Can I get Python working in that docker image? Is my only solution to use another Docker image and to manually install Terraform and Python?
Cheers!