es:AttachDataSource

Write

es:AttachDataSource is a Write access-level action in the es service. Grants permission to attach a data source to an OpenSearch Application

Resource types

ARNs that es:AttachDataSource can be scoped to in an IAM policy.

arn:${Partition}:opensearch:${Region}:${Account}:application/${AppId}
application

Condition keys

Keys you can use in the Condition block of a policy that grants es:AttachDataSource.

aws:ResourceTag/${TagKey} String

Filters access based on the tags associated with the resource

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowEsAttachDataSource",
      "Effect": "Allow",
      "Action": "es:AttachDataSource",
      "Resource": "*"
    }
  ]
}

Related actions in es

View all es actions →