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: OpsWorks service not supported in GovCloud #15812

Closed
YakDriver opened this issue Oct 23, 2020 · 1 comment · Fixed by #15811
Closed

tests/provider: OpsWorks service not supported in GovCloud #15812

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

Comments

@YakDriver
Copy link
Member

YakDriver commented Oct 23, 2020

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 fails on GovCloud:


TestAccAWSOpsworksApplication
TestAccAWSOpsworksCustomLayer
TestAccAWSOpsworksCustomLayer
TestAccAWSOpsworksCustomLayer
TestAccAWSOpsworksGangliaLayer
TestAccAWSOpsworksGangliaLayer
TestAccAWSOpsworksHAProxyLayer
TestAccAWSOpsworksHAProxyLayer
TestAccAWSOpsworksInstance
TestAccAWSOpsworksInstance
TestAccAWSOpsworksJavaAppLayer
TestAccAWSOpsworksJavaAppLayer
TestAccAWSOpsworksMemcachedLayer
TestAccAWSOpsworksMemcachedLayer
TestAccAWSOpsworksMysqlLayer
TestAccAWSOpsworksMysqlLayer
TestAccAWSOpsworksNodejsAppLayer
TestAccAWSOpsworksNodejsAppLayer
TestAccAWSOpsworksPermission
TestAccAWSOpsworksPermission
TestAccAWSOpsworksPhpAppLayer
TestAccAWSOpsworksPhpAppLayer
TestAccAWSOpsworksRailsAppLayer
TestAccAWSOpsworksRailsAppLayer
TestAccAWSOpsworksRdsDbInstance
TestAccAWSOpsworksStaticWebLayer
TestAccAWSOpsworksStaticWebLayer
TestAccAWSOpsworksUserProfile

With this error: Error creating IAM Role tf-acc-test-6659550291927672356_opsworks_service: MalformedPolicyDocument: Invalid principal in policy: "SERVICE":"opsworks.amazonaws.com".

Although this is an IAM error, it occurs because the OpsWork service is not available in GovCloud.

New or Affected Resource(s)

  • aws_opsworks_stack
  • aws_opsworks_custom_layer
  • aws_opsworks_ganglia_layer
  • aws_opsworks_haproxy_layer
  • aws_opsworks_instance
  • aws_opsworks_static_web_layer
  • aws_opsworks_php_app_layer
  • aws_opsworks_java_app_layer
  • aws_opsworks_memcached_layer
  • aws_opsworks_mysql_layer
  • aws_opsworks_nodejs_app_layer
  • aws_opsworks_permission
  • aws_opsworks_user_profile
  • aws_opsworks_rails_app_layer
  • aws_opsworks_rds_db_instance

Terraform Configuration Files

Example config:

resource "aws_opsworks_rds_db_instance" "tf-acc-opsworks-db" {
  stack_id = aws_opsworks_stack.tf-acc.id

  rds_db_instance_arn = aws_db_instance.bar.arn
  db_user             = "yakdriver"
  db_password         = "PR15811"
}

Debug Output

TestAccAWSOpsworksApplication_basic: resource_aws_opsworks_application_test.go:22: Step 1/3 error: Error running apply: 2020/10/22 15:47:27 [DEBUG] Using modified User-Agent: Terraform/0.12.29 HashiCorp-terraform-exec/0.10.0
        
        Error: Error creating IAM Role tf-acc-test-6659550291927672356_opsworks_service: MalformedPolicyDocument: Invalid principal in policy: "SERVICE":"opsworks.amazonaws.com"
        	status code: 400, request id: cc1ec12a-ffef-4c5f-ab15-25dd981c73f7

--- FAIL: TestAccAWSOpsworksApplication_basic (48.71s)

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 23, 2020
@ghost ghost added the service/opsworks Issues and PRs that pertain to the opsworks service. label Oct 23, 2020
@ghost
Copy link

ghost commented Nov 27, 2020

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Nov 27, 2020
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/opsworks Issues and PRs that pertain to the opsworks 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