From eee161a5e72caf7f16a06b4b5eb1c8d2d8481031 Mon Sep 17 00:00:00 2001 From: sksat Date: Sat, 18 Mar 2023 13:02:10 +0900 Subject: [PATCH 1/2] discord: split invite link resource --- terraform/discord/discord.tf | 10 ---------- terraform/discord/invite.tf | 9 +++++++++ 2 files changed, 9 insertions(+), 10 deletions(-) create mode 100644 terraform/discord/invite.tf diff --git a/terraform/discord/discord.tf b/terraform/discord/discord.tf index 0d01854..a29b6f0 100644 --- a/terraform/discord/discord.tf +++ b/terraform/discord/discord.tf @@ -29,13 +29,3 @@ resource "discord_server" "pasokonistan" { data "discord_local_image" "logo" { file = "./computer_screen_programming.png" } - -resource "discord_invite" "bootstrap" { - channel_id = discord_text_channel.entrypoint.id - max_uses = 1 -} - -output "invite_link_bootstrap" { - description = "bootstrap invite link" - value = "https://discord.gg/${discord_invite.bootstrap.id}" -} diff --git a/terraform/discord/invite.tf b/terraform/discord/invite.tf new file mode 100644 index 0000000..5a15648 --- /dev/null +++ b/terraform/discord/invite.tf @@ -0,0 +1,9 @@ +resource "discord_invite" "bootstrap" { + channel_id = discord_text_channel.entrypoint.id + max_uses = 1 +} + +output "invite_link_bootstrap" { + description = "bootstrap invite link" + value = "https://discord.gg/${discord_invite.bootstrap.id}" +} From 6497958be8f5155ca8960973ae8c51219dca20d7 Mon Sep 17 00:00:00 2001 From: sksat Date: Sun, 19 Mar 2023 06:22:11 +0900 Subject: [PATCH 2/2] discord: add main invite link --- terraform/discord/invite.tf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/terraform/discord/invite.tf b/terraform/discord/invite.tf index 5a15648..c2f1a48 100644 --- a/terraform/discord/invite.tf +++ b/terraform/discord/invite.tf @@ -7,3 +7,12 @@ output "invite_link_bootstrap" { description = "bootstrap invite link" value = "https://discord.gg/${discord_invite.bootstrap.id}" } + +resource "discord_invite" "main" { + channel_id = discord_text_channel.entrypoint.id + max_uses = 100 +} +output "invite_link_main" { + description = "main invite link" + value = "https://discord.gg/${discord_invite.main.id}" +}