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

"Error: No target specified and no environment chosen" in AWS Fargate container #2671

Closed
manuelcarriernunesatsap opened this issue Apr 24, 2024 · 5 comments

Comments

@manuelcarriernunesatsap
Copy link

manuelcarriernunesatsap commented Apr 24, 2024

When artillery-script-02.yml is run via

$Env:TARGET_URL = 'http://asciiart.artillery.io:8080'
artillery run-fargate 'artillery-script-02.yml' --region='eu-central-1' --count=1 --output='report.json'

Error: No target specified and no environment chosen is output to the logs generated by the AWS Fargate container. The run-fargate-error-02 branch in the manuelcarriernunesatsap/artillery repo contains files and instructions to facilitate reproducing this.

Version info

Artillery: 2.0.10
Node.js: v20.12.2
OS: win32
@bernardobridge
Copy link
Contributor

Hey @manuelcarriernunesatsap 👋 !

Environment variables need to be propagated to Fargate containers using a dotenv file with the --dotenv flag. That's why it's erroring, since it would just resolve to undefined.

@manuelcarriernunesatsap
Copy link
Author

Thanks for the quick 💨 response, @bernardobridge 😃

Is that something that changed along the way? 💭

@bernardobridge
Copy link
Contributor

Hi @manuelcarriernunesatsap ! I don't think so, no 🤔, not for Fargate. Did you have a different experience at one point?

@manuelcarriernunesatsap
Copy link
Author

My possible experience would have occurred many months ago, which I can't remember. I asked to see if it was even possible that I have experienced such a thing.

Thanks, @bernardobridge .

@bernardobridge
Copy link
Contributor

Oh okay! Glad it's working now! 👍

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

2 participants