# ERROR: Unable to determine cloud configuration using: Labels

**URL:** https://community.jenkins.io/t/error-unable-to-determine-cloud-configuration-using-labels/28107
**Category:** Ask a question
**Tags:** question
**Created:** [March 11, 2025, 9:26pm UTC](https://community.jenkins.io/t/error-unable-to-determine-cloud-configuration-using-labels/28107 "2025-03-11T21:26:43Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![aron23](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/aron23/32/13619_2.png) [@aron23](https://community.jenkins.io/u/aron23)
#### Post date: [March 11, 2025, 9:26pm UTC](https://community.jenkins.io/t/error-unable-to-determine-cloud-configuration-using-labels/28107/1 "2025-03-11T21:26:43Z")

</div>

Jenkins setup:  
Version 2.501

Deployment based on:

> **[GitHub - aws-samples/serverless-jenkins-on-aws-fargate](https://github.com/aws-samples/serverless-jenkins-on-aws-fargate)**
>
> Contribute to aws-samples/serverless-jenkins-on-aws-fargate development by creating an account on GitHub.

We updated from version 2.47 something earlier today and are struggling to get our inbound agents working again. After resolving a few issues we are now faced with this message:

**ERROR: Unable to determine cloud configuration using: Labels: [simple-non-critical-jenkins-task-11-xtx88], inheritFrom: ‘fargate-cloud-jenkins-spot’, Cloud: ‘cloud-default’**

fargate-cloud-jenkins-spot is basically a hello world instance built from jenkins/inbound-agent

We had this all working previously and I am at a loss regarding how to proceed.

---

<div class="post-metadata">

### Author: ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)
#### Post date: [March 11, 2025, 10:06pm UTC](https://community.jenkins.io/t/error-unable-to-determine-cloud-configuration-using-labels/28107/2 "2025-03-11T22:06:06Z")

</div>

You might try upgrading the EC2 plugin to the most recent release. [JENKINS-75390](https://issues.jenkins.io/browse/JENKINS-75390) reported that [1872.v8757931fec80](https://plugins.jenkins.io/ec2/releases/#version_1872.v8757931fec80) has a bug that affects spot instances on AWS. That bug was fixed in [1873.vf0b\_f234b\_e2f3](https://plugins.jenkins.io/ec2/releases/#version_1873.vf0b_f234b_e2f3).

If that does not resolve the issue, then you’ll need to provide more information so that others can help. [“How to report an issue”](https://www.jenkins.io/participate/report-issue/#what-information-to-provide-for-environment-and-description) includes a list of items and scripts that help provide the necessary information

---

<div class="post-metadata">

### Author: ![aron23](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/aron23/32/13619_2.png) [@aron23](https://community.jenkins.io/u/aron23)
#### Post date: [March 12, 2025, 11:26am UTC](https://community.jenkins.io/t/error-unable-to-determine-cloud-configuration-using-labels/28107/3 "2025-03-12T11:26:00Z")

</div>

All of the plugins seem up to date, below is a copy of the system information.

Our installation is ECS based with a controller cluster and a spot cluster.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/4/40ba3c994c16aa0a332f70bf883beb6211cb93e6.png)

system Info page:

executable-war

/usr/share/jenkins/jenkins.war  
file.encoding

UTF-8  
file.separator

/  
hudson.lifecycle

hudson.lifecycle.ExitLifecycle  
java.awt.headless

true  
java.class.path

/usr/share/jenkins/jenkins.war  
java.class.version

65.0  
java.home

/opt/java/openjdk  
java.io.tmpdir

/tmp  
java.library.path

/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib  
java.runtime.name

OpenJDK Runtime Environment  
java.runtime.version

21.0.6+7-LTS  
java.specification.name

Java Platform API Specification  
java.specification.vendor

Oracle Corporation  
java.specification.version

21  
java.vendor

Eclipse Adoptium  
java.vendor.url

> **[Home | Adoptium](https://adoptium.net)**
>
> Eclipse Adoptium provides prebuilt OpenJDK binaries ...

java.vendor.url.bug

adoptium/adoptium-support/issues  
java.vendor.version

Temurin-21.0.6+7  
java.version

21.0.6  
java.version.date

2025-01-21  
java.vm.compressedOopsMode

32-bit  
java.vm.info

mixed mode  
java.vm.name

OpenJDK 64-Bit Server VM  
java.vm.specification.name

Java Virtual Machine Specification  
java.vm.specification.vendor

Oracle Corporation  
java.vm.specification.version

21  
java.vm.vendor

Eclipse Adoptium  
java.vm.version

21.0.6+7-LTS  
jdk.debug

release  
jenkins.install.runSetupWizard

false  
jenkins.model.Jenkins.slaveAgentPort

50000  
jetty.git.hash

c3f88bafb4e393f23204dc14dc57b042e84debc7  
line.separator

mail.smtp.sendpartial

true  
mail.smtps.sendpartial

true  
native.encoding

UTF-8  
os.arch

amd64  
os.name

Linux  
os.version

5.10.234-225.895.amzn2.x86\_64  
path.separator

:  
stderr.encoding

UTF-8  
stdout.encoding

UTF-8  
sun.arch.data.model

64  
sun.boot.library.path

/opt/java/openjdk/lib  
sun.cpu.endian

little  
sun.io.unicode.encoding

UnicodeLittle  
sun.java.command

/usr/share/jenkins/jenkins.war  
sun.java.launcher

SUN\_STANDARD  
sun.jnu.encoding

UTF-8  
sun.management.compiler

HotSpot 64-Bit Tiered Compilers  
user.dir

/  
user.home

/var/jenkins\_home  
user.language

en  
user.name

jenkins  
user.timezone

Etc/UTC

---

<div class="post-metadata">

### Author: ![aron23](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/aron23/32/13619_2.png) [@aron23](https://community.jenkins.io/u/aron23)
#### Post date: [March 12, 2025, 2:10pm UTC](https://community.jenkins.io/t/error-unable-to-determine-cloud-configuration-using-labels/28107/4 "2025-03-12T14:10:35Z")

</div>

> [@aron23](#):
>
> Unable to determine cloud configuration using: Labels

a bit more detail from our configuration:

`jenkins:  
authorizationStrategy:  
globalMatrix:  
entries:  
- group:  
name: “authenticated”  
permissions:  
- “Job/Read”  
- “Overall/Administer”  
- “Overall/Read”  
- “View/Read”  
clouds:

- ecs:  
allowedOverrides: “inheritFrom,label,memory,cpu,image”  
cluster: “arn:aws:…:cluster/serverless-jenkins-spot”  
jenkinsUrl: “…:8080”  
name: “fargate-cloud-jenkins-spot”  
regionName: “us-east-1”  
retentionTimeout: 10  
templates:
  - assignPublicIp: false  
cpu: 512  
cpuArchitecture: “X86\_64”  
defaultCapacityProvider: false  
enableExecuteCommand: false  
executionRole: “arn:aws:iam::…:role/serverless-jenkins-ecs-execution-role”  
image: “…dkr.ecr.us-east-1.amazonaws.com/jenkins-agent/jenkins:latest”  
label: “build-jenkins-spot”  
launchType: “FARGATE”  
memory: 0  
memoryReservation: 1024  
networkMode: “awsvpc”  
operatingSystemFamily: “LINUX”  
platformVersion: “LATEST”  
privileged: false  
remoteFSRoot: “/home/jenkins”  
securityGroups: “sg-01bd4216253794608”  
sharedMemorySize: 0  
subnets: “subnet-07d97943017e6d425,subnet-0ae8ba80d19f7d4b1”  
templateName: “build-jenkins”  
uniqueRemoteFSRoot: false

- ecs:  
allowedOverrides: “inheritFrom,label,memory,cpu,image”  
cluster: “arn:aws:…:cluster/serverless-jenkins-spot”  
jenkinsUrl: “…:8080”  
name: “fargate-cloud-node-spot”  
regionName: “us-east-1”  
retentionTimeout: 10  
templates:
  - assignPublicIp: false  
cpu: 512  
cpuArchitecture: “X86\_64”  
defaultCapacityProvider: false  
enableExecuteCommand: false  
executionRole: “arn:aws:iam::…:role/serverless-jenkins-ecs-execution-role”  
image: “…dkr.ecr.us-east-1.amazonaws.com/jenkins-agent/node:latest”  
label: “build-node-spot”  
launchType: “FARGATE”  
memory: 0  
memoryReservation: 1024  
networkMode: “awsvpc”  
operatingSystemFamily: “LINUX”  
privileged: false  
remoteFSRoot: “/home/jenkins”  
securityGroups: “sg-01bd4216253794608”  
sharedMemorySize: 0  
subnets: “subnet-07d97943017e6d425,subnet-0ae8ba80d19f7d4b1”  
templateName: “build-node”  
uniqueRemoteFSRoot: false

- ecs:  
allowedOverrides: “inheritFrom,label,memory,cpu,image”  
cluster: “arn:aws:…:cluster/serverless-jenkins-spot”  
jenkinsUrl: “…:8080”  
name: “fargate-cloud-python-spot”  
regionName: “us-east-1”  
retentionTimeout: 10  
templates:
  - assignPublicIp: false  
cpu: 512  
cpuArchitecture: “X86\_64”  
defaultCapacityProvider: false  
enableExecuteCommand: false  
executionRole: “arn:aws:iam::…:role/serverless-jenkins-ecs-execution-role”  
image: “…dkr.ecr.us-east-1.amazonaws.com/jenkins-agent/python:latest”  
label: “build-python-spot”  
launchType: “FARGATE”  
memory: 0  
memoryReservation: 1024  
networkMode: “awsvpc”  
operatingSystemFamily: “LINUX”  
privileged: false  
remoteFSRoot: “/home/jenkins”  
securityGroups: “sg-01bd4216253794608”  
sharedMemorySize: 0  
subnets: “subnet-07d97943017e6d425,subnet-0ae8ba80d19f7d4b1”  
templateName: “build-python”  
uniqueRemoteFSRoot: false

- ecs:  
allowedOverrides: “inheritFrom,label,memory,cpu,image”  
cluster: “arn:aws:…:cluster/serverless-jenkins-main”  
jenkinsUrl: “…:8080”  
name: “fargate-cloud”  
regionName: “us-east-1”  
retentionTimeout: 10  
templates:
  - assignPublicIp: false  
cpu: 512  
cpuArchitecture: “X86\_64”  
defaultCapacityProvider: false  
enableExecuteCommand: false  
executionRole: “arn:aws:iam::…:role/serverless-jenkins-ecs-execution-role”  
image: “jenkins/inbound-agent:latest-alpine-jdk21”  
label: “build-example”  
launchType: “FARGATE”  
memory: 0  
memoryReservation: 1024  
networkMode: “awsvpc”  
operatingSystemFamily: “LINUX”  
privileged: false  
remoteFSRoot: “/home/jenkins”  
securityGroups: “sg-01bd4216253794608”  
sharedMemorySize: 0  
subnets: “subnet-07d97943017e6d425,subnet-0ae8ba80d19f7d4b1”  
templateName: “build-example”  
uniqueRemoteFSRoot: false  
crumbIssuer:  
standard:  
excludeClientIPFromCrumb: false  
disableRememberMe: false  
disabledAdministrativeMonitors:

- “jenkins.diagnostics.RootUrlNotSetMonitor”
- “hudson.util.DoubleLaunchChecker”  
labelAtoms:
- name: “build-example”
- name: “build-jenkins-spot”
- name: “build-node-spot”
- name: “build-python-spot”
- name: “built-in”  
markupFormatter: “plainText”  
mode: NORMAL  
myViewsTabBar: “standard”  
nodeMonitors:
- “architecture”
- “clock”
- diskSpace:  
freeSpaceThreshold: “1GiB”  
freeSpaceWarningThreshold: “2GiB”
- “swapSpace”
- tmpSpace:  
freeSpaceThreshold: “1GiB”  
freeSpaceWarningThreshold: “2GiB”
- “responseTime”  
numExecutors: 0  
primaryView:  
all:  
name: “all”  
projectNamingStrategy:  
roleBased:  
forceExistingJobs: false  
quietPeriod: 5  
remotingSecurity:  
enabled: true  
scmCheckoutRetryCount: 0  
securityRealm:  
local:  
allowsSignup: false  
enableCaptcha: false  
users:
  - id: “…”  
name: “…”  
properties:
    - “apiToken”
    - “consoleUrlProvider”
    - “myView”
    - preferredProvider:  
providerId: “default”
    - “timezone”
    - “experimentalFlags”
    - mailer:  
emailAddress: “…”

  - id: “…”  
name: “…”  
properties:
    - “apiToken”
    - “consoleUrlProvider”
    - “myView”
    - preferredProvider:  
providerId: “default”
    - “timezone”
    - “experimentalFlags”
    - mailer:  
emailAddress: “…”

  - id: “…”  
name: “…”  
properties:
    - “apiToken”
    - “consoleUrlProvider”
    - “mailer”
    - “myView”
    - preferredProvider:  
providerId: “default”
    - “timezone”
    - “experimentalFlags”

  - id: “…”  
name: “…”  
properties:
    - “apiToken”
    - “consoleUrlProvider”
    - “myView”
    - preferredProvider:  
providerId: “default”
    - “timezone”
    - “experimentalFlags”
    - mailer:  
emailAddress: “…”

  - id: “…”  
name: “…”  
properties:
    - “apiToken”
    - “consoleUrlProvider”
    - “myView”
    - preferredProvider:  
providerId: “default”
    - “timezone”
    - “experimentalFlags”
    - mailer:  
emailAddress: “…”  
slaveAgentPort: 50000  
systemMessage: “Build Server”  
updateCenter:  
sites:

  - id: “default”  
url: “[https://updates.jenkins.io/update-center.json](https://updates.jenkins.io/update-center.json)”  
views:

- all:  
name: “all”  
viewsTabBar: “standard”  
globalCredentialsConfiguration:  
configuration:  
providerFilter: “none”  
typeFilter: “none”  
appearance:  
prism:  
theme: PRISM  
security:  
apiToken:  
creationOfLegacyTokenEnabled: false  
tokenGenerationOnCreationEnabled: false  
usageStatisticsEnabled: true  
cps:  
hideSandbox: false  
gitHooks:  
allowedOnAgents: false  
allowedOnController: false  
gitHostKeyVerificationConfiguration:  
sshHostKeyVerificationStrategy: “knownHostsFileVerificationStrategy”  
globalJobDslSecurityConfiguration:  
useScriptSecurity: true  
sSHD:  
port: -1  
scriptApproval:  
forceSandbox: false  
unclassified:  
buildDiscarders:  
configuredBuildDiscarders:
  - “jobBuildDiscarder”  
buildStepOperation:  
enabled: false  
fingerprints:  
fingerprintCleanupDisabled: false  
storage: “file”  
gitHubPluginConfig:  
hookUrl: “…/github-webhook/”  
globalTimeOutConfiguration:  
operations:
  - “abortOperation”  
overwriteable: false  
junitTestResultStorage:  
storage: “file”  
location:  
adminAddress: “address not configured yet [nobody@nowhere](mailto:nobody@nowhere)”  
mailer:  
charset: “UTF-8”  
useSsl: false  
useTls: false  
mavenModuleSet:  
localRepository: “default”  
pollSCM:  
pollingThreadCount: 10  
scmGit:  
addGitTagAction: false  
allowSecondFetch: false  
createAccountBasedOnEmail: false  
disableGitToolChooser: false  
globalConfigName: “…”  
hideCredentials: false  
showEntireCommitSummaryInChanges: false  
useExistingAccountWithSameEmail: false  
timestamper:  
allPipelines: false  
elapsedTimeFormat: “' **‘HH:mm:ss.S’**'”  
systemTimeFormat: “' **‘HH:mm:ss’**'”  
tool:  
git:  
installations:
  - home: “git”  
name: “Default”  
mavenGlobalConfig:  
globalSettingsProvider: “standard”  
settingsProvider: “standard”`

---

<div class="post-metadata">

### Author: ![aron23](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/aron23/32/13619_2.png) [@aron23](https://community.jenkins.io/u/aron23)
#### Post date: [March 12, 2025, 2:25pm UTC](https://community.jenkins.io/t/error-unable-to-determine-cloud-configuration-using-labels/28107/5 "2025-03-12T14:25:11Z")

</div>

> [@aron23](#):
>
> ERROR: Unable to determine cloud configuration using: Labels: [simple-non-critical-jenkins-task-11-xtx88], inheritFrom: ‘fargate-cloud-jenkins-spot’, Cloud: ‘cloud-default’

I am suspecting this is related to **Cloud: ‘cloud-default’** which I cannot find in the original repo I based our deployment on or any of the modifications we have made.

---

<div class="post-metadata">

### Author: ![aron23](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/aron23/32/13619_2.png) [@aron23](https://community.jenkins.io/u/aron23)
#### Post date: [March 14, 2025, 12:08am UTC](https://community.jenkins.io/t/error-unable-to-determine-cloud-configuration-using-labels/28107/6 "2025-03-14T00:08:06Z")

</div>

So the issue was complicated, the issue in my initial post was some confusion on my part between of what label to use in **inheritFrom**. In this case I should have been using **label: “build-jenkins-spot”** from the configuration of the ecs cloud. Additionally somehow terraform was setting the wrong security group, even on a clean deploy. I was able to uncover this by reviewing the logs when the builds were never connecting to spot instances.
