You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# List any related terraform modules that this module may be used with or that this module depends on.
38
32
related:
33
+
- name: "terraform-aws-ecs-container-definition"
34
+
description: "Terraform module to generate well-formed JSON documents (container definitions) that are passed to the aws_ecs_task_definition Terraform resource."
description: "Terraform module designed to generate consistent names and tags for resources. Use terraform-null-label to implement a strict naming convention."
# List any resources helpful for someone to get started. For example, link to the hashicorp documentation or AWS documentation.
44
41
references:
42
+
- name: "mobius3"
43
+
description: "Continuously and asynchronously sync a local folder to an S3 bucket."
44
+
url: "https://github.com/uktrade/mobius3"
45
45
- name: "Terraform Standard Module Structure"
46
46
description: "HashiCorp's standard module structure is a file and directory layout we recommend for reusable modules distributed in separate repositories."
description: "HashiCorp's guidance on all the requirements for publishing a module. Meeting the requirements for publishing a module is extremely easy."
This is `terraform-example-module` project provides all the scaffolding for a typical well-built Cloud Posse module. It's a template repository you can
61
-
use when creating new repositories.
57
+
The `terraform-aws-mobius3` module creates the a container definition that syncs an ECS task volumes to S3.
| additional\_tag\_map | Additional tags for appending to tags\_as\_list\_of\_maps. Not added to `tags`. |`map(string)`|`{}`| no |
21
-
| attributes | Additional attributes (e.g. `1`) |`list(string)`|`[]`| no |
22
-
| context | Single object for setting entire context at once.<br>See description of individual variables for details.<br>Leave string and numeric variables as `null` to use default value.<br>Individual variable settings (non-null) override settings in context object,<br>except for attributes, tags, and additional\_tag\_map, which are merged. | <pre>object({<br> enabled = bool<br> namespace = string<br> environment = string<br> stage = string<br> name = string<br> delimiter = string<br> attributes = list(string)<br> tags = map(string)<br> additional_tag_map = map(string)<br> regex_replace_chars = string<br> label_order = list(string)<br> id_length_limit = number<br> })</pre> | <pre>{<br> "additional_tag_map": {},<br> "attributes": [],<br> "delimiter": null,<br> "enabled": true,<br> "environment": null,<br> "id_length_limit": null,<br> "label_order": [],<br> "name": null,<br> "namespace": null,<br> "regex_replace_chars": null,<br> "stage": null,<br> "tags": {}<br>}</pre> | no |
23
-
| delimiter | Delimiter to be used between `namespace`, `environment`, `stage`, `name` and `attributes`.<br>Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. |`string`|`null`| no |
24
-
| enabled | Set to false to prevent the module from creating any resources |`bool`|`null`| no |
25
-
| environment | Environment, e.g. 'uw2', 'us-west-2', OR 'prod', 'staging', 'dev', 'UAT' |`string`|`null`| no |
26
-
| example | Example variable |`string`|`"hello world"`| no |
27
-
| id\_length\_limit | Limit `id` to this many characters.<br>Set to `0` for unlimited length.<br>Set to `null` for default, which is `0`.<br>Does not affect `id_full`. |`number`|`null`| no |
28
-
| label\_order | The naming order of the id output and Name tag.<br>Defaults to ["namespace", "environment", "stage", "name", "attributes"].<br>You can omit any of the 5 elements, but at least one must be present. |`list(string)`|`null`| no |
29
-
| name | Solution name, e.g. 'app' or 'jenkins' |`string`|`null`| no |
30
-
| namespace | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' |`string`|`null`| no |
31
-
| regex\_replace\_chars | Regex to replace chars with empty string in `namespace`, `environment`, `stage` and `name`.<br>If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. |`string`|`null`| no |
32
-
| stage | Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'release' |`string`|`null`| no |
33
-
| tags | Additional tags (e.g. `map('BusinessUnit','XYZ')`|`map(string)`|`{}`| no |
18
+
| awscli\_image | The AWSCLI Compatible Image |`string`|`"docker.io/amazon/aws-cli:2.0.52"`| no |
| bucket\_key\_prefix | The key prefix to use for the bucket objects. |`any`| n/a | yes |
21
+
| bucket\_region | Bucket Region |`any`| n/a | yes |
22
+
| log\_configuration | Log configuration options to send to a custom log driver for the container. For more details, see https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_LogConfiguration.html|`any`|`null`| no |
23
+
| mobius3\_image | The Mobius3 Image for S3<->FS synchronization |`string`|`"quay.io/uktrade/mobius3:v0.0.32"`| no |
24
+
| user | The user that owns the volume. Can be any of these formats: uid, uid:gid. The default is (0:0). |`string`|`"0:0"`| no |
25
+
| volume\_name | The volume name. |`string`|`"data"`| no |
34
26
35
27
## Outputs
36
28
37
29
| Name | Description |
38
30
|------|-------------|
39
-
| example | Example output |
40
-
| id | ID of the created example |
41
-
| random | Stable random number for this example |
31
+
| container\_depends\_on | n/a |
32
+
| container\_depends\_on\_list | n/a |
33
+
| json\_map\_objects | n/a |
34
+
| source\_volume | The volume name to use in container definition mount point |
0 commit comments