@@ -12,58 +12,4 @@ data "tfe_outputs" "database" {
12
12
organization = " soat-tech-challenge"
13
13
workspace = " database-staging"
14
14
}
15
- data "template_file" "identification_svc_container_definition" {
16
- template = file (" ./container_definitions/identification.json" )
17
- vars = {
18
- id = " identification"
19
- aws_access_key = var.aws_access_key
20
- aws_secret_key = var.aws_secret_key
21
- aws_session_token = var.aws_session_token
22
- aws_dynamodb_endpoint = " dynamodb.${ var . aws_region } .amazonaws.com"
23
- client_jwt_pub_key = var.client_jwt_public_key
24
- aws_region = var.aws_region
25
- }
26
- }
27
-
28
-
29
- data "template_file" "order_svc_container_definition" {
30
- template = file (" ./container_definitions/order.json" )
31
- vars = {
32
- id = " order"
33
- db_username = var.order_svc_db_username
34
- db_password = var.order_svc_db_password
35
- db_name = var.order_svc_db_name
36
- db_host = data.tfe_outputs.database.values.order_svc_db.endpoint
37
- client_jwt_pub_key = var.client_jwt_public_key
38
- api_url_identification = " ${ data . tfe_outputs . network . values . lb_lb . dns_name } /identification"
39
- aws_region = var.aws_region
40
- }
41
- }
42
15
43
- data "template_file" "payment_svc_container_definition" {
44
- template = file (" ./container_definitions/payment.json" )
45
- vars = {
46
- id = " payment"
47
- db_username = var.payment_svc_db_username
48
- db_password = var.payment_svc_db_password
49
- db_name = var.payment_svc_db_name
50
- db_host = data.tfe_outputs.database.values.payment_svc_db.endpoint
51
- client_jwt_pub_key = var.client_jwt_public_key
52
- api_url_order = " ${ data . tfe_outputs . network . values . lb_lb . dns_name } /order"
53
- api_url_production = " ${ data . tfe_outputs . network . values . lb_lb . dns_name } /production"
54
- aws_region = var.aws_region
55
- }
56
- }
57
-
58
- data "template_file" "production_svc_container_definition" {
59
- template = file (" ./container_definitions/production.json" )
60
- vars = {
61
- id = " production"
62
- aws_access_key = var.aws_access_key
63
- aws_secret_key = var.aws_secret_key
64
- aws_session_token = var.aws_session_token
65
- aws_dynamodb_endpoint = " dynamodb.${ var . aws_region } .amazonaws.com"
66
- client_jwt_pub_key = var.client_jwt_public_key
67
- aws_region = var.aws_region
68
- }
69
- }
0 commit comments