-
Notifications
You must be signed in to change notification settings - Fork 5
/
main.tf
55 lines (38 loc) · 1.48 KB
/
main.tf
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
47
48
49
50
51
52
53
54
55
provider "aws" {
assume_role {
role_arn = "arn:aws:iam::241906670800:role/dam_prototype-admin"
}
region = "eu-west-3"
}
module "us_demo_stack" {
source = "github.com/wellcomecollection/storage-service.git//demo/terraform/demo_stack?ref=b601f2a"
namespace = "weco-us-dams-prototype"
short_namespace = "weco-us"
providers = {
aws = aws.us_east_1
}
}
output "us_elasticsearch_host" { value = module.us_demo_stack.elasticsearch_host }
output "us_kibana_endpoint" { value = module.us_demo_stack.kibana_endpoint }
output "us_token_url" { value = module.us_demo_stack.token_url }
output "us_api_url" { value = module.us_demo_stack.api_url }
output "us_replica_primary_bucket_name" { value = module.us_demo_stack.replica_primary_bucket_name }
output "us_replica_glacier_bucket_name" { value = module.us_demo_stack.replica_glacier_bucket_name }
output "us_uploads_bucket_name" { value = module.us_demo_stack.uploads_bucket_name }
output "us_unpacked_bags_bucket_name" { value = module.us_demo_stack.unpacked_bags_bucket_name }
provider "aws" {
alias = "us_east_1"
assume_role {
role_arn = "arn:aws:iam::241906670800:role/dam_prototype-admin"
}
region = "us-east-1"
}
terraform {
backend "s3" {
role_arn = "arn:aws:iam::975596993436:role/storage-developer"
bucket = "wellcomecollection-storage-infra"
key = "terraform/dams-prototype-project/main.tfstate"
dynamodb_table = "terraform-locktable"
region = "eu-west-1"
}
}