niveklabs / aws

AWS Provider
9 stars 9 forks source link

How To generate aws provider terraform #1

Open jamroks opened 3 years ago

jamroks commented 3 years ago

Hello,

First of all thanks you for the generated terraform aws provider and happy new year 2021. !

I would like to know how do you generate this terraform from a specific version of the aws provider .

Cheers

kheadjr-rv commented 3 years ago

@jamroks - Thank you and I am glad to see others benefiting from it. I really have not posted this anywhere other than how folks like yourself are finding it. I assume a search in GitHub? Maybe I should post on Reddit or something.

The way I create the code is that I wrote a Go application that uses the Terraform providers directly. I will make this code public soon.

So now its as easy as running the CLI app -

hcl -provider aws -version v3.22.0

Then the output is a folder for that provider with specific version that is then tagged and committed to GitHub -

git add . 
git commit -m v3.22.0
git tag -a v3.22.0 -m v3.22.0
git push

Out of curiosity are you finding the generated code useful as-is or would you like to have it output differently?

kheadjr-rv commented 3 years ago

Autogenerated code will be moving to https://www.tfwriter.com/

jamroks commented 3 years ago

@kheadjr-rv the polished website is great, this is excellent news thanks a lot for the work . so far the format suit my needs so nothing to change for me at this point , i'll let you know if anything comes up . I'm looking forward to the open source code for the generator itself .

Again thanks a lot

Cheers

Cheers

jamroks commented 3 years ago

And yes for me it was a search on GitHub , but it was totally by accident, I wasn't even looking for provider generated terraform , I can't quite remember exactly 3 month ago what i've typed to find the repo, but one thing is for sure, my search was around a specific terraform resource for aws dms task replication .