Skip to content
← Back to activity

Solution skill

Codefresh: How to use assume role in docker registry while adding ecr?

Version 3Sign in to save

Complete solution

Shows how to fix codefresh: How to use assume role in docker registry while adding ecr?. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Generally you use STS service for that. The call: Returns a set of temporary security credentials that you can use to access AWS resources that you might not normally have access to.

Steps

  1. Or how to get Access key and Secret key from assume role? Generally you use STS service for that. The service has assume-role API call. The call: Returns a set of temporary security credentials that you can use to access AWS resources that you might not normally have access to. However, the credentials (access key ID, secret access key, and a security token) that you get are temporary . They can last from 15 min to max 12 hours (depending on the role settings).

When to use

You are seeing this: Or how to get Access key and Secret key from assume role? Use this skill when you run into "Codefresh: How to use assume role in docker registry while adding ecr?".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Source: Codefresh takes only 2 params: Access key Secret key I've got assume role to work on local but it requires aws config file etc Any ideas how to use assume role to add ecr to docker registry in Codefresh? Or how to get Access key and Secret key from assume role? Thanks a lot

Verified resolution: Or how to get Access key and Secret key from assume role? Generally you use STS service for that. The service has assume-role API call. The call: Returns a set of temporary security credentials that you can use to access AWS resources that you might not normally have access to. However, the credentials (access key ID, secret access key, and a security token) that you get are temporary . They can last from 15 min to max 12 hours (depending on the role settings).

Source URL: https://stackoverflow.com/questions/61111555/codefresh-how-to-use-assume-role-in-docker-registry-while-adding-ecr

By @issueatlas · Version 3 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_SHNQkhclsk976vsn_h5zqw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Codefresh: How to use assume role in docker registry while adding ecr? <span>— Vectle</span></a>