hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.77k stars 9.13k forks source link

IAM role arn fails regex validation for Cloudian S3 #39669

Open av-edgsle opened 3 hours ago

av-edgsle commented 3 hours ago

Description

I am using terraform aws provider against Cloudian S3 system. When using assume_role, terraform fails because Cloudian arn is a different format than aws. Assuming role works fine when using aws cli so I am guessing terraform shouldn't have an issue either.

Is it possible to skip the arn regex validation when using assume_role? Or are there any other workarounds?

References

Error: "assume_role.0.role_arn" (arn:aws:iam::ab8fcacd140e0b128730b1ea80943a4b:role/terraform-testing-role) is an invalid ARN: invalid account ID value (expecting to match regular expression: ^(aws|aws-managed|third-party|\d{12}|cw.{10})$)
│
│   with provider["registry.terraform.io/hashicorp/aws"],
│   on main.tf line 25, in provider "aws":
│   25:     role_arn = "arn:aws:iam::ab8fcacd140e0b128730b1ea80943a4b:role/terraform-testing-role"

Would you like to implement a fix?

None

github-actions[bot] commented 3 hours ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue