作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试使用 Lambda 函数来触发 Elastic Transcoder 作业,但我不断收到此错误消息:
AccessDeniedException: User: arn:aws:sts::xxx:assumed-role/xxxx/xxx is not authorized to perform: elastictranscoder:CreateJob on resource: arn:aws:elastictranscoder:xxxxx:pipeline/xxxxx
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1465486106000",
"Effect": "Allow",
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:GetLogEvents",
"logs:PutLogEvents",
"logs:DescribeLogStreams"
],
"Resource": [
"arn:aws:logs:*:*:*"
]
},
{
"Sid": "1",
"Effect": "Allow",
"Action": [
"s3:Put*",
"s3:ListBucket",
"s3:*MultipartUpload*",
"s3:Get*"
],
"Resource": "*"
},
{
"Sid": "2",
"Effect": "Allow",
"Action": "sns:Publish",
"Resource": "*"
},
{
"Sid": "3",
"Effect": "Deny",
"Action": [
"s3:*Delete*",
"s3:*Policy*",
"sns:*Remove*",
"sns:*Delete*",
"sns:*Permission*"
],
"Resource": "*"
}
]
}
AccessDeniedException
我该如何解决?
最佳答案
将您的政策更改为以下,然后尝试它会起作用
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1465486106000",
"Effect": "Allow",
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:GetLogEvents",
"logs:PutLogEvents",
"logs:DescribeLogStreams"
],
"Resource": [
"arn:aws:logs:*:*:*"
]
},
{
"Sid": "1",
"Effect": "Allow",
"Action": [
"elastictranscoder:*",
"s3:Put*",
"s3:ListBucket",
"s3:*MultipartUpload*",
"s3:Get*"
],
"Resource": "*"
},
{
"Sid": "2",
"Effect": "Allow",
"Action": "sns:Publish",
"Resource": "*"
},
{
"Sid": "3",
"Effect": "Deny",
"Action": [
"s3:*Delete*",
"s3:*Policy*",
"sns:*Remove*",
"sns:*Delete*",
"sns:*Permission*"
],
"Resource": "*"
}
]
}
关于amazon-web-services - AWS AccessDeniedException elastictranscoder :CreateJob,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37733993/
我遇到了一个问题,我在 VS 2012 上使用 Amazon SDK for .NET 4.5 我的问题是我的代码没有解析 ElasticTranscoder 命名空间 - 我安装了 SDK 3 次,
我的基础设施由 VPC 中的以下服务组成(显然 S3 和转码器除外): EC2(网络服务器) RDS(数据库) 使用 Node.js 的 Lambda 函数 S3 弹性转码器 场景如下: 用户直接将视
我正在尝试使用 Lambda 函数来触发 Elastic Transcoder 作业,但我不断收到此错误消息: AccessDeniedException: User: arn:aws:sts::xx
作为基础设施自动化的一部分,我们使用 cloudformation 来自动化 AWS 基础设施。我们也在利用 ElasticTranscoder 服务,因为我了解 cloudformation 但不提
我是一名优秀的程序员,十分优秀!