-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.tf
38 lines (35 loc) · 985 Bytes
/
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
terraform {
backend "remote" {
organization = "ukrops"
workspaces {
prefix = "emojibot-"
}
}
}
provider aws {
region = "us-east-1"
}
data "aws_region" "current" {}
data "aws_caller_identity" "current" {}
locals {
ssm = {
slack_api_key_path = "/ukrops/emojiBot/${terraform.workspace}/slackAPIkey"
legacy_slack_api_key_path = "/ukrops/emojiBot/${terraform.workspace}/LegacySlackAPIkey"
legacy_slack_sign_secret_path = "/ukrops/emojiBot/${terraform.workspace}/slackSignSecret"
}
current = local.workspace[terraform.workspace]
workspace = {
production = {
dns_name = "emojibot-production.aws.ctrlok.dev"
best_emoji_name = "to_best"
best_channel_id = "C4ZBDES04"
debug = ""
}
development = {
dns_name = "emojibot-development.aws.ctrlok.dev"
best_emoji_name = "japanese_goblin"
best_channel_id = "CS9R5CUQG"
debug = "true"
}
}
}