added fun terraform yml to make it do it via cicid

This commit is contained in:
Jun-te Kim 2025-03-31 14:28:21 +00:00
parent 63b72f1500
commit 7d28ae938c
2 changed files with 27 additions and 4 deletions

View file

@ -0,0 +1,21 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.16"
}
}
backend "s3" {
bucket = "survey-extractor-terraform-state"
region = "eu-north-1"
profile = "domna.dev" # /home/vscode/aws/credentials
key = "terraform.tfstate"
}
required_version = ">= 1.2.0"
}
provider "aws" {
profile = var.profile
region = var.region
}

View file

@ -1,9 +1,11 @@
variable region {
type = string
default = "eu-west-2"
default = "eu-north-1"
description = "AWS region"
}
terraform {
required_version = ">= 0.12"
}
variable "profile" {
description = "AWS profile to use"
type = string
default = "Jun-te"
}