1
1
# AWS CodeDeploy Action
2
+ _ To automatically deploy applications to EC2 via CodeDeploy._
2
3
3
- To automatically deploy applications to EC2 via CodeDeploy.
4
+ ![ ] ( .github/aws-codedeploy-action.png )
4
5
5
6
---
6
7
@@ -79,7 +80,7 @@ Following inputs can be used as `step.with` keys
79
80
| `max_polling_iterations` | No | Number | Number of 15s iterations to poll max. (default : ` 60` ) |
80
81
| `dry_run` | No | Boolean | If true, no connection to AWS is made. Just local zip creation. |
81
82
82
- # # Skipping waiting during deployment
83
+ # # Skip waiting during deployment
83
84
Some projects may not want to poll for a completion of a build. Setting `max_polling_iterations` to `0` will exit
84
85
the script after the deployment was kicked off. Progress will have to be monitored elsewhere.
85
86
@@ -92,7 +93,6 @@ Some projects may have a complex build system or even build the archive in a pre
92
93
* `archive` must be zip filename including extension (ie `prod-backend-20220202.zip`).
93
94
94
95
# # IAM Permissions
95
- _If using manual Access/Secret keys_
96
96
97
97
You shouldn't be using a root user. Below are snippets of an inline policies with suggested permissions for the action.
98
98
@@ -153,21 +153,3 @@ For deploying via CodeDeploy you will need another set of permissions.
153
153
154
154
* These permissions are a rough example of allowing the user to list/get/register a revision for all resources
155
155
* A specific permission statement exists to lock creating the deployment to a specific resource
156
-
157
- ---
158
-
159
- # ## Install as Local Action
160
-
161
- For quicker troubleshooting cycles, the action can be copied directly into another project. This way, changes to the
162
- action, and its usage can happen simultaneously in one commit.
163
-
164
- 1. Copy this repository into your other project as `.github/actions/aws-codedeploy-action`. Be careful : simply cloning
165
- in place will likely install it as a submodule--make sure to copy the files without `.git`
166
- 1. As a single command :
167
- ` ` ` shell
168
- mkdir .github/actions && \
169
- git clone --depth=1 --branch=master git@github.com:sourcetoad/aws-codedeploy-action.git .github/actions/aws-codedeploy-action && \
170
- rm -rf .github/actions/aws-codedeploy-action/.git
171
- ` ` `
172
- 2. In your other project's workflow, in the action step, set
173
- `uses : ./.github/actions/aws-codedeploy-action`
0 commit comments