Open
Description
📝 Description
When I am automating and managing data analytics infrastructure using Microsoft Fabric across multiple environments, I want to get details of Apache Airflow Job as code in Terraform.
To consistently and securely manage Apache Airflow Job as code in Terraform while automating and managing data analytics infrastructure using Microsoft Fabric across multiple environments.
🔬 Details / References
- Resource Name:
fabric_apache
- API documentation:
- Create Apache Airflow Job: https://learn.microsoft.com/en-us/rest/api/fabric/apacheairflowjob/items/create-apache-airflow-job?tabs=HTTP
- Delete Apache Airflow Job: https://learn.microsoft.com/en-us/rest/api/fabric/apacheairflowjob/items/delete-apache-airflow-job?tabs=HTTP
- Update Apache Airflow Job: https://learn.microsoft.com/en-us/rest/api/fabric/apacheairflowjob/items/update-apache-airflow-job?tabs=HTTP
- Update Apache Airflow Job Definition: https://learn.microsoft.com/en-us/rest/api/fabric/apacheairflowjob/items/update-apache-airflow-job-definition?tabs=HTTP
- Estimated complexity/effort: easy
- Related resources/data-sources:
- Get Apache Ariflow Job: https://learn.microsoft.com/en-us/rest/api/fabric/apacheairflowjob/items/get-apache-airflow-job?tabs=HTTP
- Get Apache Airflow Job Definition: https://learn.microsoft.com/en-us/rest/api/fabric/apacheairflowjob/items/get-apache-airflow-job-definition?tabs=HTTP
- List Apache Airflow Jobs: https://learn.microsoft.com/en-us/rest/api/fabric/apacheairflowjob/items/list-apache-airflow-jobs?tabs=HTTP
🚧 Potential Terraform Configuration / Desired Solution
Apache Airflow Job with definition
resource "fabric_apache_airflow_job" "example_definition" {
display_name = "example"
description = "example with definition bootstrapping"
workspace_id = "00000000-0000-0000-0000-000000000000"
definition_update_enabled = false
definition = {
"apacheairflowjob-content.json" = {
source = "${local.path}/apacheairflowjob-content.json.tmpl"
tokens = {}
}
}
}
📎 Additional context
No response
☑️ Acceptance Criteria
No response
✅ Definition of Done
- Data Transfer Objects (DTOs)
- Resource Implementation
- Resource Added to Provider
- Unit Tests for Happy path
- Unit Tests for Error path
- Acceptance Tests
- Example in the ./examples folder
- Schema documentation in code
- Updated auto-generated provider docs with
task docs
🔰 Code of Conduct
- I agree to follow this project's Code of Conduct.