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

tests/provider: IoT Topic Rule InvalidRequestException (GovCloud) #15763

Closed
YakDriver opened this issue Oct 21, 2020 · 1 comment · Fixed by #24395
Closed

tests/provider: IoT Topic Rule InvalidRequestException (GovCloud) #15763

YakDriver opened this issue Oct 21, 2020 · 1 comment · Fixed by #24395
Labels
partition/aws-us-gov Pertains to the aws-us-gov partition. service/iot Issues and PRs that pertain to the iot service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.

Comments

@YakDriver
Copy link
Member

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • 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
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

These tests fail on GovCloud:

--- FAIL: TestAccAWSIoTTopicRule_iot_analytics (14.44s)
--- FAIL: TestAccAWSIoTTopicRule_iot_events (14.96s)

All with the same error: InvalidRequestException: The iotevents service has(have) not been supported in region us-gov-west-1.

There is no PreCheck for this and is difficult/impossible to create since it is a feature of a service that is supported on GovCloud. Because of this, it would be another excellent place for skipping the test with the feature in hashicorp/terraform-plugin-sdk#592.

New or Affected Resource(s)

  • aws_iot_topic_rule

Terraform Configuration Files

resource "aws_iot_topic_rule" "rule" {
  name        = "test_rule"
  description = "Example rule"
  enabled     = true
  sql         = "SELECT * FROM 'topic/test'"
  sql_version = "2015-10-08"

  iot_events {
    input_name = "fake_input_name"
    role_arn   = aws_iam_role.iot_role.arn
    message_id = "fake_message_id"
  }
}

Debug Output

TestAccAWSIoTTopicRule_iot_events: resource_aws_iot_topic_rule_test.go:487: Step 1/1 error: Error running apply: 2020/10/21 03:15:44 [DEBUG] Using modified User-Agent: Terraform/0.12.29 HashiCorp-terraform-exec/0.10.0
        
        Error: error creating IoT Topic Rule (test_rule_bxco4): InvalidRequestException: The iotevents service has(have) not been supported in region us-gov-west-1. 
        
--- FAIL: TestAccAWSIoTTopicRule_iot_events (14.63s)

References

@YakDriver YakDriver added tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. partition/aws-us-gov Pertains to the aws-us-gov partition. labels Oct 21, 2020
@ghost ghost added the service/iot Issues and PRs that pertain to the iot service. label Oct 21, 2020
@github-actions
Copy link

github-actions bot commented Jun 5, 2022

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 Jun 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
partition/aws-us-gov Pertains to the aws-us-gov partition. service/iot Issues and PRs that pertain to the iot service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant