24 lines
944 B
HCL
24 lines
944 B
HCL
provider "aws" {
|
|
region = "us-east-1" # Change this to your preferred region
|
|
}
|
|
|
|
terraform {
|
|
backend "s3" {
|
|
bucket = "tfstate" # Name of the S3 bucket
|
|
endpoints = {
|
|
s3 = "http://theocorp:9001" # Minio endpoint
|
|
}
|
|
key = "vps.tfstate" # Name of the tfstate file
|
|
|
|
access_key="YwXYXFxiTGLWuvTpmh11" # Access and secret keys
|
|
secret_key="HGoZLFky3oUCQ7tnrFLsp8TQ6MTFDcrdjeiYP9iW"
|
|
|
|
region = "main" # Region validation will be skipped
|
|
skip_credentials_validation = true # Skip AWS related checks and validations
|
|
skip_requesting_account_id = true
|
|
skip_metadata_api_check = true
|
|
skip_region_validation = true
|
|
use_path_style = true # Enable path-style S3 URLs (https://<HOST>/<BUCKET> https://developer.hashicorp.com/terraform/language/settings/backends/s3#use_path_style
|
|
}
|
|
}
|