IAM permission denied when attaching role during blue‑green EC2 deployment
Problem – IAM Permission Denied When Attaching Role During Blue‑Green EC2 Deployment A fully automated blue‑green deployment creates a fresh EC2 fleet, assigns a pre‑defined IAM role to each instance, switches the load balancer target group, and finally terminates the old fleet. During the AssociateIamInstanceProfile step the deployment script aborts with: ClientError: An error occurred (UnauthorizedOperation) when … Read more