• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
FusionAuth
  • Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login

How can I configure a fusionauth docker image from scrach using only terraform

Scheduled Pinned Locked Moved Unsolved
Q&A
2
5
2.8k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K
    kasir-barati
    last edited by 15 Nov 2023, 08:10

    I tried to have a fusionauth instance up and running with docker compose file as the official doc stated here. but the only problem with that is that I do not wanna use kickstart.json to configure my fusionauth. And then I realized that without a apiKey my terrafrom resources cannot do anything since they will get a connection refused since they do not have any apiKey, so what can I do?

    Is there any kind of docker env or java env to pass to the container while creating it to create the api key automatically while creating container.

    Here you can find more context

    D 1 Reply Last reply 15 Nov 2023, 13:40 Reply Quote 1
    • D
      dan @kasir-barati
      last edited by 15 Nov 2023, 13:40

      Hiya @kasir-barati , welcome to the FusionAuth community!

      Is there any kind of docker env or java env to pass to the container while creating it to create the api key automatically while creating container.

      Unfortunately no. You can create a kickstart.json which has a single key. That's the recommended way to bootstrap FusionAuth if you want to manage everything through Terraform afterwards. Because you are correct, you'll need an API key.

      We have a terraform guide we're about to publish, but you can view it here: https://github.com/FusionAuth/fusionauth-site/pull/2323/files . That is not fully reviewed, but should still be helpful to read.

      Can you explain why you don't want to use Kickstart at all?

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      K 2 Replies Last reply 15 Nov 2023, 17:54 Reply Quote 0
      • K
        kasir-barati @dan
        last edited by 15 Nov 2023, 17:54

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • K
          kasir-barati @dan
          last edited by kasir-barati 15 Nov 2023, 20:05

          @dan because I really feel not comfortable with configuring something partly with Terraform. As an example look at how I can configure a Postgres purely with Terraform and I just need to have it configured only with Terraform.

          TBH I am not gonna be so picky about it since I know that I can actually also do configure my fusionauth only with terraform.

          Why I am so sold on the idea of configuring it only through Terraform? because then I have only one location that is dealing with configuring my infrastructure and also terraform is a wonderful tool for having a better overview of everything.

          I managed to keep my configurations inside the kickstart.json to a minimum and configure my fusionauth with terraform

          D 1 Reply Last reply 17 Nov 2023, 23:06 Reply Quote 0
          • D
            dan @kasir-barati
            last edited by 17 Nov 2023, 23:06

            @kasir-barati Makes sense. Thanks for the feedback!

            --
            FusionAuth - Auth for devs, built by devs.
            https://fusionauth.io

            1 Reply Last reply Reply Quote 0
            5 out of 5
            • First post
              5/5
              Last post