I found couple mentions of limits in the documentation:
apigateway - ARN length of a method with authorization 1600 bytes
API_Role - Maximum length of 2048
But is it possible to get ARN with 4000 characters or even more?
I need this to store in local DB, and I don't want to use something like MaxValue.
For more information about IDs, see IAM identifiers in the IAM User Guide. Length Constraints: Minimum length of 16. Maximum length of 128. The name identifying the instance profile.
Short description. The maximum limit for attaching a managed policy to an IAM role or user is 20. The maximum character size limit for managed policies is 6,144.
You can pass a maximum of 10 managed policy ARNs when you create a session. You can pass only one JSON policy document when you programmatically create a temporary session for a role or federated user.
You can add up to 10 users at one time. The number and size of IAM resources in an AWS account are limited.
I am not aware of any official source specifying a maximum possible length of an ARN. ARNs are primarily constrained by the length constraints on their componenents, specifically the resource, which varies in format and content from service to service. 2048 seems like a very safe value, as it is difficult if not impossible to imaging a circumstance where an ARN would need to be that long.
See Amazon Resource Names (ARNs) and AWS Service Namespaces for typical example ARNs. If there were a meaningful global maximum size of ARNs, this is where it should have been documented.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With