Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-63986

Recent upgrade to ec2-plugin breaks Config as Code

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      A recent change to the EC2 plugin is incompatible with CasC setup for it.  Specifically, the `EC2 Key Pair's Private Key` field has changed from a text entry into a select list from a credentials provider. 

       

      The EC2 provider is expecting secrets of type "SSH Username with Private key" but the AWS SecretsManager credential provider only supports "SSH User private key".

       

      The net result is that I can launch runner nodes because I can't access my private keys in AWS SecretsManager, and the old text entry format is gone.

        Attachments

          Activity

          Hide
          chriskilding Chris Kilding added a comment -

          Mark Robinson if you would be open to testing an .hpi build on a local Jenkins, we think we've got a fix that you could try out.

          Show
          chriskilding Chris Kilding added a comment - Mark Robinson if you would be open to testing an .hpi build on a local Jenkins, we think we've got a fix that you could try out.
          Show
          chriskilding Chris Kilding added a comment - HPI is here: https://ci.jenkins.io/job/Plugins/job/ec2-plugin/job/PR-520/5/artifact/org/jenkins-ci/plugins/ec2/1.54-rc1218.bd9a8dd69948/ec2-1.54-rc1218.bd9a8dd69948.hpi  
          Hide
          markrobinson Mark Robinson added a comment -

          Chris Kilding Thanks!  This works great!

          Might be worth putting out a notice of a breaking change for JCasC since you have to change your config or your clouds will be unable to start.

          Show
          markrobinson Mark Robinson added a comment - Chris Kilding Thanks!  This works great! Might be worth putting out a notice of a breaking change for JCasC since you have to change your config or your clouds will be unable to start.
          Hide
          chriskilding Chris Kilding added a comment -

          The fix is merged and will go out in the next release of ec2-plugin.

          Show
          chriskilding Chris Kilding added a comment - The fix is merged and will go out in the next release of ec2-plugin.
          Hide
          markrobinson Mark Robinson added a comment -

          Thanks for fixing this! 

          Show
          markrobinson Mark Robinson added a comment - Thanks for fixing this! 

            People

            Assignee:
            chriskilding Chris Kilding
            Reporter:
            markrobinson Mark Robinson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: