redteaminfra / redteam-infra

100 stars 25 forks source link

One `terraform apply` to rule them all #66

Open willk opened 1 year ago

willk commented 1 year ago

I want a world where I only have to type terraform apply once to stand up the entire system. To do this we would need:

  1. infra terraform modules for each provider we use (oci, aws, linode).
  2. sketch terraform modules for each provider we use.
  3. A way to select which providers we would use for each.
  4. Ansible roles would be need to be created for sketch

After terraform apply there would be one inventory.ini for all hosts to be configured with ansible.

AWS and OCI already have infra terraform, they would just need sketch infra, Linode would need infra terraform. More cloud providers should be added (ovh, digital ocean, hetzner, vultr)

0xBienCuit commented 3 months ago

Hi @willk ,

This issue you put up here resembles in a way what I've tried to implement myself during a school project. Tho it was more like a mix of different duct tapes hanging by a screw that made it work...

Since then I've geeked out on my spare time and I would like to exchange ideas with you in order to get a vision suited for this project.

If possible, could you get back to me when you have a gap in your schedule? Would highly appreciate it!

Kinds regards,

Nico

willk commented 2 months ago

Hey there,

I’ll reach out tomorrow and we can schedule some time.

Will

On Wed, Aug 21, 2024, at 4:31 PM, Biencuit wrote:

Hi @willk https://github.com/willk ,

This issue you put up here resembles in a way what I've tried to implement myself during a school project. Tho it was more like a mix of different duct tapes hanging by a screw that made it work...

Since then I've geeked out on my spare time and I would like to exchange ideas with you in order to get a vision suited for this project.

If possible, could you get back to me when you have a gap in your schedule? Would highly appreciate it!

Kinds regards,

Nico

— Reply to this email directly, view it on GitHub https://github.com/redteaminfra/redteam-infra/issues/66#issuecomment-2303291483, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH4U5OPHG2M7HFOKQSQGNDZSUPMJAVCNFSM6AAAAABM47XHJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBTGI4TCNBYGM. You are receiving this because you were mentioned.Message ID: @.***>

willk commented 2 months ago

@0xBienCuit send me an email tztfxf+cjb34a1f87uc0 (at) sharklasers.com.

0xBienCuit commented 2 months ago

@0xBienCuit send me an email tztfxf+cjb34a1f87uc0 (at) sharklasers.com.

Done @willk

0xBienCuit commented 2 months ago

Hi @willk ,

After some researching, trial & error, pulling some hair out here and there, I've always come to hit a brick wall when trying to use terraform with multiple providers to choose from. My gut tells me this will require some serious duct taping, What was that tool again you mentinoed during our call? I can't seem to find it, something like 'plumonium'? But i get mostly results for 'plutonium', the modified version of several old school CODs. I wanna give that a try so could you let me know the name again?

willk commented 2 months ago

Hey @0xBienCuit,

Pulumi was the tool I brought up, not sure if it would be the right tool for this or not. I haven't had a chance to use it.

Will