Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is maximum length of AWS ARN?

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.

like image 640
Vladimir Avatar asked Jul 08 '18 17:07

Vladimir


People also ask

What is the maximum length for an instance profile name in AWS IAM?

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.

How long can an IAM policy be?

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.

What is the maximum number of managed policies that can be assigned to a user or role in IAM?

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.

What is the maximum number of users in AWS?

You can add up to 10 users at one time. The number and size of IAM resources in an AWS account are limited.


1 Answers

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.

like image 120
Michael - sqlbot Avatar answered Nov 04 '22 07:11

Michael - sqlbot