Skip to content

Commit

Permalink
add input to assign-public-ip
Browse files Browse the repository at this point in the history
  • Loading branch information
noelzubin committed Dec 1, 2021
1 parent 09ba8bc commit 6bfcede
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Usage
subnets: sb-123123
security-groups: sg-1231231
container-override: server
assign-public-ip: DISABLED
container-command: sh
-c
cd database && python migrate.py
Expand Down
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ inputs:
override-container-command:
description: 'The command to to be run on the overrided container'
required: false
assign-public-ip:
description: 'Assign public IP to the task. (ENABLED/DISABLED)'
required: false
default: 'ENABLED'

outputs:
task-arn:
description: 'The ARN for the tash that finished running'
Expand Down
4 changes: 3 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40536,6 +40536,8 @@ const main = async () => {
required: true,
});

const assignPublicIp =
core.getInput("assign-public-ip", { required: false }) || "ENABLED";
const overrideContainer = core.getInput("override-container", {
required: false,
});
Expand All @@ -40554,7 +40556,7 @@ const main = async () => {
networkConfiguration: {
awsvpcConfiguration: {
subnets,
assignPublicIp: "ENABLED",
assignPublicIp,
securityGroups,
},
},
Expand Down
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const main = async () => {
required: true,
});

const assignPublicIp =
core.getInput("assign-public-ip", { required: false }) || "ENABLED";
const overrideContainer = core.getInput("override-container", {
required: false,
});
Expand All @@ -29,7 +31,7 @@ const main = async () => {
networkConfiguration: {
awsvpcConfiguration: {
subnets,
assignPublicIp: "ENABLED",
assignPublicIp,
securityGroups,
},
},
Expand Down

0 comments on commit 6bfcede

Please sign in to comment.