File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55160,6 +55160,7 @@ async function startEc2Instance(label, githubRegistrationToken) {
5516055160 SecurityGroupIds: [config.input.securityGroupId],
5516155161 IamInstanceProfile: { Name: config.input.iamRoleName },
5516255162 TagSpecifications: config.tagSpecifications,
55163+ KeyName: config.input.keyPairName
5516355164 };
5516455165
5516555166 try {
@@ -55234,6 +55235,7 @@ class Config {
5523455235 label: core.getInput('label'),
5523555236 ec2InstanceId: core.getInput('ec2-instance-id'),
5523655237 iamRoleName: core.getInput('iam-role-name'),
55238+ keyPairName: core.getInput('key-pair-name')
5523755239 };
5523855240
5523955241 const tags = JSON.parse(core.getInput('aws-resource-tags'));
@@ -55262,6 +55264,10 @@ class Config {
5526255264 throw new Error(`The 'github-token' input is not specified`);
5526355265 }
5526455266
55267+ if (!this.input.keyPairName) {
55268+ throw new Error(`Must specify a key pair name`);
55269+ }
55270+
5526555271 if (this.input.mode === 'start') {
5526655272 if (!this.input.ec2ImageId || !this.input.ec2InstanceType || !this.input.subnetId || !this.input.securityGroupId) {
5526755273 throw new Error(`Not all the required inputs are provided for the 'start' mode`);
You can’t perform that action at this time.
0 commit comments