尽管来自 bitbucket 的部署在下面返回错误,但我能够将 bitbucket 与 aws 链接。
Deployment Failed
The deployment failed because no IAM role with the IAM role name (arn:aws:iam::******:role/m30role) specified in this request was found. Make sure you are using the correct name of a service role that exists in your account. (Error code: IAM_ROLE_MISSING) Learn more
对此有任何想法吗?或者我应该检查aws的哪个部分
有关使用 AWS CodeDeploy 从 Bitbucket 设置部署的良好教程的任何建议。
政策
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"codedeploy:*",
"s3:*"
],
"Resource": "*"
}
]
}
信任关系
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "codedeploy.amazonaws.com",
"AWS": "arn:aws:iam::****:root"
},
"Action": "sts:AssumeRole",
"Condition": {
"StringEquals": {
"sts:ExternalId": "connection:****"
}
}
}
]
}
部署配置:CodeDeployDefault.OneAtATime
来自 bitbucket(部署到 AWS)的构建被上传到 s3 存储桶,我能够看到所有部署历史记录,但是所有构建再次失败。