mirror of
https://github.com/Hestia-Homes/survey-extraction.git
synced 2026-06-30 13:10:56 +00:00
added fun terraform yml to make it do it via cicid
This commit is contained in:
parent
63b72f1500
commit
7d28ae938c
2 changed files with 27 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
@ -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"
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue