Search code examples
amazon-web-servicesaws-cloudformationamazon-iamroles

Is there a way to modify AWS existing resource using cloudformation?


I'm trying to modify a trust relationship in an existing AWS IAM role. Is there a way to do that using cloudformation?


Solution

  • Adding to @Marcin 's response, once you've imported your resource to CFN, use the following documentation on performing CFN Stack Updates, specifically it is considered best practice (1) to update using CFN Change Sets method

    (1) - https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/best-practices.html#cfn-best-practices-changesets