-
Notifications
You must be signed in to change notification settings - Fork 7
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 #26 from fugue/feature/RM-5320/add_google_environm…
…ent_to_the_fugue_terraform_provider [RM-5320] add google environment to the fugue terraform provider
- Loading branch information
Showing
40 changed files
with
2,000 additions
and
34 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 |
---|---|---|
|
@@ -21,3 +21,4 @@ terraform.tfstate.backup | |
.terraform.lock.hcl | ||
.terraform | ||
crash.log | ||
out.plan |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "fugue_azure_environment Resource - terraform-provider-fugue" | ||
subcategory: "" | ||
description: |- | ||
fugue_azure_environment manages an Environment in Fugue corresponding to one Azure subscription. | ||
--- | ||
|
||
# fugue_azure_environment (Resource) | ||
|
||
`fugue_azure_environment` manages an Environment in Fugue corresponding to one Azure subscription. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
variable "tenant_id" { | ||
description = "Azure tenant ID" | ||
type = string | ||
} | ||
variable "subscription_id" { | ||
description = "Azure subscription ID" | ||
type = string | ||
} | ||
variable "application_id" { | ||
description = "Azure application ID" | ||
type = string | ||
} | ||
variable "client_secret" { | ||
description = "Azure client secret" | ||
type = string | ||
sensitive = true | ||
} | ||
resource "fugue_azure_environment" "example" { | ||
name = "example" | ||
tenant_id = var.tenant_id | ||
subscription_id = var.subscription_id | ||
application_id = var.application_id | ||
client_secret = var.client_secret | ||
compliance_families = ["CISAZURE"] | ||
survey_resource_groups = ["*"] | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- **application_id** (String) The Azure Active Directory application ID used for Fugue. | ||
- **client_secret** (String, Sensitive) The Azure secret generated for the Active Directory application. | ||
- **name** (String) The name for the environment. | ||
- **subscription_id** (String) The Azure subscription ID. | ||
- **survey_resource_groups** (Set of String) Survey resource groups. | ||
- **tenant_id** (String) The Azure Tenant ID. | ||
|
||
### Optional | ||
|
||
- **compliance_families** (Set of String) The set of compliance families to enable in this environment. | ||
- **scan_interval** (Number) Controls the time in seconds between scheduled scans of this environment. | ||
- **scan_schedule_enabled** (Boolean) Controls whether this environment is scanned on a schedule. | ||
|
||
### Read-Only | ||
|
||
- **id** (String) The unique ID for this environment as generated by Fugue. | ||
- **scan_status** (String) Indicates whether a scan on this environment is currently running. | ||
|
||
|
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 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "fugue_google_environment Resource - terraform-provider-fugue" | ||
subcategory: "" | ||
description: |- | ||
fugue_google_environment manages an Environment in Fugue corresponding to one Google project. | ||
--- | ||
|
||
# fugue_google_environment (Resource) | ||
|
||
`fugue_google_environment` manages an Environment in Fugue corresponding to one Google project. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
variable "service_account_email" { | ||
type = string | ||
} | ||
variable "project_id" { | ||
type = string | ||
} | ||
resource "fugue_google_environment" "example" { | ||
name = "example" | ||
service_account_email = var.service_account_email | ||
project_id = var.project_id | ||
compliance_families = ["CIS-Google_v1.1.0"] | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- **name** (String) The name for the environment. | ||
- **service_account_email** (String) The Google service account email used to provide Fugue secure access to the Google project. | ||
|
||
### Optional | ||
|
||
- **compliance_families** (Set of String) The set of compliance families to enable in this environment, e.g. ["CIS-Google_v1.1.0"]. | ||
- **project_id** (String) The Google project ID. If not specified, it defaults to the project containing the provided service account email. | ||
- **scan_interval** (Number) Controls the time in seconds between scheduled scans of this environment. | ||
- **scan_schedule_enabled** (Boolean) Controls whether this environment is scanned on a schedule. | ||
|
||
### Read-Only | ||
|
||
- **id** (String) The unique ID for this environment as generated by Fugue. | ||
- **scan_status** (String) Indicates whether a scan on this environment is currently running. | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
terraform { | ||
required_providers { | ||
fugue = { | ||
version = "0.0.4" | ||
version = "0.0.5" | ||
source = "fugue/fugue" | ||
} | ||
} | ||
|
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,31 @@ | ||
|
||
variable "tenant_id" { | ||
description = "Azure tenant ID" | ||
type = string | ||
} | ||
|
||
variable "subscription_id" { | ||
description = "Azure subscription ID" | ||
type = string | ||
} | ||
|
||
variable "application_id" { | ||
description = "Azure application ID" | ||
type = string | ||
} | ||
|
||
variable "client_secret" { | ||
description = "Azure client secret" | ||
type = string | ||
sensitive = true | ||
} | ||
|
||
resource "fugue_azure_environment" "example" { | ||
name = "example" | ||
tenant_id = var.tenant_id | ||
subscription_id = var.subscription_id | ||
application_id = var.application_id | ||
client_secret = var.client_secret | ||
compliance_families = ["CISAZURE"] | ||
survey_resource_groups = ["*"] | ||
} |
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,15 @@ | ||
|
||
variable "service_account_email" { | ||
type = string | ||
} | ||
|
||
variable "project_id" { | ||
type = string | ||
} | ||
|
||
resource "fugue_google_environment" "example" { | ||
name = "example" | ||
service_account_email = var.service_account_email | ||
project_id = var.project_id | ||
compliance_families = ["CIS-Google_v1.1.0"] | ||
} |
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.