Versuch AWS CodeDeploy Agenten auf meiner EC2-Instanzaws s3 Befehl antwortet mit 403 verboten
aws s3 cp s3://aws-codedeploy-ap-southeast-2/latest/install . --region ap-southeast-2
fatal error: An error occurred (403) when calling the HeadObject operation: Forbidden
Die IAM Rolle für die Instanz hat Richtliniendokument
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"s3:Get*",
"s3:List*"
],
"Effect": "Allow",
"Resource": "*"
}
]
}
und Vertrauen Beziehung
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": {
"Service": "codedeploy.ap-southeast-2.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
zu installieren
Ist 'aws s3 ls s3: // aws-codedeploy-ap-S-2 --region ap-Südost-2' arbeiten? –
'wget https: // aws-codedeploy-ap-southeast-2.s3.amazonaws.com/latest/install' gearbeitet. –