Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RepositoryCredentials parameter to run fargate #3393

Open
khalilpcp opened this issue Oct 28, 2024 · 0 comments
Open

Add RepositoryCredentials parameter to run fargate #3393

khalilpcp opened this issue Oct 28, 2024 · 0 comments

Comments

@khalilpcp
Copy link

khalilpcp commented Oct 28, 2024

Version info:

<2.0.20>

I'm working in a company that blocks public images. We need to provide a custom image (mirror of the offcial image). This custom image is hosted on the company artifact repository. To access to this repository we need to provide credentials.
The custom image is already supported by artillery with the use of WORKER_IMAGE_URL environnement variable.
What we need is a way to provide the repository credentials. This can be done with the use of the RepositoryCredentials in the container definition.
What i suggest is to add the following lines :

    if (process.env.REPOSITORY_CREDENTIALS_ARN) {
      artilleryContainerDefinition.repositoryCredentials = {credentialsParameter: process.env.REPOSITORY_CREDENTIALS_ARN};
    }

to this file : packages/artillery/lib/platform/aws-ecs/legacy/run-cluster.js in the function : ensureTaskExists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant