العودة إلى الدورة

الخلفيات البعيدة (Remote Backends): تعاون الفريق

احتراف البنية التحتية كبرمجيات (Terraform & OpenTofu)

Don't Store State Locally

If you work in a team, and you have the terraform.tfstate on your laptop, your teammate can't see what you built. You need a Remote Backend.

Using AWS S3 as a Backend

hcl terraform { backend "s3" { bucket = "my-company-terraform-state" key = "prod/network.tfstate" region = "us-east-1" } }

Now, the state is stored in the cloud. Anyone with permission can run apply and use the same source of truth.