Skip to content

Commit 1d2a967

Browse files
authored
Bump commons (#4)
* Go v13 * Defaulting ECS to true
1 parent 40dafd8 commit 1d2a967

File tree

2 files changed

+35
-2
lines changed

2 files changed

+35
-2
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ The following inputs can be used as `step.with` keys
215215
| `aws_vpc_availability_zones` | String | Comma separated list of availability zones. Defaults to `aws_default_region+<random>` value. If a list is defined, the first zone will be the one used for the EC2 instance. |
216216
| `aws_vpc_id` | String | **Existing** AWS VPC ID to use. Accepts `vpc-###` values. |
217217
| `aws_vpc_subnet_id` | String | **Existing** AWS VPC Subnet ID. If none provided, will pick one. (Ideal when there's only one). |
218+
| `aws_vpc_enable_nat_gateway` | Boolean | Adds a NAT gateway for each public subnet. Defaults to `false`. |
219+
| `aws_vpc_single_nat_gateway` | Boolean | Toggles only one NAT gateway for all of the public subnets. Defaults to `false`. |
220+
| `aws_vpc_external_nat_ip_ids` | String | **Existing** comma separated list of IP IDs if reusing. (ElasticIPs). |
218221
| `aws_vpc_additional_tags` | JSON | Add additional tags to the terraform [default tags](https://www.hashicorp.com/blog/default-tags-in-the-terraform-aws-provider), any tags put here will be added to vpc provisioned resources.|
219222
<hr/>
220223
<br/>
@@ -235,6 +238,18 @@ The following inputs can be used as `step.with` keys
235238
<hr/>
236239
<br/>
237240

241+
242+
#### **Action Outputs**
243+
| Name | Description |
244+
|------------------|------------------------------------|
245+
| `aws_vpc_id` | The selected VPC ID used. |
246+
| `ecs_load_balancer_dns` | ECS ALB DNS Record. |
247+
| `ecs_dns_record` | ECS DNS URL. |
248+
| `ecs_sg_id` | ECS SG ID. |
249+
| `ecs_lb_sg_id` | ECS LB SG ID. |
250+
<hr/>
251+
<br/>
252+
238253
## Contributing
239254
We would love for you to contribute to [`bitovi/github-actions-storybook-to-github-pages`](hhttps://github.com/bitovi/github-actions-storybook-to-github-pages). [Issues](https://github.com/bitovi/github-actions-storybook-to-github-pages/issues) and [Pull Requests](https://github.com/bitovi/github-actions-storybook-to-github-pages/pulls) are welcome!
240255

action.yaml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,15 @@ inputs:
191191
aws_vpc_subnet_id:
192192
description: 'Specify a Subnet to be used with the instance. If none provided, will pick one.'
193193
required: false
194+
aws_vpc_enable_nat_gateway:
195+
description: 'Enables NAT gateway'
196+
required: false
197+
aws_vpc_single_nat_gateway:
198+
description: 'Creates only one NAT gateway'
199+
required: false
200+
aws_vpc_external_nat_ip_ids:
201+
description: 'Comma separated list of IP IDS to reuse in the NAT gateways'
202+
required: false
194203
aws_vpc_additional_tags:
195204
description: 'A JSON object of additional tags that will be included on created resources. Example: `{"key1": "value1", "key2": "value2"}`'
196205
required: false
@@ -231,13 +240,19 @@ outputs:
231240
ecs_dns_record:
232241
description: "ECS DNS URL"
233242
value: ${{ steps.deploy.outputs.ecs_dns_record }}
234-
243+
ecs_sg_id:
244+
description: "ECS SG ID"
245+
value: ${{ steps.deploy.outputs.ecs_sg_id }}
246+
ecs_lb_sg_id:
247+
description: "ECS LB SG ID"
248+
value: ${{ steps.deploy.outputs.ecs_lb_sg_id }}
249+
235250
runs:
236251
using: 'composite'
237252
steps:
238253
- name: Deploy with BitOps
239254
id: deploy
240-
uses: bitovi/[email protected].11
255+
uses: bitovi/[email protected].13
241256
with:
242257
# Current repo vars
243258
gh_action_repo: ${{ github.action_path }}
@@ -310,6 +325,9 @@ runs:
310325
aws_vpc_availability_zones: ${{inputs.aws_vpc_availability_zones }}
311326
aws_vpc_id: ${{inputs.aws_vpc_id }}
312327
aws_vpc_subnet_id: ${{inputs.aws_vpc_subnet_id }}
328+
aws_vpc_enable_nat_gateway: ${{ inputs.aws_vpc_enable_nat_gateway }}
329+
aws_vpc_single_nat_gateway: ${{ inputs.aws_vpc_single_nat_gateway }}
330+
aws_vpc_external_nat_ip_ids: ${{ inputs.aws_vpc_external_nat_ip_ids }}
313331
aws_vpc_additional_tags: ${{inputs.aws_vpc_additional_tags }}
314332

315333
# AWS Route53 Domains abd Certificates

0 commit comments

Comments
 (0)