diff --git a/docs/data-sources/example.md b/docs/data-sources/example.md deleted file mode 100644 index b35d0ce..0000000 --- a/docs/data-sources/example.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "aem_example Data Source - terraform-provider-aem" -subcategory: "" -description: |- - Example data source ---- - -# aem_example (Data Source) - -Example data source - - - - -## Schema - -### Optional - -- `configurable_attribute` (String) Example configurable attribute - -### Read-Only - -- `id` (String) Example identifier diff --git a/docs/resources/example.md b/docs/resources/example.md deleted file mode 100644 index 57d16b1..0000000 --- a/docs/resources/example.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "aem_example Resource - terraform-provider-aem" -subcategory: "" -description: |- - Example resource ---- - -# aem_example (Resource) - -Example resource - - - - -## Schema - -### Optional - -- `configurable_attribute` (String) Example configurable attribute -- `defaulted` (String) Example configurable attribute with default value - -### Read-Only - -- `id` (String) Example identifier diff --git a/docs/resources/instance.md b/docs/resources/instance.md index 7f177da..5881c2d 100644 --- a/docs/resources/instance.md +++ b/docs/resources/instance.md @@ -19,6 +19,12 @@ AEM Instance resource - `client` (Block, Optional) (see [below for nested schema](#nestedblock--client)) - `compose` (Block, Optional) (see [below for nested schema](#nestedblock--compose)) +- `files` (Map of String) Files or directories to be copied into the machine +- `system` (Block, Optional) (see [below for nested schema](#nestedblock--system)) + +### Read-Only + +- `instances` (Attributes List) (see [below for nested schema](#nestedatt--instances)) ### Nested Schema for `client` @@ -28,14 +34,45 @@ Required: - `settings` (Map of String) Settings for the connection type - `type` (String) Type of connection to use to connect to the machine on which AEM instance will be running +Optional: + +- `credentials` (Map of String, Sensitive) Credentials for the connection type + ### Nested Schema for `compose` Optional: -- `config_file` (String) Local path to the AEM configuration file -- `data_dir` (String) Remote path in which AEM Compose data will be stored -- `instance_id` (String) ID of the AEM instance to use (one of the instances defined in the configuration file) -- `lib_dir` (String) Local path to directory from which AEM library files will be copied to the remote AEM machine -- `version` (String) Version of AEM Compose tool to use on remote AEM machine +- `config` (String) Contents of the AEM Compose YML configuration file. +- `create_script` (String) Creates the instance or restores from backup. Forces instance recreation if changed. +- `delete_script` (String) Deletes the instance. +- `download` (Boolean) Toggle automatic AEM Compose CLI wrapper download. If set to false, assume the wrapper is present in the data directory. +- `launch_script` (String) Configures launched instance. Must be idempotent as it is executed always when changed. Typically used for setting up replication agents, installing service packs, etc. +- `version` (String) Version of AEM Compose tool to use on remote AEM machine. + + + +### Nested Schema for `system` + +Optional: + +- `bootstrap_script` (String) Script executed once after connecting to the instance. Typically used for: providing AEM library files (quickstart.jar, license.properties, service packs), mounting data volume, etc. Forces instance recreation if changed. +- `data_dir` (String) Remote root path in which AEM Compose files and unpacked instances will be stored +- `env` (Map of String) Environment variables for AEM instances +- `service_config` (String) Contents of the AEM 'systemd' service definition file +- `user` (String) System user under which AEM instance will be running. By default, the same as the user used to connect to the machine. +- `work_dir` (String) Remote root path in which AEM Compose TF provider temporary files will be stored + + + +### Nested Schema for `instances` + +Read-Only: + +- `aem_version` (String) +- `attributes` (List of String) +- `dir` (String) +- `id` (String) +- `run_modes` (List of String) +- `url` (String) diff --git a/examples/aws_ssm/aem.tf b/examples/aws_ssm/aem.tf index 996fb77..ab213bc 100644 --- a/examples/aws_ssm/aem.tf +++ b/examples/aws_ssm/aem.tf @@ -2,7 +2,7 @@ resource "aem_instance" "single" { depends_on = [aws_instance.aem_single] client { - type = "aws_ssm" + type = "aws_ssm" settings = { instance_id = aws_instance.aem_single.id } diff --git a/examples/aws_ssm/aws.tf b/examples/aws_ssm/aws.tf index 5a0b1ce..1fc2202 100644 --- a/examples/aws_ssm/aws.tf +++ b/examples/aws_ssm/aws.tf @@ -23,7 +23,7 @@ resource "aws_iam_role" "aem_ec2" { } } EOF - tags = local.tags + tags = local.tags } resource "aws_iam_role_policy_attachment" "ssm" { diff --git a/examples/ssh/aem.tf b/examples/ssh/aem.tf index c7d28e9..917193b 100644 --- a/examples/ssh/aem.tf +++ b/examples/ssh/aem.tf @@ -2,7 +2,7 @@ resource "aem_instance" "single" { depends_on = [aws_instance.aem_single, aws_volume_attachment.aem_single_data] client { - type = "ssh" + type = "ssh" settings = { host = aws_instance.aem_single.public_ip port = 22 diff --git a/examples/ssh/aws.tf b/examples/ssh/aws.tf index 431b203..9de7b15 100644 --- a/examples/ssh/aws.tf +++ b/examples/ssh/aws.tf @@ -9,9 +9,9 @@ resource "aws_instance" "aem_single" { resource "aws_ebs_volume" "aem_single_data" { availability_zone = aws_instance.aem_single.availability_zone - size = 128 - type = "gp2" - tags = local.tags + size = 128 + type = "gp2" + tags = local.tags } resource "aws_volume_attachment" "aem_single_data" { @@ -48,7 +48,7 @@ resource "aws_iam_role" "aem_ec2" { } } EOF - tags = local.tags + tags = local.tags } resource "aws_iam_role_policy_attachment" "s3" {