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]: AWS Provider's Service Catalog service usage bug in China #34790

Open
nefnohack opened this issue Dec 7, 2023 · 1 comment
Open

[Bug]: AWS Provider's Service Catalog service usage bug in China #34790

nefnohack opened this issue Dec 7, 2023 · 1 comment
Labels
bug Addresses a defect in current functionality. partition/aws-cn Pertains to the aws-cn partition. service/servicecatalog Issues and PRs that pertain to the servicecatalog service.

Comments

@nefnohack
Copy link

nefnohack commented Dec 7, 2023

Terraform Core Version

latest

AWS Provider Version

latest

Affected Resource(s)

When we create an aws_servicecatalog_portfolio_share resource, terraform require that the format of the ARN must be "aws", but in China region this format should be "aws-cn"

Expected Behavior

no error

Actual Behavior

creating Service Catalog Portfolio Share: ValidationException: 1 validation error detected: Value 'arn:aws-cn:organizations::130741415728:ou/o-q7gtpq7wi5/ou-3c01-51fq9zbl' at 'organizationNode.value' failed to satisfy constraint: Member must satisfy regular expression pattern: (^[0-9]{12}$)|(^arn:aws:organizations::\d{12}:organization\/o-[a-z0-9]{10,32})|(^o-[a-z0-9]{10,32}$)|(^arn:aws:organizations::\d{12}:ou\/o-[a-z0-9]{10,32}\/ou-[0-9a-z]{4,32}-[0-9a-z]{8,32}$)|(^ou-[0-9a-z]{4,32}-[a-z0-9]{8,32}$)
│  status code: 400, request id: a9a3f0da-d5f0-49db-832c-cb1f99ed6870
│ 
│   with aws_servicecatalog_portfolio_share.this["ou-3c01-51fq9zbl"],
│   on [main.tf](https://command-center.aws.a2z.org.cn/main.tf) line 8, in resource "aws_servicecatalog_portfolio_share" "this":
│    8: resource "aws_servicecatalog_portfolio_share" "this" {

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

provider "aws" {
  region = "cn-north-1"
}

Steps to Reproduce

resource "aws_servicecatalog_portfolio_share" "example" {
  principal_id = "arn:aws-cn:organizations::012345678910:ou/o-xxxxxxxxxxx/ou-xxxx-xxxxxxxx"
  portfolio_id = aws_servicecatalog_portfolio.example.id
  type         = "ORGANIZATIONAL_UNIT"
}

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

@nefnohack nefnohack added the bug Addresses a defect in current functionality. label Dec 7, 2023
Copy link

github-actions bot commented Dec 7, 2023

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/servicecatalog Issues and PRs that pertain to the servicecatalog service. label Dec 7, 2023
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Dec 7, 2023
@justinretzolk justinretzolk added partition/aws-cn Pertains to the aws-cn partition. and removed needs-triage Waiting for first response or review from a maintainer. labels Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Addresses a defect in current functionality. partition/aws-cn Pertains to the aws-cn partition. service/servicecatalog Issues and PRs that pertain to the servicecatalog service.
Projects
None yet
Development

No branches or pull requests

2 participants