DEV Community

Discussion on: The Ultimate Terraform Workflow: Setup Terraform (And Remote State) With Github Actions

Collapse
 
loujaybee profile image
Lou (🚀 Open Up The Cloud ☁️)

I'm not sure I understood what you meant by: "but using atomic deployment and not as individual deployment commands"? Do you mean whether you can deploy only the other resources and not the state S3 bucket?

Collapse
 
haripraghashs profile image
Hari subramaniam

I was wondering if the S3 bucket has to be set up up front before the deployment can be performed? Just was wondering to see if even that can be automated like say one configuration that includes backend S3 creation and proceeding with the deployment only after backend is done.

Thread Thread
 
haripraghashs profile image
Hari subramaniam

But I played with it using your article and realised that backend has to be set up first. Also realised that the backend configuration does not accept variables and has to be constants that exist

Thread Thread
 
loujaybee profile image
Lou (🚀 Open Up The Cloud ☁️)

Yeah, exactly. Maybe in future they'll fix this DX issue of getting setup. But as you say the backend MUST be hardcoded (without some hacking) and therefore it must be created as a two step process where the first step is running on local (or some other backend other than the one you're configuring). It's a shame really... I imagine at some point this will get addressed. Glad you were able to follow through the tutorial though! At least the explanation wasn't terrible ! 😂

Thread Thread
 
haripraghashs profile image
Hari subramaniam

Ah yeah hope that gets addressed at some point. Great tutorial and it was quite clear :)