Skip to content

Commit d118d84

Browse files
authored
Merge pull request #41 from penta515/refactor-for-workflow-parameter
2 parents f87d585 + 68a16f4 commit d118d84

File tree

20 files changed

+2876
-2511
lines changed

20 files changed

+2876
-2511
lines changed

docs/data-sources/aws_account.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,14 @@
33
page_title: "cloudautomator_aws_account Data Source - terraform-provider-cloudautomator"
44
subcategory: ""
55
description: |-
6-
6+
77
---
88

99
# cloudautomator_aws_account (Data Source)
1010

11-
## Example Usage
1211

13-
```hcl
14-
data "cloudautomator_aws_account" "example-aws-account" {
15-
group_id = 123
16-
id = 456
17-
}
18-
```
12+
13+
1914

2015
<!-- schema generated by tfplugindocs -->
2116
## Schema
@@ -28,3 +23,5 @@ data "cloudautomator_aws_account" "example-aws-account" {
2823
### Read-Only
2924

3025
- `name` (String) AWS account name
26+
27+

docs/data-sources/job.md

Lines changed: 647 additions & 461 deletions
Large diffs are not rendered by default.

docs/data-sources/post_process.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,14 @@
33
page_title: "cloudautomator_post_process Data Source - terraform-provider-cloudautomator"
44
subcategory: ""
55
description: |-
6-
6+
77
---
88

99
# cloudautomator_post_process (Data Source)
1010

11-
## Example Usage
1211

13-
```hcl
14-
data "cloudautomator_post_process" "example-post-process" {
15-
id = 123
16-
}
17-
```
12+
13+
1814

1915
<!-- schema generated by tfplugindocs -->
2016
## Schema
@@ -69,3 +65,5 @@ Read-Only:
6965

7066
- `webhook_authorization_header` (String)
7167
- `webhook_url` (String)
68+
69+

docs/index.md

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,39 +3,25 @@
33
page_title: "cloudautomator Provider"
44
subcategory: ""
55
description: |-
6-
6+
77
---
88

99
# cloudautomator Provider
1010

11-
## Authentication and Configuration
12-
Configuration for the Cloud Automator Provider can be derived from several sources, which are applied in the following order:
1311

14-
1. Parameters in the provider configuration
15-
1. Environment variables
1612

17-
### Provider Configuration
13+
## Example Usage
1814

19-
```hcl
15+
```terraform
2016
provider "cloudautomator" {
2117
api_key = "abcdefghijklmnopqrstuvwxyz"
2218
}
2319
```
2420

25-
### Environment Variables
26-
27-
```hcl
28-
provider "cloudautomator" {}
29-
```
30-
31-
```shell
32-
$ export CLOUD_AUTOMATOR_API_KEY="abcdefghijklmnopqrstuvwxyz"
33-
$ terraform plan
34-
```
35-
3621
<!-- schema generated by tfplugindocs -->
3722
## Schema
3823

3924
### Optional
4025

26+
- `api_endpoint` (String) Cloud Automator API Endpoint. This can also be set via the CLOUD_AUTOMATOR_API_ENDPOINT environment variable.
4127
- `api_key` (String) Cloud Automator API key. This can also be set via the CLOUD_AUTOMATOR_API_KEY environment variable.

docs/resources/job.md

Lines changed: 95 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -10,46 +10,14 @@ description: |-
1010

1111
Manage Cloud Automator job resources
1212

13-
## Example Usage
14-
15-
```hcl
16-
resource "cloudautomator_job" "example-job" {
17-
name = "example-job"
18-
19-
group_id = 10
20-
aws_account_id = 20
21-
22-
rule_type = "cron"
23-
cron_rule_value {
24-
hour = "9"
25-
minutes = "30"
26-
schedule_type = "weekly"
27-
weekly_schedule = [
28-
"monday",
29-
"sunday"
30-
]
31-
time_zone = "Tokyo"
32-
dates_to_skip = ["2022-12-31"]
33-
national_holiday_schedule = "true"
34-
}
35-
36-
action_type = "delay"
37-
delay_action_value {
38-
delay_minutes = 1
39-
}
40-
41-
completed_post_process_id = [100]
42-
failed_post_process_id = [200]
43-
}
44-
```
13+
4514

4615
<!-- schema generated by tfplugindocs -->
4716
## Schema
4817

4918
### Required
5019

5120
- `action_type` (String) Action type
52-
- `aws_account_id` (Number) AWS account ID
5321
- `group_id` (Number) Group ID
5422
- `name` (String) Job Name
5523
- `rule_type` (String) Trigger type
@@ -58,14 +26,17 @@ resource "cloudautomator_job" "example-job" {
5826

5927
- `allow_runtime_action_values` (Boolean) Whether the value of the action setting is specified at runtime or not
6028
- `authorize_security_group_ingress_action_value` (Block List, Max: 1) "EC2: Authorize security group ingress" action value (see [below for nested schema](#nestedblock--authorize_security_group_ingress_action_value))
29+
- `aws_account_id` (Number) AWS account ID
6130
- `change_instance_type_action_value` (Block List, Max: 1) "EC2: Change instance type" action value (see [below for nested schema](#nestedblock--change_instance_type_action_value))
6231
- `change_rds_cluster_instance_class_action_value` (Block List, Max: 1) "RDS(Aurora): Change DB instance class" action value (see [below for nested schema](#nestedblock--change_rds_cluster_instance_class_action_value))
6332
- `change_rds_instance_class_action_value` (Block List, Max: 1) "RDS: Change DB instance class" action value (see [below for nested schema](#nestedblock--change_rds_instance_class_action_value))
6433
- `completed_post_process_id` (List of Number) Array containing post-process IDs to be executed if the job is successful
6534
- `copy_ebs_snapshot_action_value` (Block List, Max: 1) "EC2: Copy EBS snapshot" action value (see [below for nested schema](#nestedblock--copy_ebs_snapshot_action_value))
6635
- `copy_image_action_value` (Block List, Max: 1) "EC2: Copy AMI" action value (see [below for nested schema](#nestedblock--copy_image_action_value))
36+
- `copy_rds_cluster_snapshot_action_value` (Block List, Max: 1) "RDS(Aurora): Copy DB cluster snapshot" action value (see [below for nested schema](#nestedblock--copy_rds_cluster_snapshot_action_value))
6737
- `copy_rds_snapshot_action_value` (Block List, Max: 1) "RDS: Copy DB snapshot" action value (see [below for nested schema](#nestedblock--copy_rds_snapshot_action_value))
6838
- `create_ebs_snapshot_action_value` (Block List, Max: 1) "EC2: Create EBS snapshot" action value (see [below for nested schema](#nestedblock--create_ebs_snapshot_action_value))
39+
- `create_fsx_backup_action_value` (Block List, Max: 1) "FSx: Create a backup" action value (see [below for nested schema](#nestedblock--create_fsx_backup_action_value))
6940
- `create_image_action_value` (Block List, Max: 1) "EC2: Create AMI" action value (see [below for nested schema](#nestedblock--create_image_action_value))
7041
- `create_rds_cluster_snapshot_action_value` (Block List, Max: 1) "RDS(Aurora): Create DB cluster snapshot" action value (see [below for nested schema](#nestedblock--create_rds_cluster_snapshot_action_value))
7142
- `create_rds_snapshot_action_value` (Block List, Max: 1) "RDS: Create DB snapshot" action value (see [below for nested schema](#nestedblock--create_rds_snapshot_action_value))
@@ -77,11 +48,17 @@ resource "cloudautomator_job" "example-job" {
7748
- `delete_rds_instance_action_value` (Block List, Max: 1) "RDS: Delete DB instance" action value (see [below for nested schema](#nestedblock--delete_rds_instance_action_value))
7849
- `deregister_instances_action_value` (Block List, Max: 1) "ELB(CLB): De-register EC2 instance" action value (see [below for nested schema](#nestedblock--deregister_instances_action_value))
7950
- `deregister_target_instances_action_value` (Block List, Max: 1) "ELB(ALB/NLB): Deregister EC2 instances from target group" action value (see [below for nested schema](#nestedblock--deregister_target_instances_action_value))
51+
- `describe_metadata_action_value` (Block List, Max: 1) "DR: Update EC2 instance metadata" action value (see [below for nested schema](#nestedblock--describe_metadata_action_value))
52+
- `disaster_recovery_action_value` (Block List, Max: 1) "DR: Launch EC2 instance" action value (see [below for nested schema](#nestedblock--disaster_recovery_action_value))
8053
- `effective_date` (String) Effective date
8154
- `expiration_date` (String) Expiration date
8255
- `failed_post_process_id` (List of Number) Array containing post-process IDs to be executed if the job fails
56+
- `for_workflow` (Boolean) for workflow
57+
- `google_cloud_account_id` (Number) Google Cloud account ID
58+
- `google_compute_insert_machine_image_action_value` (Block List, Max: 1) "Compute Engine: create machine image" action value (see [below for nested schema](#nestedblock--google_compute_insert_machine_image_action_value))
8359
- `reboot_rds_instances_action_value` (Block List, Max: 1) "RDS: Reboot DB instance" action value (see [below for nested schema](#nestedblock--reboot_rds_instances_action_value))
8460
- `reboot_workspaces_action_value` (Block List, Max: 1) "WorkSpaces: Reboot WorkSpace" action value (see [below for nested schema](#nestedblock--reboot_workspaces_action_value))
61+
- `rebuild_workspaces_action_value` (Block List, Max: 1) "WorkSpaces: Rebuild WorkSpace" action value (see [below for nested schema](#nestedblock--rebuild_workspaces_action_value))
8562
- `register_instances_action_value` (Block List, Max: 1) "ELB(CLB): Register EC2 instance" action value (see [below for nested schema](#nestedblock--register_instances_action_value))
8663
- `register_target_instances_action_value` (Block List, Max: 1) "ELB(ALB/NLB): Register EC2 instances to target group" action value (see [below for nested schema](#nestedblock--register_target_instances_action_value))
8764
- `restore_from_cluster_snapshot_action_value` (Block List, Max: 1) "Redshift: Restore from snapshot" action value (see [below for nested schema](#nestedblock--restore_from_cluster_snapshot_action_value))
@@ -207,6 +184,22 @@ Optional:
207184
- `tag_value` (String) Tag value used to identify the target resource
208185

209186

187+
<a id="nestedblock--copy_rds_cluster_snapshot_action_value"></a>
188+
### Nested Schema for `copy_rds_cluster_snapshot_action_value`
189+
190+
Required:
191+
192+
- `destination_region` (String) AWS Region to copy to
193+
- `source_region` (String) AWS Region from which the copy was made
194+
- `specify_rds_cluster_snapshot` (String) How to identify target resources
195+
196+
Optional:
197+
198+
- `kms_key_id` (String) KMS key ID
199+
- `rds_cluster_snapshot_id` (String) Target DB Cluster snapshot ID
200+
- `source_rds_cluster_id` (String) Target DB Cluster ID
201+
202+
210203
<a id="nestedblock--copy_rds_snapshot_action_value"></a>
211204
### Nested Schema for `copy_rds_snapshot_action_value`
212205

@@ -244,6 +237,23 @@ Optional:
244237
- `volume_id` (String) 対象のEBSボリュームID
245238

246239

240+
<a id="nestedblock--create_fsx_backup_action_value"></a>
241+
### Nested Schema for `create_fsx_backup_action_value`
242+
243+
Required:
244+
245+
- `generation` (Number) Number of EBS volumes to manage generation
246+
- `region` (String) AWS Region in which the target resource resides
247+
- `specify_file_system` (String) How to identify target resources
248+
249+
Optional:
250+
251+
- `backup_name` (String) Backup name
252+
- `file_system_id` (String) Target Filesystem snapshot ID
253+
- `tag_key` (String) Tag key used to identify the target resource
254+
- `tag_value` (String) Tag value used to identify the target resource
255+
256+
247257
<a id="nestedblock--create_image_action_value"></a>
248258
### Nested Schema for `create_image_action_value`
249259

@@ -450,6 +460,43 @@ Required:
450460
- `target_group_arn` (String) ARN of the target group
451461

452462

463+
<a id="nestedblock--describe_metadata_action_value"></a>
464+
### Nested Schema for `describe_metadata_action_value`
465+
466+
Optional:
467+
468+
- `dr_configuration_id` (Number) DR Configuration ID
469+
470+
471+
<a id="nestedblock--disaster_recovery_action_value"></a>
472+
### Nested Schema for `disaster_recovery_action_value`
473+
474+
Optional:
475+
476+
- `describe_metadata_job_id` (Number) Describe Metadata Job ID
477+
- `trace_status` (String) Whether to Verify completion status of the resource
478+
479+
480+
<a id="nestedblock--google_compute_insert_machine_image_action_value"></a>
481+
### Nested Schema for `google_compute_insert_machine_image_action_value`
482+
483+
Required:
484+
485+
- `generation` (String) Tag value used to identify the target resource
486+
- `machine_image_basename` (String) Name of the machine image to created
487+
- `machine_image_storage_location` (String) Machine image storage location
488+
- `project_id` (String) Project ID to which the target VM instance belongs
489+
- `region` (String) GCP Region in which the target resource resides
490+
- `specify_vm_instance` (String) How to identify target resources
491+
492+
Optional:
493+
494+
- `machine_image_description` (String) Description to set for machine image to created
495+
- `vm_instance_id` (String) VM Instance ID
496+
- `vm_instance_label_key` (String) label key used to identify the target resource
497+
- `vm_instance_label_value` (String) label value used to identify the target resource
498+
499+
453500
<a id="nestedblock--reboot_rds_instances_action_value"></a>
454501
### Nested Schema for `reboot_rds_instances_action_value`
455502

@@ -475,6 +522,16 @@ Required:
475522
- `tag_value` (String) Tag value used to identify the target resource
476523

477524

525+
<a id="nestedblock--rebuild_workspaces_action_value"></a>
526+
### Nested Schema for `rebuild_workspaces_action_value`
527+
528+
Required:
529+
530+
- `region` (String) AWS Region in which the target resource resides
531+
- `tag_key` (String) Tag key used to identify the target resource
532+
- `tag_value` (String) Tag value used to identify the target resource
533+
534+
478535
<a id="nestedblock--register_instances_action_value"></a>
479536
### Nested Schema for `register_instances_action_value`
480537

@@ -627,13 +684,13 @@ Required:
627684
Optional:
628685

629686
- `comment` (String) Comments to be set for the command
630-
- `execution_timeout_seconds` (Number) Timeout period for command execution (seconds)
687+
- `execution_timeout_seconds` (String) Timeout period for command execution (seconds)
631688
- `instance_id` (String) Target EC2 instance ID
632689
- `output_s3_bucket_name` (String) Name of the S3 bucket in which to store the execution results
633690
- `output_s3_key_prefix` (String) S3 prefix to store execution results
634691
- `tag_key` (String) Tag key used to identify the target resource
635692
- `tag_value` (String) Tag value used to identify the target resource
636-
- `timeout_seconds` (Number) Instance connection timeout time (seconds)
693+
- `timeout_seconds` (String) Instance connection timeout time (seconds)
637694
- `trace_status` (String) Whether to Verify completion status of the resource
638695

639696

@@ -802,7 +859,7 @@ Optional:
802859
- `output_s3_key_prefix` (String) S3 prefix to store execution results
803860
- `tag_key` (String) Tag key used to identify the target resource
804861
- `tag_value` (String) Tag value used to identify the target resource
805-
- `timeout_seconds` (Number) Timeout time (sec)
862+
- `timeout_seconds` (String) Timeout time (sec)
806863

807864

808865
<a id="nestedblock--windows_update_v2_action_value"></a>
@@ -824,3 +881,5 @@ Optional:
824881
- `tag_key` (String) Tag key used to identify the target resource
825882
- `tag_value` (String) Tag value used to identify the target resource
826883
- `trace_status` (String) Whether to Verify completion status of the resource
884+
885+

docs/resources/post_process.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,7 @@ description: |-
1010

1111
Manage Cloud Automator post-process resources
1212

13-
## Example Usage
1413

15-
```hcl
16-
resource "cloudautomator_post_process" "email" {
17-
name = "email"
18-
group_id = 10
19-
service = "email"
20-
21-
email_parameters {
22-
email_recipient = "test@example.com"
23-
}
24-
}
25-
```
2614

2715
<!-- schema generated by tfplugindocs -->
2816
## Schema
@@ -80,3 +68,5 @@ Required:
8068

8169
- `webhook_authorization_header` (String) Authorization header value
8270
- `webhook_url` (String) URL of the Webhook destination
71+
72+

0 commit comments

Comments
 (0)