1. image: What environment your pipeline runs in

image:
name:registry.gitlab.com/gitlab-org/gitlab-build-images:terraform
entrypoint:
-'/usr/bin/env'
-'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'

What this means:

Why this matters:

The entrypoint part:


2. variables: Environment variables for Terraform & AWS

variables:
TF_VERSION:"1.5.0"
AWS_ACCESS_KEY_ID:${MY_AWS_KEY}
AWS_SECRET_ACCESS_KEY:${MY_AWS_ACCESS_KEY}
AWS_DEFAULT_REGION:"ap-south-1"

What’s happening here:

AWS variables:

Terraform uses these automatically to authenticate with AWS.