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: modules/deploy/README.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ This module can create AWS CodeDeploy application and deployment group, if neces
8
8
9
9
During deployment this module does the following:
10
10
1. Create JSON object with required AppSpec configuration. Optionally, you can store deploy script for debug purposes by setting `save_deploy_script = true`.
11
-
1. Run [`aws deploy create-deployment` command](https://docs.aws.amazon.com/cli/latest/reference/deploy/create-deployment.html) if `create_deployment = true` was set
11
+
1. Run [`aws deploy create-deployment` command](https://docs.aws.amazon.com/cli/latest/reference/deploy/create-deployment.html) if `create_deployment = true`and `run_deployment = true`was set.
12
12
1. After deployment is created, it can wait for the completion if `wait_deployment_completion = true`. Be aware, that Terraform will lock the execution and it can fail if it runs for a long period of time. Set this flag for fast deployments (eg, `deployment_config_name = "CodeDeployDefault.LambdaAllAtOnce"`).
13
13
14
14
@@ -53,6 +53,7 @@ module "deploy" {
53
53
deployment_group_name = "something"
54
54
55
55
create_deployment = true
56
+
run_deployment = true
56
57
wait_deployment_completion = true
57
58
58
59
triggers = {
@@ -158,15 +159,17 @@ No modules.
158
159
| <aname="input_create"></a> [create](#input\_create)| Controls whether resources should be created |`bool`|`true`| no |
159
160
| <aname="input_create_app"></a> [create\_app](#input\_create\_app)| Whether to create new AWS CodeDeploy app |`bool`|`false`| no |
160
161
| <aname="input_create_codedeploy_role"></a> [create\_codedeploy\_role](#input\_create\_codedeploy\_role)| Whether to create new AWS CodeDeploy IAM role |`bool`|`true`| no |
161
-
| <aname="input_create_deployment"></a> [create\_deployment](#input\_create\_deployment)|Run AWS CLI command to create deployment|`bool`|`false`| no |
162
+
| <aname="input_create_deployment"></a> [create\_deployment](#input\_create\_deployment)|Create the AWS resources and script for CodeDeploy|`bool`|`false`| no |
162
163
| <aname="input_create_deployment_group"></a> [create\_deployment\_group](#input\_create\_deployment\_group)| Whether to create new AWS CodeDeploy Deployment Group |`bool`|`false`| no |
163
164
| <aname="input_current_version"></a> [current\_version](#input\_current\_version)| Current version of Lambda function version to deploy (can't be $LATEST) |`string`|`""`| no |
164
165
| <aname="input_deployment_config_name"></a> [deployment\_config\_name](#input\_deployment\_config\_name)| Name of deployment config to use |`string`|`"CodeDeployDefault.LambdaAllAtOnce"`| no |
165
166
| <aname="input_deployment_group_name"></a> [deployment\_group\_name](#input\_deployment\_group\_name)| Name of deployment group to use |`string`|`""`| no |
166
167
| <aname="input_description"></a> [description](#input\_description)| Description to use for the deployment |`string`|`""`| no |
167
168
| <aname="input_force_deploy"></a> [force\_deploy](#input\_force\_deploy)| Force deployment every time (even when nothing changes) |`bool`|`false`| no |
168
169
| <aname="input_function_name"></a> [function\_name](#input\_function\_name)| The name of the Lambda function to deploy |`string`|`""`| no |
170
+
| <aname="input_get_deployment_sleep_timer"></a> [get\_deployment\_sleep\_timer](#input\_get\_deployment\_sleep\_timer)| Adds additional sleep time to get-deployment command to avoid the service throttling |`number`|`5`| no |
169
171
| <aname="input_interpreter"></a> [interpreter](#input\_interpreter)| List of interpreter arguments used to execute deploy script, first arg is path |`list(string)`| <pre>[<br> "/bin/bash",<br> "-c"<br>]</pre> | no |
172
+
| <aname="input_run_deployment"></a> [run\_deployment](#input\_run\_deployment)| Run AWS CLI command to start the deployment |`bool`|`false`| no |
170
173
| <aname="input_save_deploy_script"></a> [save\_deploy\_script](#input\_save\_deploy\_script)| Save deploy script locally |`bool`|`false`| no |
171
174
| <aname="input_tags"></a> [tags](#input\_tags)| A map of tags to assign to resources. |`map(string)`|`{}`| no |
172
175
| <aname="input_target_version"></a> [target\_version](#input\_target\_version)| Target version of Lambda function version to deploy |`string`|`""`| no |
0 commit comments