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

[Bug]: data source aws_batch_compute_environment _basic test failing #34145

Closed
drewmullen opened this issue Oct 27, 2023 · 3 comments
Closed
Assignees
Labels
bug Addresses a defect in current functionality. service/batch Issues and PRs that pertain to the batch service.

Comments

@drewmullen
Copy link
Collaborator

Terraform Core Version

1.6.2

AWS Provider Version

5.x

Affected Resource(s)

$ make testacc TESTS=TestAccBatchComputeEnvironmentDataSource_basic PKG=batch
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/batch/... -v -count 1 -parallel 20 -run='TestAccBatchComputeEnvironmentDataSource_basic'  -timeout 360m
=== RUN   TestAccBatchComputeEnvironmentDataSource_basic
=== PAUSE TestAccBatchComputeEnvironmentDataSource_basic
=== CONT  TestAccBatchComputeEnvironmentDataSource_basic
    compute_environment_data_source_test.go:22: Step 1/1 error: Error running apply: exit status 1
        
        Error: waiting for Batch Compute Environment (tf_acc_test_-6612379229554227511) create: unexpected state 'INVALID', wanted target 'VALID'. last error: CLIENT_ERROR - User: arn:aws:sts::<>:assumed-role/batch_tf_acc_test_-6612379229554227511/aws-batch is not authorized to perform: ecs:DescribeClusters on resource: arn:aws:ecs:us-east-2:<>:cluster/tf_acc_test_-6612379229554227511_Batch_cb71b752-20f3-3add-8226-8b8f0b49ccb4 because no identity-based policy allows the ecs:DescribeClusters action (Service: AmazonECS; Status Code: 400; Error Code: AccessDeniedException; Request ID: 07bded83-77dc-4136-8491-57e16efd7bf7; Proxy: null)
        
          with aws_batch_compute_environment.test,
          on terraform_plugin_test.tf line 70, in resource "aws_batch_compute_environment" "test":
          70: resource "aws_batch_compute_environment" "test" {
        
--- FAIL: TestAccBatchComputeEnvironmentDataSource_basic (122.80s)
FAIL
FAIL    github.com/hashicorp/terraform-provider-aws/internal/service/batch      124.796s

Expected Behavior

test should function

Actual Behavior

fails due to permissions issue

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

n/a

Steps to Reproduce

n/a

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

Yes

@drewmullen drewmullen added the bug Addresses a defect in current functionality. label Oct 27, 2023
@drewmullen drewmullen self-assigned this Oct 27, 2023
@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/batch Issues and PRs that pertain to the batch service. label Oct 27, 2023
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Oct 27, 2023
@drewmullen drewmullen removed the needs-triage Waiting for first response or review from a maintainer. label Oct 27, 2023
@justinretzolk
Copy link
Member

Closed by #34353

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/batch Issues and PRs that pertain to the batch service.
Projects
None yet
Development

No branches or pull requests

2 participants