When do I need to have CAPABILITY_NAMED_IAM

前端 未结 2 608
走了就别回头了
走了就别回头了 2021-01-04 19:53

I was editing my CloudFormation templates and suddenly AWS tells me I need CAPABILITY_NAMED_IAM. I am curious as to which change triggers this?

What is

相关标签:
2条回答
  • 2021-01-04 20:49

    You've added a resource of type AWS::IAM::Role to your resources section. This tells CloudFormation to create an IAM Role. In order to create IAM resources, you need to supply CAPABILITY_IAM or CAPABILITY_NAMED_IAM. It's an acknowledgement from you to CloudFormation that you understand that you are creating resources that can affect permissions in your AWS account.

    0 讨论(0)
  • 2021-01-04 20:56

    When are CAPABILITIES_IAM/CAPABILITIES_NAMED_IAM Required

    According to CloudFormation CreateStack Parameters, one of these is required when your Template includes any of the following o:

    AWS::IAM::AccessKey
    AWS::IAM::Group
    AWS::IAM::InstanceProfile
    AWS::IAM::Policy
    AWS::IAM::Role
    AWS::IAM::User
    AWS::IAM::UserToGroupAddition 
    

    When to use CAPABILITIES_NAMED_IAM instead of CAPABILITIES_IAM

    When any of your IAM resources have a custom name, such as a RoleName then CAPABILITIES_NAMED_IAM is required.

    Why are these required?

    The Capabilites are there to ensure you realize that you're creating IAM resources, that these will modify the permissions on your account, and that you have reviewed these resources and their permissions as necessary.

    0 讨论(0)
提交回复
热议问题