feluelle commented on issue #9009:
URL: https://github.com/apache/airflow/issues/9009#issuecomment-638289406


   So what I have in mind is that the `def setUpClass` automatically `terraform 
init`s the infra located in `tests/providers/*/infrastructure` for a file named 
as the example dag file and should end with `.tf` **if exists**
   
   What we could also do would be only running the terraform init 
for`tests/providers/*/infrastructure` once for all example dags when the 
providers system flag is used `--system amazon`.
   
   > Is creating a single GCS bucket worth adding terraform?
   
   @turbaszek in my opinion we should do it consistenly for all example_dags. 
Do you think it would be slow? Or what is your concern?
   Under the hood terraform is also using the cli's we use to create resources 
for aws and google, right? So why not do it safely and more manageable using 
terraform? I think the biggest plus is that the infra automatically gets 
destroyed so we do not accidently let something exists longer as the test needs 
it.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to