diff --git a/docs/resources/integration_aws_parameter_store.md b/docs/resources/integration_aws_parameter_store.md index 41d31ad..7f8e1de 100644 --- a/docs/resources/integration_aws_parameter_store.md +++ b/docs/resources/integration_aws_parameter_store.md @@ -77,6 +77,8 @@ resource "doppler_secrets_sync_aws_parameter_store" "backend_prod" { path = "/backend/" secure_string = true tags = { myTag = "enabled" } + + delete_behavior = "leave_in_target" } ``` diff --git a/docs/resources/integration_aws_secrets_manager.md b/docs/resources/integration_aws_secrets_manager.md index ddb715d..603be4b 100644 --- a/docs/resources/integration_aws_secrets_manager.md +++ b/docs/resources/integration_aws_secrets_manager.md @@ -72,6 +72,8 @@ resource "doppler_secrets_sync_aws_secrets_manager" "backend_prod" { region = "us-east-1" path = "/backend/" tags = { myTag = "enabled" } + + delete_behavior = "leave_in_target" } ``` diff --git a/docs/resources/integration_flyio.md b/docs/resources/integration_flyio.md new file mode 100644 index 0000000..3da9715 --- /dev/null +++ b/docs/resources/integration_flyio.md @@ -0,0 +1,42 @@ +--- +page_title: "doppler_integration_flyio Resource - terraform-provider-doppler" +subcategory: "" +description: |- + Manage a Fly.io Doppler integration. +--- + +# doppler_integration_flyio (Resource) + +Manage a Fly.io Doppler integration. + +## Example Usage + +```terraform +resource "doppler_integration_flyio" "prod" { + name = "TF Fly.io" + api_key = "fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" +} + +resource "doppler_secrets_sync_flyio" "backend_prod" { + integration = doppler_integration_flyio.prod.id + project = "backend" + config = "prd" + + app_id = "my-app" + restart_machines = true + + delete_behavior = "leave_in_target" +} +``` + + +## Schema + +### Required + +- `api_key` (String, Sensitive) A Fly.io API key. +- `name` (String) The name of the integration + +### Read-Only + +- `id` (String) The ID of this resource. diff --git a/docs/resources/integration_terraform_cloud.md b/docs/resources/integration_terraform_cloud.md index 49038fa..4bc871a 100644 --- a/docs/resources/integration_terraform_cloud.md +++ b/docs/resources/integration_terraform_cloud.md @@ -31,6 +31,8 @@ resource "doppler_secrets_sync_terraform_cloud" "backend_prod" { workspace_id = data.tfe_workspace.prod.id variable_sync_type = "terraform" name_transform = "lowercase" + + delete_behavior = "leave_in_target" } ``` diff --git a/docs/resources/secrets_sync_aws_parameter_store.md b/docs/resources/secrets_sync_aws_parameter_store.md index 988a62d..d95c67b 100644 --- a/docs/resources/secrets_sync_aws_parameter_store.md +++ b/docs/resources/secrets_sync_aws_parameter_store.md @@ -77,6 +77,8 @@ resource "doppler_secrets_sync_aws_parameter_store" "backend_prod" { path = "/backend/" secure_string = true tags = { myTag = "enabled" } + + delete_behavior = "leave_in_target" } ``` @@ -93,6 +95,7 @@ resource "doppler_secrets_sync_aws_parameter_store" "backend_prod" { ### Optional +- `delete_behavior` (String) The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - `secure_string` (Boolean) Whether or not the parameters are stored as a secure string - `tags` (Map of String) AWS tags to attach to the parameters diff --git a/docs/resources/secrets_sync_aws_secrets_manager.md b/docs/resources/secrets_sync_aws_secrets_manager.md index 8afd657..893d4be 100644 --- a/docs/resources/secrets_sync_aws_secrets_manager.md +++ b/docs/resources/secrets_sync_aws_secrets_manager.md @@ -72,6 +72,8 @@ resource "doppler_secrets_sync_aws_secrets_manager" "backend_prod" { region = "us-east-1" path = "/backend/" tags = { myTag = "enabled" } + + delete_behavior = "leave_in_target" } ``` @@ -88,6 +90,7 @@ resource "doppler_secrets_sync_aws_secrets_manager" "backend_prod" { ### Optional +- `delete_behavior` (String) The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - `tags` (Map of String) AWS tags to attach to the secrets ### Read-Only diff --git a/docs/resources/secrets_sync_flyio.md b/docs/resources/secrets_sync_flyio.md new file mode 100644 index 0000000..aff5380 --- /dev/null +++ b/docs/resources/secrets_sync_flyio.md @@ -0,0 +1,49 @@ +--- +page_title: "doppler_secrets_sync_flyio Resource - terraform-provider-doppler" +subcategory: "" +description: |- + Manage a Fly.io Doppler sync. +--- + +# doppler_secrets_sync_flyio (Resource) + +Manage a Fly.io Doppler sync. + +## Example Usage + +```terraform +resource "doppler_integration_flyio" "prod" { + name = "TF Fly.io" + api_key = "fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" +} + +resource "doppler_secrets_sync_flyio" "backend_prod" { + integration = doppler_integration_flyio.prod.id + project = "backend" + config = "prd" + + app_id = "my-app" + restart_machines = true + + delete_behavior = "leave_in_target" +} +``` + + +## Schema + +### Required + +- `app_id` (String) The app ID +- `config` (String) The name of the Doppler config +- `integration` (String) The slug of the integration to use for this sync +- `project` (String) The name of the Doppler project +- `restart_machines` (Boolean) Whether or not to restart the Fly.io machines when secrets are updated + +### Optional + +- `delete_behavior` (String) The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + +### Read-Only + +- `id` (String) The ID of this resource. diff --git a/docs/resources/secrets_sync_github_actions.md b/docs/resources/secrets_sync_github_actions.md index 4459e5d..9f4c686 100644 --- a/docs/resources/secrets_sync_github_actions.md +++ b/docs/resources/secrets_sync_github_actions.md @@ -56,6 +56,7 @@ resource "doppler_secrets_sync_github_actions" "backend_prod" { ### Optional +- `delete_behavior` (String) The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - `environment_name` (String) The GitHub repo environment name to sync to (only used when `sync_target` is set to "repo") - `org_scope` (String) Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") - `repo_name` (String) The GitHub repo name to sync to (only used when `sync_target` is set to "repo") diff --git a/docs/resources/secrets_sync_terraform_cloud.md b/docs/resources/secrets_sync_terraform_cloud.md index 3ac568e..87806c7 100644 --- a/docs/resources/secrets_sync_terraform_cloud.md +++ b/docs/resources/secrets_sync_terraform_cloud.md @@ -31,6 +31,8 @@ resource "doppler_secrets_sync_terraform_cloud" "backend_prod" { workspace_id = data.tfe_workspace.prod.id variable_sync_type = "terraform" name_transform = "lowercase" + + delete_behavior = "leave_in_target" } ``` @@ -48,6 +50,7 @@ resource "doppler_secrets_sync_terraform_cloud" "backend_prod" { ### Optional +- `delete_behavior` (String) The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - `variable_set_id` (String) The Terraform Cloud variable set ID to sync to - `workspace_id` (String) The Terraform Cloud workspace ID to sync to diff --git a/examples/resources/integration_aws_parameter_store.tf b/examples/resources/integration_aws_parameter_store.tf index 3c1719d..e29d91f 100644 --- a/examples/resources/integration_aws_parameter_store.tf +++ b/examples/resources/integration_aws_parameter_store.tf @@ -63,5 +63,7 @@ resource "doppler_secrets_sync_aws_parameter_store" "backend_prod" { path = "/backend/" secure_string = true tags = { myTag = "enabled" } + + delete_behavior = "leave_in_target" } diff --git a/examples/resources/integration_aws_secrets_manager.tf b/examples/resources/integration_aws_secrets_manager.tf index f05badf..aa50d32 100644 --- a/examples/resources/integration_aws_secrets_manager.tf +++ b/examples/resources/integration_aws_secrets_manager.tf @@ -58,5 +58,7 @@ resource "doppler_secrets_sync_aws_secrets_manager" "backend_prod" { region = "us-east-1" path = "/backend/" tags = { myTag = "enabled" } + + delete_behavior = "leave_in_target" } diff --git a/examples/resources/integration_flyio.tf b/examples/resources/integration_flyio.tf new file mode 100644 index 0000000..e0a813d --- /dev/null +++ b/examples/resources/integration_flyio.tf @@ -0,0 +1,15 @@ +resource "doppler_integration_flyio" "prod" { + name = "TF Fly.io" + api_key = "fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" +} + +resource "doppler_secrets_sync_flyio" "backend_prod" { + integration = doppler_integration_flyio.prod.id + project = "backend" + config = "prd" + + app_id = "my-app" + restart_machines = true + + delete_behavior = "leave_in_target" +} diff --git a/examples/resources/integration_terraform_cloud.tf b/examples/resources/integration_terraform_cloud.tf index 35fefec..d79d59a 100644 --- a/examples/resources/integration_terraform_cloud.tf +++ b/examples/resources/integration_terraform_cloud.tf @@ -17,4 +17,6 @@ resource "doppler_secrets_sync_terraform_cloud" "backend_prod" { workspace_id = data.tfe_workspace.prod.id variable_sync_type = "terraform" name_transform = "lowercase" + + delete_behavior = "leave_in_target" } diff --git a/templates/resources/integration_flyio.md.tmpl b/templates/resources/integration_flyio.md.tmpl new file mode 100644 index 0000000..d1eac1b --- /dev/null +++ b/templates/resources/integration_flyio.md.tmpl @@ -0,0 +1,16 @@ +--- +page_title: "doppler_integration_flyio Resource - terraform-provider-doppler" +subcategory: "" +description: |- + Manage a Fly.io Doppler integration. +--- + +# doppler_integration_flyio (Resource) + +Manage a Fly.io Doppler integration. + +## Example Usage + +{{tffile "examples/resources/integration_flyio.tf"}} + +{{ .SchemaMarkdown | trimspace }} diff --git a/templates/resources/secrets_sync_flyio.md.tmpl b/templates/resources/secrets_sync_flyio.md.tmpl new file mode 100644 index 0000000..f084dba --- /dev/null +++ b/templates/resources/secrets_sync_flyio.md.tmpl @@ -0,0 +1,16 @@ +--- +page_title: "doppler_secrets_sync_flyio Resource - terraform-provider-doppler" +subcategory: "" +description: |- + Manage a Fly.io Doppler sync. +--- + +# doppler_secrets_sync_flyio (Resource) + +Manage a Fly.io Doppler sync. + +## Example Usage + +{{tffile "examples/resources/integration_flyio.tf"}} + +{{ .SchemaMarkdown | trimspace }}