Skip to content

Commit 1867c62

Browse files
authored
Merge pull request #34 from CloudAutomator/feature/job-workflow
ジョブワークフローに対応した
2 parents dfaa61a + 67e82e3 commit 1867c62

File tree

16 files changed

+1209
-12
lines changed

16 files changed

+1209
-12
lines changed

docs/data-sources/aws_account.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,3 @@ description: |-
2323
### Read-Only
2424

2525
- `name` (String) AWS account name
26-
27-

docs/data-sources/job.md

Lines changed: 88 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ description: |-
2222
### Optional
2323

2424
- `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))
25+
- `bulk_stop_instances_action_value` (Block List, Max: 1) "EC2: Stop ALL instances" action value (see [below for nested schema](#nestedblock--bulk_stop_instances_action_value))
2526
- `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))
2627
- `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))
2728
- `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))
@@ -53,11 +54,14 @@ description: |-
5354
- `restore_rds_cluster_action_value` (Block List, Max: 1) "RDS(Aurora): Restore DB cluster from DB cluster snapshot" action value (see [below for nested schema](#nestedblock--restore_rds_cluster_action_value))
5455
- `restore_rds_instance_action_value` (Block List, Max: 1) "RDS: Restore from DB snapshot" action value (see [below for nested schema](#nestedblock--restore_rds_instance_action_value))
5556
- `revoke_security_group_ingress_action_value` (Block List, Max: 1) "EC2: Revoke security group ingress" action value (see [below for nested schema](#nestedblock--revoke_security_group_ingress_action_value))
57+
- `run_ecs_tasks_fargate_action_value` (Block List, Max: 1) "ECS: Run task (Fargate)" action value (see [below for nested schema](#nestedblock--run_ecs_tasks_fargate_action_value))
58+
- `s3_start_backup_job_action_value` (Block List, Max: 1) "S3: Backup" action value (see [below for nested schema](#nestedblock--s3_start_backup_job_action_value))
5659
- `send_command_action_value` (Block List, Max: 1) "EC2: Send command on instance" action value (see [below for nested schema](#nestedblock--send_command_action_value))
5760
- `start_instances_action_value` (Block List, Max: 1) "EC2: Start instance" action value (see [below for nested schema](#nestedblock--start_instances_action_value))
5861
- `start_rds_clusters_action_value` (Block List, Max: 1) "RDS(Aurora): Start DB cluster" action value (see [below for nested schema](#nestedblock--start_rds_clusters_action_value))
5962
- `start_rds_instances_action_value` (Block List, Max: 1) "RDS: Start DB instance" action value (see [below for nested schema](#nestedblock--start_rds_instances_action_value))
6063
- `start_workspaces_action_value` (Block List, Max: 1) "WorkSpaces: Start WorkSpace" action value (see [below for nested schema](#nestedblock--start_workspaces_action_value))
64+
- `stop_ecs_tasks_action_value` (Block List, Max: 1) "ECS: Stop task" action value (see [below for nested schema](#nestedblock--stop_ecs_tasks_action_value))
6165
- `stop_instances_action_value` (Block List, Max: 1) "EC2: Stop instance" action value (see [below for nested schema](#nestedblock--stop_instances_action_value))
6266
- `stop_rds_clusters_action_value` (Block List, Max: 1) "RDS(Aurora): Stop DB cluster" action value (see [below for nested schema](#nestedblock--stop_rds_clusters_action_value))
6367
- `stop_rds_instances_action_value` (Block List, Max: 1) "RDS: Stop DB instance" action value (see [below for nested schema](#nestedblock--stop_rds_instances_action_value))
@@ -71,6 +75,7 @@ description: |-
7175
- `action_type` (String) Action type
7276
- `allow_runtime_action_values` (Boolean) Whether the value of the action setting is specified at runtime or not
7377
- `aws_account_id` (Number) AWS account ID
78+
- `aws_account_ids` (List of Number) AWS account IDs
7479
- `completed_post_process_id` (List of Number) Array containing post-process IDs to be executed if the job is successful
7580
- `cron_rule_value` (List of Object) Timer trigger value (see [below for nested schema](#nestedatt--cron_rule_value))
7681
- `effective_date` (String) Effective date
@@ -100,6 +105,19 @@ Optional:
100105
- `tag_value` (String) Tag value used to identify the target resource
101106

102107

108+
<a id="nestedblock--bulk_stop_instances_action_value"></a>
109+
### Nested Schema for `bulk_stop_instances_action_value`
110+
111+
Required:
112+
113+
- `exclude_by_tag` (Boolean) Whether to exclude instances with the specified tag from the target
114+
115+
Optional:
116+
117+
- `exclude_by_tag_key` (String) Tag key used to exclude instances from the target
118+
- `exclude_by_tag_value` (String) Tag value used to exclude instances from the target
119+
120+
103121
<a id="nestedblock--change_instance_type_action_value"></a>
104122
### Nested Schema for `change_instance_type_action_value`
105123

@@ -228,12 +246,22 @@ Optional:
228246

229247
- `additional_tag_key` (String) Tag key to assign to the created EBS volume
230248
- `additional_tag_value` (String) Tag key to assign to the created EBS volume Tag value to assign to the created EBS volume
249+
- `additional_tags` (Block Set) Array of tags to assign to the created EBS volume (see [below for nested schema](#nestedblock--create_ebs_snapshot_action_value--additional_tags))
231250
- `description` (String) Description to be set for EBS volume
232251
- `tag_key` (String) Tag key used to identify the target resource
233252
- `tag_value` (String) Tag value used to identify the target resource
234253
- `trace_status` (String) Whether to Verify completion status of the resource
235254
- `volume_id` (String) 対象のEBSボリュームID
236255

256+
<a id="nestedblock--create_ebs_snapshot_action_value--additional_tags"></a>
257+
### Nested Schema for `create_ebs_snapshot_action_value.additional_tags`
258+
259+
Required:
260+
261+
- `key` (String)
262+
- `value` (String)
263+
264+
237265

238266
<a id="nestedblock--create_fsx_backup_action_value"></a>
239267
### Nested Schema for `create_fsx_backup_action_value`
@@ -448,7 +476,7 @@ Optional:
448476

449477
Required:
450478

451-
- `generation` (String) Tag value used to identify the target resource
479+
- `generation` (Number) Number of machine image generations
452480
- `machine_image_basename` (String) Name of the machine image to created
453481
- `machine_image_storage_location` (String) Machine image storage location
454482
- `project_id` (String) Project ID to which the target VM instance belongs
@@ -624,6 +652,49 @@ Optional:
624652
- `tag_value` (String) Tag value used to identify the target resource
625653

626654

655+
<a id="nestedblock--run_ecs_tasks_fargate_action_value"></a>
656+
### Nested Schema for `run_ecs_tasks_fargate_action_value`
657+
658+
Required:
659+
660+
- `ecs_awsvpc_assign_public_ip` (String) ECS awsvpc assign public ip
661+
- `ecs_awsvpc_security_groups` (List of String) ECS awsvpc security groups
662+
- `ecs_awsvpc_subnets` (List of String) ECS awsvpc subnets
663+
- `ecs_awsvpc_vpc` (String) ECS awsvpc vpc
664+
- `ecs_cluster` (String) ECS cluster name
665+
- `ecs_task_count` (Number) Number of ECS tasks to run
666+
- `ecs_task_definition_family` (String) ECS task definition family
667+
- `enable_ecs_managed_tags` (Boolean) Enable ECS managed tags
668+
- `platform_version` (String) Platform version
669+
- `propagate_tags` (String) Propagate tags
670+
- `region` (String) AWS Region in which the target resource resides
671+
672+
673+
<a id="nestedblock--s3_start_backup_job_action_value"></a>
674+
### Nested Schema for `s3_start_backup_job_action_value`
675+
676+
Required:
677+
678+
- `backup_vault_name` (String) Name of the backup vault to store the backup
679+
- `bucket_name` (String) Name of the S3 bucket to store the backup
680+
- `iam_role_arn` (String) ARN of the IAM role to use for the backup
681+
- `region` (String) AWS Region in which the target resource resides
682+
683+
Optional:
684+
685+
- `additional_tags` (Block Set) Additional tags to be added to the backup (see [below for nested schema](#nestedblock--s3_start_backup_job_action_value--additional_tags))
686+
- `lifecycle_delete_after_days` (Number) Number of days to keep the backup
687+
688+
<a id="nestedblock--s3_start_backup_job_action_value--additional_tags"></a>
689+
### Nested Schema for `s3_start_backup_job_action_value.additional_tags`
690+
691+
Required:
692+
693+
- `key` (String)
694+
- `value` (String)
695+
696+
697+
627698
<a id="nestedblock--send_command_action_value"></a>
628699
### Nested Schema for `send_command_action_value`
629700

@@ -709,6 +780,22 @@ Optional:
709780
- `tag_value` (String) Tag value used to identify the target resource
710781

711782

783+
<a id="nestedblock--stop_ecs_tasks_action_value"></a>
784+
### Nested Schema for `stop_ecs_tasks_action_value`
785+
786+
Required:
787+
788+
- `ecs_cluster` (String) Target ECS cluster name
789+
- `region` (String) AWS Region in which the target resource resides
790+
- `specify_ecs_task` (String) How to identify target resources
791+
792+
Optional:
793+
794+
- `ecs_task_definition_family` (String) ECS task definition family name
795+
- `tag_key` (String) Tag key used to identify the target resource
796+
- `tag_value` (String) Tag value used to identify the target resource
797+
798+
712799
<a id="nestedblock--stop_instances_action_value"></a>
713800
### Nested Schema for `stop_instances_action_value`
714801

@@ -875,5 +962,3 @@ Read-Only:
875962
- `queue` (String)
876963
- `sqs_aws_account_id` (Number)
877964
- `sqs_region` (String)
878-
879-

docs/data-sources/job_workflow.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "cloudautomator_job_workflow Data Source - terraform-provider-cloudautomator"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# cloudautomator_job_workflow (Data Source)
10+
11+
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- `id` (String) Job Workflow ID
21+
22+
### Read-Only
23+
24+
- `active` (Boolean) Job Workflow state
25+
- `first_job_id` (Number) First Job ID
26+
- `following_job_ids` (List of Number) Following Job IDs
27+
- `group_id` (Number) Group ID
28+
- `name` (String) Name

docs/data-sources/post_process.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,3 @@ Read-Only:
6565

6666
- `webhook_authorization_header` (String)
6767
- `webhook_url` (String)
68-
69-

0 commit comments

Comments
 (0)