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
Copy file name to clipboardExpand all lines: examples/container-image/README.md
+2
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,8 @@ No inputs.
55
55
56
56
| Name | Description |
57
57
|------|-------------|
58
+
| <aname="output_docker_image_files_to_hash"></a> [docker\_image\_files\_to\_hash](#output\_docker\_image\_files\_to\_hash)| List of files used to hash the docker image tag |
59
+
| <aname="output_docker_image_id"></a> [docker\_image\_id](#output\_docker\_image\_id)| The ID of the Docker image |
58
60
| <aname="output_docker_image_uri"></a> [docker\_image\_uri](#output\_docker\_image\_uri)| The ECR Docker image URI used to deploy Lambda Function |
59
61
| <aname="output_lambda_cloudwatch_log_group_arn"></a> [lambda\_cloudwatch\_log\_group\_arn](#output\_lambda\_cloudwatch\_log\_group\_arn)| The ARN of the Cloudwatch Log Group |
60
62
| <aname="output_lambda_function_arn"></a> [lambda\_function\_arn](#output\_lambda\_function\_arn)| The ARN of the Lambda Function |
Copy file name to clipboardExpand all lines: modules/docker-build/README.md
+9-1
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,10 @@ module "docker_image" {
34
34
35
35
create_ecr_repo = true
36
36
ecr_repo = "my-cool-ecr-repo"
37
-
image_tag = "1.0"
37
+
38
+
use_image_tag = true
39
+
image_tag = "1.0"
40
+
38
41
source_path = "context"
39
42
build_args = {
40
43
FOO = "bar"
@@ -94,17 +97,22 @@ No modules.
94
97
| <aname="input_ecr_repo"></a> [ecr\_repo](#input\_ecr\_repo)| Name of ECR repository to use or to create |`string`|`null`| no |
95
98
| <aname="input_ecr_repo_lifecycle_policy"></a> [ecr\_repo\_lifecycle\_policy](#input\_ecr\_repo\_lifecycle\_policy)| A JSON formatted ECR lifecycle policy to automate the cleaning up of unused images. |`string`|`null`| no |
96
99
| <aname="input_ecr_repo_tags"></a> [ecr\_repo\_tags](#input\_ecr\_repo\_tags)| A map of tags to assign to ECR repository |`map(string)`|`{}`| no |
100
+
| <aname="input_force_remove"></a> [force\_remove](#input\_force\_remove)| Whether to remove image forcibly when the resource is destroyed. |`bool`|`false`| no |
97
101
| <aname="input_image_tag"></a> [image\_tag](#input\_image\_tag)| Image tag to use. If not specified current timestamp in format 'YYYYMMDDhhmmss' will be used. This can lead to unnecessary rebuilds. |`string`|`null`| no |
98
102
| <aname="input_image_tag_mutability"></a> [image\_tag\_mutability](#input\_image\_tag\_mutability)| The tag mutability setting for the repository. Must be one of: `MUTABLE` or `IMMUTABLE`|`string`|`"MUTABLE"`| no |
103
+
| <aname="input_keep_locally"></a> [keep\_locally](#input\_keep\_locally)| Whether to delete the Docker image locally on destroy operation. |`bool`|`false`| no |
99
104
| <aname="input_keep_remotely"></a> [keep\_remotely](#input\_keep\_remotely)| Whether to keep Docker image in the remote registry on destroy operation. |`bool`|`false`| no |
100
105
| <aname="input_platform"></a> [platform](#input\_platform)| The target architecture platform to build the image for. |`string`|`null`| no |
101
106
| <aname="input_scan_on_push"></a> [scan\_on\_push](#input\_scan\_on\_push)| Indicates whether images are scanned after being pushed to the repository |`bool`|`false`| no |
102
107
| <aname="input_source_path"></a> [source\_path](#input\_source\_path)| Path to folder containing application code |`string`|`null`| no |
108
+
| <aname="input_triggers"></a> [triggers](#input\_triggers)| A map of arbitrary strings that, when changed, will force the docker\_image resource to be replaced. This can be used to rebuild an image when contents of source code folders change |`map(string)`|`{}`| no |
109
+
| <aname="input_use_image_tag"></a> [use\_image\_tag](#input\_use\_image\_tag)| Controls whether to use image tag in ECR repository URI or not. Disable this to deploy latest image using ID (sha256:...) |`bool`|`true`| no |
103
110
104
111
## Outputs
105
112
106
113
| Name | Description |
107
114
|------|-------------|
115
+
| <aname="output_image_id"></a> [image\_id](#output\_image\_id)| The ID of the Docker image |
108
116
| <aname="output_image_uri"></a> [image\_uri](#output\_image\_uri)| The ECR image URI for deploying lambda |
description="Controls whether to use image tag in ECR repository URI or not. Disable this to deploy latest image using ID (sha256:...)"
15
+
type=bool
16
+
default=true
17
+
}
18
+
13
19
variable"ecr_address" {
14
20
description="Address of ECR repository for cross-account container image pulling (optional). Option `create_ecr_repo` must be `false`"
15
21
type=string
@@ -88,3 +94,21 @@ variable "platform" {
88
94
type=string
89
95
default=null
90
96
}
97
+
98
+
variable"force_remove" {
99
+
description="Whether to remove image forcibly when the resource is destroyed."
100
+
type=bool
101
+
default=false
102
+
}
103
+
104
+
variable"keep_locally" {
105
+
description="Whether to delete the Docker image locally on destroy operation."
106
+
type=bool
107
+
default=false
108
+
}
109
+
110
+
variable"triggers" {
111
+
description="A map of arbitrary strings that, when changed, will force the docker_image resource to be replaced. This can be used to rebuild an image when contents of source code folders change"
0 commit comments