diff --git a/dashboard/services/settingsService.ts b/dashboard/services/settingsService.ts index 70b0643a6..ee5966057 100644 --- a/dashboard/services/settingsService.ts +++ b/dashboard/services/settingsService.ts @@ -374,5 +374,5 @@ const settingsService = { ); } }; - +// export default settingsService; diff --git a/policy.json b/policy.json index b41a15df0..c39f4dfd9 100644 --- a/policy.json +++ b/policy.json @@ -1,92 +1,93 @@ { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "1", - "Effect": "Allow", - "Action": [ - "ec2:Describe*", - "elasticloadbalancing:Describe*", - "autoscaling:Describe*", - "s3:Describe*", - "ecs:List*", - "ce:GetCostAndUsage", - "ce:GetCostForecast", - "apigateway:GET", - "dynamodb:Describe*" - ], - "Resource": "*" - }, - { - "Sid": "2", - "Effect": "Allow", - "Action": [ - "lambda:List*", - "dynamodb:List*", - "cloudfront:List*", - "iam:List*", - "ecs:Describe*", - "glacier:List*", - "sqs:List*", - "route53:List*", - "sns:List*", - "s3:Get*" - ], - "Resource": "*" - }, - { - "Sid": "3", - "Effect": "Allow", - "Action": [ - "acm:List*", - "mq:List*", - "cloudwatch:Get*", - "cloudtrail:LookupEvents", - "datapipeline:List*", - "eks:List*", - "elasticache:Describe*", - "es:List*", - "logs:Describe*", - "rds:Describe*", - "cloudwatch:Describe*" - ], - "Resource": "*" - }, - { - "Sid": "4", - "Effect": "Allow", - "Action": [ - "glue:Get*", - "organizations:Describe*", - "iam:Get*", - "kinesis:List*", - "kms:List*", - "kms:Describe*", - "redshift:Describe*", - "tag:Get*", - "route53:List*", - "support:Describe*", - "swf:List*", - "config:BatchGetResourceConfig" - ], - "Resource": "*" - }, - { - "Sid": "5", - "Effect": "Allow", - "Action": [ - "sns:List*", - "lambda:List*", - "kms:List*", - "pricing:GetProducts", - "ecr:Describe*", - "elasticfilesystem:Describe*", - "rds:Describe*", - "elasticache:List*", - "eks:Describe*", - "elasticloadbalancing:DescribeTags" - ], - "Resource": "*" - } - ] + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "1", + "Effect": "Allow", + "Action": [ + "apigateway:GET", + "cloudwatch:GetMetricStatistics", + "cloudfront:ListDistributions", + "cloudfront:ListTagsForResource", + "cloudwatch:DescribeAlarms", + "cloudwatch:ListTagsForResource", + "cloudwatch:ListDashboards", + "cloudwatch:ListMetricStreams", + "dynamodb:ListTables", + "sts:GetCallerIdentity", + "dynamodb:ListTagsOfResource", + "ec2:DescribeNetworkAcls", + "ec2:DescribeAddresses", + "config:BatchGetResourceConfig", + "ec2:DescribeInstances", + "ec2:DescribeInternetGateways", + "ec2:DescribeKeyPairs", + "ec2:DescribeNetworkInterfaces", + "ec2:DescribePlacementGroups", + "ec2:DescribeSecurityGroups", + "ec2:DescribeSnapshots", + "ec2:DescribeSpotInstanceRequests", + "ec2:DescribeSubnets", + "ec2:DescribeVolumes", + "ec2:DescribeVpcEndpoints", + "ec2:DescribeVpcPeeringConnections", + "ec2:DescribeVpcs", + "ecr:DescribeRepositories", + "ecr:ListTagsForResource", + "ecs:ListClusters", + "ecs:ListContainerInstances", + "eks:ListClusters", + "eks:ListTagsForResource", + "eks:DescribeCluster", + "elasticache:DescribeCacheClusters", + "elasticache:ListTagsForResource", + "elasticloadbalancing:DescribeLoadBalancers", + "elasticloadbalancing:DescribeTags", + "elasticloadbalancing:DescribeListeners", + "elasticloadbalancing:DescribeTargetGroups", + "iam:ListGroups", + "iam:ListInstanceProfiles", + "iam:ListOpenIDConnectProviders", + "iam:GetOpenIDConnectProvider", + "iam:ListPolicies", + "iam:ListPolicyTags", + "iam:ListRoles", + "iam:ListSAMLProviders", + "iam:ListSAMLProviderTags", + "kinesis:ListStreams", + "kms:ListKeys", + "kms:ListResourceTags", + "kms:DescribeKey", + "rds:DescribeDBInstanceAutomatedBackups", + "rds:DescribeDBClusterSnapshots", + "rds:DescribeDBClusters", + "rds:DescribeDBProxyEndpoints", + "rds:ListTagsForResource", + "rds:DescribeDBInstances", + "rds:DescribeDBProxies", + "rds:DescribeDBSnapshots", + "redshift:DescribeEventSubscriptions", + "s3:GetBucketTagging", + "servicecatalog:SearchProductsAsAdmin", + "sns:ListTopics", + "sns:ListTagsForResource", + "sqs:ListQueues", + "sqs:ListQueueTags", + "ssm:DescribeMaintenanceWindows", + "pricing:GetProducts", + "logs:DescribeLogGroups", + "autoscaling:DescribeAutoScalingGroups", + "ecs:ListTaskDefinitions", + "elasticfilesystem:DescribeFileSystems", + "elasticfilesystem:ListTagsForResource", + "iam:ListInstanceProfileTags", + "lambda:ListFunctions", + "lambda:ListTags", + "es:ListDomainNames", + "es:DescribeDomains", + "s3:ListBucket" + ], + "Resource": "*" + } + ] }