Amazon 身份和访问管理 (IAM) 可控制 Amazon Web Services (AWS) 资源的访问权限。以下示例 JSON 片段可显示访问 ArcGIS Enterprise 所使用的特定资源所需的 IAM 策略。
运行 ArcGIS Enterprise Cloud Builder for AWS
如果您运行 ArcGIS Enterprise Cloud Builder for AWS 应用程序或 ArcGIS Enterprise Cloud Builder Command Line Interface for Amazon Web Services 来创建部署,请按如下所述创建 IAM 策略并将其分配给 IAM 用户。您将使用此用户的凭据(例如访问密钥 ID 和保密访问密钥)登录到 Cloud Builder。
{ "Version": "2012-10-17", "Statement": [ { "Sid": "<statement-id1>", "Effect": "Allow", "Action": [ "rds:*", "events:PutRule", "logs:*", "dynamodb:*", "autoscaling:*", "acm:RequestCertificate", "acm:GetCertificate", "acm:ListCertificates", "acm:ImportCertificate", "events:PutEvents", "s3:*", "acm:AddTagsToCertificate", "cloudformation:*", "elasticloadbalancing:*", "acm:ListTagsForCertificate", "events:TestEventPattern", "events:PutPermission", "events:DescribeEventBus", "iam:*", "events:PutTargets", "acm:DescribeCertificate", "acm:RemoveTagsFromCertificate", "cloudwatch:*", "ssm:*", "lambda:*", "route53:*", "ec2:*", "events:RemovePermission" ], "Resource": "*" }, { "Sid": "<statement-id2>", "Effect": "Allow", "Action": "events:*", "Resource": "arn:aws:events:*:*:rule/*" } ] }
将 <statement-id> 值替换为您希望用于部署的 ID。
运行来自 Esri 的 CloudFormation 模板
运行 Esri 提供的 AWS CloudFormation 模板,请按如下所述创建 IAM 策略并将其分配给 IAM 用户。
{ "Version": "2012-10-17", "Statement": [ { "Sid": "<statement-id1>", "Effect": "Allow", "Action": [ "rds:*", "events:PutRule", "logs:*", "dynamodb:*", "autoscaling:*", "acm:RequestCertificate", "acm:GetCertificate", "acm:ListCertificates", "acm:ImportCertificate", "events:PutEvents", "s3:*", "acm:AddTagsToCertificate", "cloudformation:*", "elasticloadbalancing:*", "acm:ListTagsForCertificate", "events:TestEventPattern", "events:PutPermission", "events:DescribeEventBus", "iam:*", "events:PutTargets", "acm:DescribeCertificate", "acm:RemoveTagsFromCertificate", "cloudwatch:*", "ssm:*", "lambda:*", "ec2:*", "events:RemovePermission" ], "Resource": "*" }, { "Sid": "<statement-id2>", "Effect": "Allow", "Action": "events:*", "Resource": "arn:aws:events:*:*:rule/*" } ] }
将 <statement-id> 值替换为您希望用于部署的 ID。
将 Portal for ArcGIS 内容目录存储在 S3 存储段中
要将 Portal for ArcGIS 内容目录存储在 Amazon Simple Storage Service (S3) 存储段中,您需要一个具有以下 IAM 策略的 IAM 用户或角色:
{ "Version": "2012-10-17", "Statement": [ { "Sid": "<statement-id>", "Effect": "Allow", "Action": [ "s3:Get*", "s3:PutObject", "s3:ListBucket", "s3:CreateBucket", "s3:DeleteObject" ], "Resource": [ "arn:aws:s3:::<cache-bucket-name>/*", "arn:aws:s3:::<cache-bucket-name>" ] } ] }
将尖括号 (< >) 内的值替换为部署特定值。
2012-10-17 为此处显示的策略文档格式的版本。如果更改此版本日期,则可能还需要更改文档格式。
将 ArcGIS Server 配置存储目录存储在 S3 和 DynamoDB 中
要使用 AWS 存储服务存储 ArcGIS Server 配置存储目录,您需要一个具有以下 IAM 策略的 IAM 用户或角色:
{ "Version":"2012-10-17", "Statement":[ { "Sid":"<statement-id1>", "Action":[ "s3:*" ], "Effect":"Allow", "Resource":[ "arn:aws:s3:::arcgis-config-store-*", "arn:aws:s3:::arcgis-config-store-*/*" ] }, { "Sid":"<statement-id2>", "Action":[ "dynamodb:*" ], "Effect":"Allow", "Resource":[ "arn:aws:dynamodb:*:*:table/ArcGISConfigStores", "arn:aws:dynamodb:*:*:table/ArcGISConfigStore.*" ] } ] }
将尖括号 (< >) 内的值替换为部署特定值。
2012-10-17 为此处显示的策略文档格式的版本。如果更改此版本日期,则可能还需要更改文档格式。
将缓存存储在 S3 存储段中
要将 S3 存储段注册为云存储以用于存储和访问地图和图像缓存,您的 IAM 用户或角色至少需要具有以下 IAM 策略:
{ "Version": "2012-10-17", "Statement": [ { "Sid": "<statement-id>", "Effect": "Allow", "Action": [ "s3:PutObject", "s3:GetObject", "s3:ListBucket", "s3:GetBucketAcl", "s3:GetObjectVersion" ], "Resource": [ "arn:aws:s3:::<cache-bucket-name>/*", "arn:aws:s3:::<cache-bucket-name>" ] } ] }
将尖括号 (< >) 内的值替换为部署特定值。
2012-10-17 为此处显示的策略文档格式的版本。如果更改此版本日期,则可能还需要更改文档格式。
将 S3 存储段用作大数据文件共享
要将 S3 存储段注册为大数据文件共享,您的 IAM 用户或角色至少需要具有以下 IAM 策略:
{ "Version": "2012-10-17", "Statement": [ { "Sid": "<statement-id>", "Effect": "Allow", "Action": [ "s3:PutObject", "s3:GetObject", "s3:ListBucket", "s3:CreateBucket", "s3:DeleteBucket", "s3:AbortMultipartUpload" ], "Resource": [ "arn:aws:s3:::<bdfs-bucket-name>/*", "arn:aws:s3:::<bdfs-bucket-name>" ] } ] }
将尖括号 (< >) 内的值替换为部署特定值。
2012-10-17 为此处显示的策略文档格式的版本。如果更改此版本日期,则可能还需要更改文档格式。
将 S3 存储段用作栅格存储
要将 S3 存储段注册为栅格存储,您的 IAM 用户或角色至少需要具有以下 IAM 策略:
{ "Version": "2012-10-17", "Statement": [ { "Sid": "<statement-id>", "Effect": "Allow", "Action": [ "s3:PutObject", "s3:GetObject", "s3:ListBucket", "s3:GetBucketAcl", "s3:GetObjectVersion" ], "Resource": [ "arn:aws:s3:::<cache-bucket-name>/*", "arn:aws:s3:::<cache-bucket-name>" ] } ] }
将尖括号 (< >) 内的值替换为部署特定值。
2012-10-17 为此处显示的策略文档格式的版本。如果更改此版本日期,则可能还需要更改文档格式。