ram:CreateResourceShare

Write

ram:CreateResourceShare is a Write access-level action in the ram service. Grants permission to create a resource share with provided resource(s) and/or principal(s)

Resource types

This action does not support resource-level permissions; use "Resource": "*" in your policy.

Condition keys

Keys you can use in the Condition block of a policy that grants ram:CreateResourceShare.

aws:RequestTag/${TagKey} String

Filters access by the tags that are passed in the request when creating or tagging a resource share. If users don't pass these specific tags, or if they don't specify tags at all, the request fails

aws:TagKeys ArrayOfString

Filters access by the tag keys that are passed when creating or tagging a resource share

ram:AllowsExternalPrincipals Bool

Filters access by resource shares that allow or deny sharing with external principals. For example, specify true if the action can only be performed on resource shares that allow sharing with external principals. External principals are AWS accounts that are outside of its AWS organization

ram:Principal String

Filters access by format of the specified principal

ram:RequestedAllowsExternalPrincipals Bool

Filters access by the specified value for 'allowExternalPrincipals'. External principals are AWS accounts that are outside of its AWS Organization

ram:RequestedResourceType String

Filters access by the specified resource type

ram:ResourceArn ARN

Filters access by the specified ARN

ram:RetainSharingOnAccountLeaveOrganization Bool

Filters access by RetainSharingOnAccountLeaveOrganization value within ResourceShareConfiguration that is set on resource share

Example IAM policy

A minimal policy that allows ram:CreateResourceShare. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowRamCreateResourceShare",
      "Effect": "Allow",
      "Action": "ram:CreateResourceShare",
      "Resource": "*"
    }
  ]
}

Related actions in ram

View all ram actions →