Comments (2)
I'm facing a similar issue:
Configuration
- Jenkins version:
Jenkins 2.263.4
- Running on K8s with the Helm chart -> https://charts.jenkins.io
- JCasC based:
- Plugins
- ansiColor:0.7.5
- artifact-manager-s3:1.13
- authorize-project:1.3.0
- blueocean:1.24.4
- configuration-as-code:1.47
- copyartifact:1.46
- credentials-binding:1.24
- disable-github-multibranch-status:1.2
- docker-workflow:1.26
- git:4.6.0
- google-compute-engine:4.3.3
- google-storage-plugin:1.5.3
- hashicorp-vault-plugin:2.4.0
- job-dsl:1.74
- kubernetes:1.28.7
- mask-passwords:2.13
- metrics:4.0.2.7
- mock-security-realm:1.5
- monitoring:1.86.0
- pipeline-github:2.7
- pipeline-githubnotify-step:1.0.5
- pipeline-model-definition:1.8.4
- pipeline-utility-steps:2.6.1
- plot:2.1.9
- role-strategy:3.1
- slack:2.45
- ssh-agent:1.20
- ssh-slaves:1.31.5
- timestamper:1.11.8
- workflow-multibranch:2.22
- Configuration
credentials:
system:
domainCredentials:
- credentials:
- aws:
accessKey: "${s3_access_key}"
description: "s3-artifact-manager"
iamRoleArn: "${s3_iam_role}"
id: "s3-artifact-manager"
scope: GLOBAL
secretKey: "${s3_secret_key}"
unclassified:
artifactManager:
artifactManagerFactories:
- jclouds:
provider: s3
aws:
awsCredentials:
credentialsId: "s3-artifact-manager"
region: "us-east-2"
s3:
container: "observability-ci"
disableSessionToken: false
prefix: "k8s/"
useHttp: false
usePathStyleUrl: false
Stacktrace
2021-03-10 21:58:04.796+0000 [id=25529] WARNING c.c.j.p.a.AWSCredentialsImpl#getCredentials: Could not find default region using SDK lookup.
com.amazonaws.SdkClientException: Unable to load region information from any provider in the chain
at com.amazonaws.regions.AwsRegionProviderChain.getRegion(AwsRegionProviderChain.java:59)
at com.cloudbees.jenkins.plugins.awscredentials.AWSCredentialsImpl.getCredentials(AWSCredentialsImpl.java:138)
at io.jenkins.plugins.aws.global_configuration.CredentialsAwsGlobalConfiguration.sessionCredentialsFromKeyAndSecret(CredentialsAwsGlobalConfiguration.java:155)
at io.jenkins.plugins.aws.global_configuration.CredentialsAwsGlobalConfiguration.sessionCredentials(CredentialsAwsGlobalConfiguration.java:229)
at io.jenkins.plugins.aws.global_configuration.CredentialsAwsGlobalConfiguration.sessionCredentials(CredentialsAwsGlobalConfiguration.java:214)
at io.jenkins.plugins.artifact_manager_jclouds.s3.S3BlobStoreConfig.getAmazonS3ClientBuilderWithCredentials(S3BlobStoreConfig.java:285)
at io.jenkins.plugins.artifact_manager_jclouds.s3.S3BlobStoreConfig.getAmazonS3ClientBuilderWithCredentials(S3BlobStoreConfig.java:276)
at io.jenkins.plugins.artifact_manager_jclouds.s3.S3BlobStore.toExternalURL(S3BlobStore.java:208)
at io.jenkins.plugins.artifact_manager_jclouds.JCloudsArtifactManager.unstash(JCloudsArtifactManager.java:290)
at org.jenkinsci.plugins.workflow.flow.StashManager.unstash(StashManager.java:154)
at org.jenkinsci.plugins.workflow.support.steps.stash.UnstashStep$Execution.run(UnstashStep.java:76)
at org.jenkinsci.plugins.workflow.support.steps.stash.UnstashStep$Execution.run(UnstashStep.java:63)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2021-03-10 21:58:04.984+0000 [id=25529] WARNING c.a.util.EC2MetadataUtils#getItems: Unable to retrieve the requested metadata (/latest/dynamic/instance-identity/document). The requested metadata is not found at http://169.254.169.254/latest/dynamic/instance-identity/document
com.amazonaws.SdkClientException: The requested metadata is not found at http://169.254.169.254/latest/dynamic/instance-identity/document
at com.amazonaws.internal.EC2ResourceFetcher.doReadResource(EC2ResourceFetcher.java:89)
at com.amazonaws.internal.EC2ResourceFetcher.doReadResource(EC2ResourceFetcher.java:70)
at com.amazonaws.internal.InstanceMetadataServiceResourceFetcher.readResource(InstanceMetadataServiceResourceFetcher.java:75)
at com.amazonaws.internal.EC2ResourceFetcher.readResource(EC2ResourceFetcher.java:66)
at com.amazonaws.util.EC2MetadataUtils.getItems(EC2MetadataUtils.java:403)
at com.amazonaws.util.EC2MetadataUtils.getData(EC2MetadataUtils.java:372)
at com.amazonaws.util.EC2MetadataUtils.getData(EC2MetadataUtils.java:368)
at com.amazonaws.util.EC2MetadataUtils.getEC2InstanceRegion(EC2MetadataUtils.java:283)
at com.amazonaws.regions.InstanceMetadataRegionProvider.tryDetectRegion(InstanceMetadataRegionProvider.java:59)
at com.amazonaws.regions.InstanceMetadataRegionProvider.getRegion(InstanceMetadataRegionProvider.java:50)
at com.amazonaws.regions.AwsRegionProviderChain.getRegion(AwsRegionProviderChain.java:46)
at com.amazonaws.client.builder.AwsClientBuilder.determineRegionFromRegionProvider(AwsClientBuilder.java:475)
at com.amazonaws.client.builder.AwsClientBuilder.setRegion(AwsClientBuilder.java:458)
at com.amazonaws.client.builder.AwsClientBuilder.configureMutableProperties(AwsClientBuilder.java:424)
at com.amazonaws.client.builder.AwsSyncClientBuilder.build(AwsSyncClientBuilder.java:46)
at io.jenkins.plugins.artifact_manager_jclouds.s3.S3BlobStore.toExternalURL(S3BlobStore.java:235)
at io.jenkins.plugins.artifact_manager_jclouds.JCloudsArtifactManager.unstash(JCloudsArtifactManager.java:290)
at org.jenkinsci.plugins.workflow.flow.StashManager.unstash(StashManager.java:154)
at org.jenkinsci.plugins.workflow.support.steps.stash.UnstashStep$Execution.run(UnstashStep.java:76)
at org.jenkinsci.plugins.workflow.support.steps.stash.UnstashStep$Execution.run(UnstashStep.java:63)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
from aws-credentials-plugin.
There is a workaround in:
from aws-credentials-plugin.
Related Issues (20)
- Output of snippet generator is broken HOT 3
- Bad functionality with proxy, initialize ProxyAuthenticationMethods
- Cannot access AWS ECS resources when using v1.32
- Jenkins is failing due to external Id is required in the latest release for IAM role HOT 7
- Add Support for STS Endpoints in AWS Non-Commercial (China / GovCloud) Partitions
- Rotating AWS Credentials HOT 1
- Wrap a programmatically created eks token in a secret txt credentials
- The plugin cannot be disabled
- Uninstallation
- Add Support for STS regional Endpoints
- Support OIDC
- unable to install CloudBees AWS Credentials Plugin
- How do you use this plugin? HOT 3
- Support AWS IAM Roles Anywhere
- AWS Credentials Plugin
- Support for External ID
- Assume Role doesn't work as expected HOT 6
- Does not work in AWS Gov Cloud HOT 3
- Configurable AWS_SESSION_TOKEN env variable HOT 3
- Credentials are not available unless the job is run as SYSTEM HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-credentials-plugin.