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

fix: only load queue environments when connected to a queue #264

Merged
merged 1 commit into from
Mar 29, 2024

Conversation

AWS-Samuel
Copy link
Contributor

@AWS-Samuel AWS-Samuel commented Mar 29, 2024

What was the problem/requirement? (What/Why)

Previously, on the first time loading a submitter without the farm/queue set, users would get an error like:

Error Traceback: An error occurred (AccessDeniedException) when calling the ListQueueEnvironments operation: User: arn:aws:sts::<account>:assumed-role/AmazonDeadlineCloudStudioUserRole/DeadlineSession-********* is not authorized to perform: deadline:ListQueueEnvironments on resource: arn:aws:deadline:us-west-2:<account>:farm//queue/

The error makes it sound like an issue with the IAM role but it's actually an issue with the resource we're trying to access, which does not exist (malformed ARN)

What was the solution? (How)

Check if we have a queue and farm before looking for queue environments

What is the impact of this change?

Less errors!

How was this change tested?

Tested within a DCC context and confirmed the error went away, and that once I selected a farm and queue, the queue environment field was populated

Was this change documented?

What does this question mean?

Is this a breaking change?

No!

@AWS-Samuel AWS-Samuel requested a review from a team as a code owner March 29, 2024 22:38
Signed-off-by: Samuel Anderson <119458760+AWS-Samuel@users.noreply.github.com>
@AWS-Samuel AWS-Samuel merged commit ea1e617 into mainline Mar 29, 2024
18 checks passed
@AWS-Samuel AWS-Samuel deleted the samuel/queue_env_fix branch March 29, 2024 22:59
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

Successfully merging this pull request may close these issues.

3 participants