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

Jenkins Configure clouds (Amazon EC2) doesn't work via helm charts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • ec2-plugin
    • None

      Below is the code I have in my helm-chart:

      clouds:
        - amazonEC2:
           cloudName: "EC2 workers"
           privateKey: "${secret-privatekey}"
           region: "us-east-2"
           instanceCap: "4"
           useInstanceProfileForCredentials: "true"
           Usage: "use this node as much as possible"
           awsKeyId: "AWS-login"
           accessKey: "***"
           secretKey: "***"
           templates:
             - description: "Jenkins-Worker-Ubuntu"
                ami: "ami-id"
                connectBySSHProcess: "true"
                deleteRootOnTermination: "true"
                iamInstanceProfile: "role-arn"
                idleTerminationMinutes: "30"
                initScript: "sudo apt -y update --security" 
                labelString: "test"
                mode: "NORMAL"
                numExecutors: "1"
                remoteAdmin: "ubuntu"
                remoteFS: "/home/ubuntu"
                securityGroups: "sg-***"
                stopOnTerminate: "false"
                subnetId: "subnet-***"
                tags: "newEC2Tag('Name', 'test1')"
                type: "M5Xlarge"
       
                zone: "us-east-2"

      There are no errors when helm-chart is run. But in the Jenkins UI, under Manage cloud, there is no Amazon EC2 cloud defined. Kindly help.
       

            thoulen FABRIZIO MANFREDI
            stark123 Stark learn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: