forked from aws-samples/serverless-patterns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.tf
40 lines (35 loc) · 770 Bytes
/
config.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
# Use if you have remote state setup, other leave commented out
# terraform {
# backend "s3" {
# region = "us-east-1"
# bucket = "fargano-statefiles"
# key = "tf-demo/variables-demo.tfstate"
# encrypt = "true"
# dynamodb_table = "fargano-tflock"
# }
#}
terraform {
required_providers {
rabbitmq = {
source = "cyrilgdn/rabbitmq"
}
}
}
provider "aws"{
region = var.region
}
provider "aws"{
alias = "sec"
region = var.sec_region
}
provider "rabbitmq" {
endpoint = aws_mq_broker.primary.instances.0.console_url
username = var.user
password = var.password
}
provider "rabbitmq" {
alias = "secondary"
endpoint = aws_mq_broker.secondary.instances.0.console_url
username = var.user
password = var.password
}