2021-09-21 18:19:19 +00:00
|
|
|
provider "aws" {
|
|
|
|
region = var.region
|
|
|
|
}
|
|
|
|
|
2022-05-25 18:03:29 +00:00
|
|
|
|
|
|
|
provider "tls" {
|
|
|
|
# Configuration options
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-09-21 18:19:19 +00:00
|
|
|
terraform {
|
2021-11-10 01:14:05 +00:00
|
|
|
// these values should match what is bootstrapped in ./remote-state
|
2021-09-30 20:22:34 +00:00
|
|
|
backend "s3" {
|
2021-11-10 01:14:05 +00:00
|
|
|
bucket = "fleet-terraform-remote-state"
|
|
|
|
region = "us-east-2"
|
2022-05-25 18:03:29 +00:00
|
|
|
key = "fleet"
|
2021-09-30 20:22:34 +00:00
|
|
|
dynamodb_table = "fleet-terraform-state-lock"
|
|
|
|
}
|
2021-09-21 18:19:19 +00:00
|
|
|
required_providers {
|
|
|
|
aws = {
|
|
|
|
source = "hashicorp/aws"
|
2022-09-29 17:58:23 +00:00
|
|
|
version = "4.32.0"
|
2022-05-25 18:03:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tls = {
|
2022-09-29 17:58:23 +00:00
|
|
|
source = "hashicorp/tls"
|
2022-05-25 18:03:29 +00:00
|
|
|
version = "3.3.0"
|
2021-09-21 18:19:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-29 17:58:23 +00:00
|
|
|
data "aws_caller_identity" "current" {}
|