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..7108ca0 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 = <