dev.metalisp.survey/providers.tf

31 lines
1 KiB
Terraform
Raw Permalink Normal View History

2025-01-12 12:05:58 +01:00
# This file configures the providers used in this Terraform configuration.
# Providers are plugins that Terraform uses to manage resources.
2024-06-26 17:29:56 +02:00
terraform {
2025-01-12 12:05:58 +01:00
# Specify the required providers and their versions
2024-06-26 17:29:56 +02:00
required_providers {
2025-01-12 12:05:58 +01:00
# AWS provider for managing AWS resources
2024-06-26 17:29:56 +02:00
aws = {
2025-01-12 12:05:58 +01:00
source = "hashicorp/aws" # Source of the provider
version = "~> 4.16" # Version constraint for the provider
}
# Cloud-init provider for generating cloud-init configs
cloudinit = {
source = "hashicorp/cloudinit"
version = "~> 2.2.0"
2024-06-26 17:29:56 +02:00
}
}
2025-01-12 12:05:58 +01:00
# Specify the required version of Terraform itself
2024-06-26 17:29:56 +02:00
required_version = ">= 1.2.0"
}
2025-01-12 12:05:58 +01:00
# Configure the AWS Provider
2024-06-26 17:29:56 +02:00
provider "aws" {
2025-01-12 12:05:58 +01:00
region = "eu-central-1" # Specify the AWS region to use
shared_credentials_files = ["~/.aws/credentials"] # Path to the AWS credentials file
2024-06-26 17:29:56 +02:00
}
2025-01-12 12:05:58 +01:00
# Configure the cloudinit Provider
# No specific configuration needed for cloudinit, but declaring it here makes it available for use
provider "cloudinit" {}