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: README.md
+23
Original file line number
Diff line number
Diff line change
@@ -130,6 +130,29 @@ The session will have the name "GitHubActions" and be tagged with the following
130
130
131
131
_Note: all tag values must conform to [the requirements](https://docs.aws.amazon.com/STS/latest/APIReference/API_Tag.html). Particularly, `GITHUB_WORKFLOW` will be truncated if it's too long. If `GITHUB_ACTOR` or `GITHUB_WORKFLOW` contain invalid charcters, the characters will be replaced with an '*'._
132
132
133
+
## Self-hosted runners
134
+
135
+
If you run your GitHub Actions in a [self-hosted runner](https://help.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners) that already has access to AWS credentials, such as an EC2 instance, then you do not need to provide IAM user access key credentials to this action.
136
+
137
+
If no access key credentials are given in the action inputs, this action will use credentials from the runner environment using the [default methods for the AWS SDK for Javascript](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-credentials-node.html).
138
+
139
+
You can use this action to simply configure the region and account ID in the environment, and then use the runner's credentials for all AWS API calls made by your Actions workflow:
140
+
```yaml
141
+
uses: aws-actions/configure-aws-credentials@v1
142
+
with:
143
+
aws-region: us-east-2
144
+
```
145
+
In this case, your runner's credentials must have permissions to call any AWS APIs called by your Actions workflow.
146
+
147
+
Or, you can use this action to assume a role, and then use the role credentials for all AWS API calls made by your Actions workflow:
148
+
```yaml
149
+
uses: aws-actions/configure-aws-credentials@v1
150
+
with:
151
+
aws-region: us-east-2
152
+
role-to-assume: my-github-actions-role
153
+
```
154
+
In this case, your runner's credentials must have permissions to assume the role.
155
+
133
156
## License Summary
134
157
135
158
This code is made available under the MIT license.
0 commit comments