Amazon cloudformation 无法为气流创建云形成堆栈

Amazon cloudformation 无法为气流创建云形成堆栈,amazon-cloudformation,airflow,amazon-sagemaker,Amazon Cloudformation,Airflow,Amazon Sagemaker,我跟随这个博客开始cloudformation堆栈 获取以下错误 API: iam:GetInstanceProfile User: arn:aws:sts::453333:assumed-role/xyz/AWSCloudFormation is not authorized to perform: iam:GetInstanceProfile on resource: instance profile AirflowInstanceProfile 我在我的iam角色中添加了以下内容 &qu

我跟随这个博客开始cloudformation堆栈

获取以下错误

API: iam:GetInstanceProfile User: arn:aws:sts::453333:assumed-role/xyz/AWSCloudFormation is not authorized to perform: iam:GetInstanceProfile on resource: instance profile AirflowInstanceProfile
我在我的iam角色中添加了以下内容

"Action": [
                "iam:AttachRolePolicy",
                "iam:CreateRole",
                "iam:DeleteRole",
                "iam:DeleteRolePolicy",
                "iam:DetachRolePolicy",
                "iam:GetRole",
                "iam:PassRole",
                "iam:PutRolePolicy",
                "iam:SetDefaultPolicyVersion",
                "iam:CreatePolicy",
                "iam:DeletePolicy",
                "iam:AddRoleToInstanceProfile",
                "iam:CreateInstanceProfile",
                "iam:DeleteInstanceProfile",
                "iam:RemoveRoleFromInstanceProfile"
            ],

有人能帮我解决这个错误吗?谢谢

iam:GetInstanceProfile
不在该操作列表中