-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathterraform.tf
More file actions
46 lines (41 loc) · 1.37 KB
/
terraform.tf
File metadata and controls
46 lines (41 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#####################################################################################
# Terraform module examples are meant to show an _example_ on how to use a module
# per use-case. The code below should not be copied directly but referenced in order
# to build your own root module that invokes this module
#####################################################################################
terraform {
required_version = ">= 1.14.0"
# Replace with your own remote backend configuration.
# backend "s3" {
# bucket = "<your-state-bucket>"
# key = "agentspaces/<name>.tfstate"
# region = "eu-west-2"
# encrypt = true
# use_lockfile = true
# }
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 6.0.0"
}
awscc = {
source = "hashicorp/awscc"
version = "~> 1.0"
}
time = {
source = "hashicorp/time"
version = "~> 0.9"
}
}
}
# Targets the hosting account where the AgentSpace lives.
# IAM is global so aws_region is cosmetic here, but should match your primary region.
provider "aws" {
region = var.aws_region
}
# The awscc provider MUST be configured to a supported AgentSpace region.
# eu-west-2 (London) is not a supported AgentSpace region.
# It must match var.agentspace_region passed to the module.
provider "awscc" {
region = var.agentspace_region
}