本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
相依性驗證
相依性驗證範本會執行 AWS FIS 動作,封鎖來自 Amazon EC2、Amazon ECS 和 Amazon EKS 工作負載的區域內相依性流量。將下列許可政策連接至執行角色。
{ "Version": "2012-10-17", "Statement": [ { "Sid": "SsmSendCommandOnDocuments", "Effect": "Allow", "Action": "ssm:SendCommand", "Resource": [ "arn:aws:ssm:*::document/AWSFIS-Run-Network-Packet-Loss-Sources", "arn:aws:ssm:*::document/AWSFIS-Run-Network-Packet-Loss-ECS" ] }, { "Sid": "SsmSendCommandOnInstances", "Effect": "Allow", "Action": "ssm:SendCommand", "Resource": [ "arn:aws:ec2:*:account-id:instance/*", "arn:aws:ssm:*:account-id:managed-instance/*", "arn:aws:ecs:*:account-id:task/*/*" ] }, { "Sid": "SsmListAndCancelCommands", "Effect": "Allow", "Action": [ "ssm:ListCommands", "ssm:CancelCommand" ], "Resource": "*" }, { "Sid": "Ec2DescribeForTargetResolution", "Effect": "Allow", "Action": [ "ec2:DescribeInstances", "ec2:DescribeSubnets" ], "Resource": "*" }, { "Sid": "EcsDescribeForTargetResolution", "Effect": "Allow", "Action": [ "ecs:DescribeTasks", "ecs:DescribeContainerInstances", "ecs:ListTasks" ], "Resource": [ "arn:aws:ecs:*:account-id:task/*/*", "arn:aws:ecs:*:account-id:container-instance/*/*", "arn:aws:ecs:*:account-id:cluster/*" ] }, { "Sid": "EksDescribeCluster", "Effect": "Allow", "Action": "eks:DescribeCluster", "Resource": "arn:aws:eks:*:account-id:cluster/*" }, { "Sid": "TargetResolutionByTags", "Effect": "Allow", "Action": "tag:GetResources", "Resource": "*" }, { "Sid": "FISExperimentLogging", "Effect": "Allow", "Action": [ "logs:CreateLogDelivery", "logs:GetLogDelivery", "logs:UpdateLogDelivery", "logs:DeleteLogDelivery", "logs:ListLogDeliveries" ], "Resource": "*" }, { "Sid": "FISExperimentLogGroupAccess", "Effect": "Allow", "Action": [ "logs:DescribeResourcePolicies", "logs:PutResourcePolicy", "logs:DescribeLogGroups" ], "Resource": "*" } ] }