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..c2f1a48 --- /dev/null +++ b/terraform/discord/invite.tf @@ -0,0 +1,18 @@ +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}" +} + +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}" +}