From 74a2215df1cbfc287d18717cae5105263e66b1a6 Mon Sep 17 00:00:00 2001 From: edebrye <edebrye@ippon.fr> Date: Wed, 24 Mar 2021 16:20:02 +0100 Subject: [PATCH] Added xray group for insights --- deploy/.terraform.lock.hcl | 19 ++++++++++++++++++- deploy/xray.tf | 5 +++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 deploy/xray.tf diff --git a/deploy/.terraform.lock.hcl b/deploy/.terraform.lock.hcl index 2fdcbd3..5faf07b 100644 --- a/deploy/.terraform.lock.hcl +++ b/deploy/.terraform.lock.hcl @@ -41,4 +41,21 @@ provider "registry.terraform.io/hashicorp/aws" { "zh:ec8a7d0f02738f290107d39bf401d68ddce82a95cd9d998003f7e04b3a196411", "zh:ffcc43b6c5e7f26c55e2a8c539d7370fca8042722400a3e06bdce4240bd7088a", ] -} \ No newline at end of file +} + +provider "registry.terraform.io/hashicorp/template" { + version = "2.2.0" + hashes = [ + "h1:94qn780bi1qjrbC3uQtjJh3Wkfwd5+tTtJHOb7KTg9w=", + "zh:01702196f0a0492ec07917db7aaa595843d8f171dc195f4c988d2ffca2a06386", + "zh:09aae3da826ba3d7df69efeb25d146a1de0d03e951d35019a0f80e4f58c89b53", + "zh:09ba83c0625b6fe0a954da6fbd0c355ac0b7f07f86c91a2a97849140fea49603", + "zh:0e3a6c8e16f17f19010accd0844187d524580d9fdb0731f675ffcf4afba03d16", + "zh:45f2c594b6f2f34ea663704cc72048b212fe7d16fb4cfd959365fa997228a776", + "zh:77ea3e5a0446784d77114b5e851c970a3dde1e08fa6de38210b8385d7605d451", + "zh:8a154388f3708e3df5a69122a23bdfaf760a523788a5081976b3d5616f7d30ae", + "zh:992843002f2db5a11e626b3fc23dc0c87ad3729b3b3cff08e32ffb3df97edbde", + "zh:ad906f4cebd3ec5e43d5cd6dc8f4c5c9cc3b33d2243c89c5fc18f97f7277b51d", + "zh:c979425ddb256511137ecd093e23283234da0154b7fa8b21c2687182d9aea8b2", + ] +} diff --git a/deploy/xray.tf b/deploy/xray.tf new file mode 100644 index 0000000..0316034 --- /dev/null +++ b/deploy/xray.tf @@ -0,0 +1,5 @@ +resource "aws_xray_group" "main" { + group_name = "${local.prefix}-group" + filter_expression = "http.url CONTAINS \"${aws_api_gateway_stage.main.invoke_url}\"" + tags = local.common_tags +} \ No newline at end of file -- GitLab