forked from houqp/terraform-provider-airflow
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from DrFaust92/user-auth
support basic auth properly
- Loading branch information
Showing
11 changed files
with
463 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
Terraform Provider Airflow | ||
========================== | ||
|
||
[![terraformregistry](https://img.shields.io/badge/terraform-registry-blueviolet)](https://registry.terraform.io/providers/houqp/airflow) | ||
![build](https://github.com/houqp/terraform-provider-airflow/workflows/build/badge.svg) | ||
|
||
[![terraformregistry](https://img.shields.io/badge/terraform-registry-blueviolet)](https://registry.terraform.io/providers/drfaust92/airflow) | ||
![build](https://github.com/drfaust92/terraform-provider-airflow/workflows/build/badge.svg) | ||
|
||
Terraform provider for managing Airflow resources. See `examples` folder for | ||
documentations on how to configure and use this provider. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
layout: "airflow" | ||
page_title: "Airflow: airflow_role" | ||
sidebar_current: "docs-airflow-resource-role" | ||
description: |- | ||
Provides an Airflow role | ||
--- | ||
|
||
# airflow_role | ||
|
||
Provides an Airflow role. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "airflow_role" "example" { | ||
name = "example" | ||
action { | ||
action = "can_read" | ||
resource = "Audit Logs" | ||
} | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `name` - (Required) The name of the role | ||
* `action` - (Required) The action struct that defines the role. See [Action](#action). | ||
|
||
### Action | ||
|
||
* `action` - (Required) The name of the permission. | ||
* `resource` - (Required) The name of the resource. | ||
|
||
## Attributes Reference | ||
|
||
This resource exports the following attributes: | ||
|
||
* `id` - The role name. | ||
|
||
## Import | ||
|
||
Content can be imported using the role key. | ||
|
||
```terraform | ||
terraform import airflow_role.default example | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
layout: "airflow" | ||
page_title: "Airflow: airflow_user" | ||
sidebar_current: "docs-airflow-resource-user" | ||
description: |- | ||
Provides an Airflow user | ||
--- | ||
|
||
# airflow_user | ||
|
||
Provides an Airflow user. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "airflow_user" "example" { | ||
email = "example" | ||
first_name = "example" | ||
last_name = "example" | ||
username = "example" | ||
password = "example" | ||
roles = [airflow_role.example.name] | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `email` - (Required) The user's email | ||
* `first_name` - (Required) The user firstname | ||
* `last_name` - (Required) The user lastname | ||
* `username` - (Required) The username | ||
* `password` - (Required) The user password. | ||
* `roles` - (Required) A set of User roles to attach to the User. | ||
|
||
## Attributes Reference | ||
|
||
This resource exports the following attributes: | ||
|
||
* `active` - Whether the user is active. | ||
* `id` - The username. | ||
* `failed_login_count` - The number of times the login failed. | ||
* `login_count` -The login count. | ||
|
||
## Import | ||
|
||
Content can be imported using the user key. | ||
|
||
```terraform | ||
terraform import airflow_user.example example | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.