From fa4a58ca97a973766c47bf1a295fc011d6a0980a Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra Date: Mon, 28 Aug 2023 14:19:20 +0530 Subject: [PATCH] refactor: runner configuration v4.2.x --- backend.tf | 9 +++++++ main.tf | 74 ++++++++++++++++++++++++++++++++++------------------ outputs.tf | 3 +++ variables.tf | 7 +---- vpc.tf | 16 ------------ 5 files changed, 62 insertions(+), 47 deletions(-) create mode 100644 backend.tf delete mode 100644 vpc.tf diff --git a/backend.tf b/backend.tf new file mode 100644 index 0000000..2f6d655 --- /dev/null +++ b/backend.tf @@ -0,0 +1,9 @@ +terraform { + cloud { + organization = "freecodecamp" + + workspaces { + name = "tfws-ops-github-runners" + } + } +} diff --git a/main.tf b/main.tf index 981b9f1..6f9ab7d 100644 --- a/main.tf +++ b/main.tf @@ -1,10 +1,43 @@ - resource "random_id" "random" { byte_length = 20 } data "aws_caller_identity" "current" {} +resource "aws_resourcegroups_group" "resourcegroups_group" { + name = "${var.prefix}-group" + resource_query { + query = <