Skip to content

Commit 7941999

Browse files
committed
Add proxy configuration
1 parent db0cfe6 commit 7941999

File tree

7 files changed

+1834
-12
lines changed

7 files changed

+1834
-12
lines changed

README.md

+25
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,31 @@ jobs:
149149
150150
```
151151

152+
### Proxy Configuration
153+
154+
If you run in self-hosted environments and in secured environment where you need use a specific proxy you can set it in the action manually.
155+
156+
Additionally this action will always consider already configured proxy in the environment.
157+
158+
Manually configured proxy:
159+
```yaml
160+
uses: aws-actions/aws-cloudformation-github-deploy@v1
161+
with:
162+
name: eks-primary
163+
template: https://s3.amazonaws.com/aws-quickstart/quickstart-amazon-eks/templates/amazon-eks-master.template.yaml
164+
no-fail-on-empty-changeset: "1"
165+
http-proxy: "http://companydomain.com:3128"
166+
```
167+
168+
Proxy configured in the environment variable:
169+
170+
```bash
171+
# Your environment configuration
172+
HTTP_PROXY="http://companydomain.com:3128"
173+
```
174+
175+
The action will read the underlying proxy configuration from the environment and you don't need to configure it in the action.
176+
152177
## License
153178

154179
[MIT](/LICENSE)

action.yml

+3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ inputs:
4949
description: "Whether to enable termination protection on the specified stack. Defaults to '0' (terminated protection will be disabled) This input is only used for stack creation, not for stack update"
5050
required: false
5151
default: "0"
52+
http-proxy:
53+
description: 'Proxy to use for the AWS SDK agent'
54+
required: false
5255
outputs:
5356
stack-id:
5457
description: "The id of the deployed stack. In addition, any outputs declared in the deployed CloudFormation stack will also be set as outputs for the action, e.g. if the stack has a stack output named 'foo', this action will also have an output named 'foo'."

0 commit comments

Comments
 (0)