Home › Forums › AWS › AWS Certified DevOps Engineer Professional › IM Role to on-premise servers › Reply To: IM Role to on-premise servers
-
Hi Haridev,
Take note you cannot directly attach an IAM Role to your on-premises servers. You have to set up your on-premises servers as “on-premises instances” in CodeDeploy with a static IAM Role that your servers can assume.
In this scenario, we are using AWS CodeDeploy to automate the deployment process in your VPC and on your on-premises data center. You can install and configure CodeDeploy agents in your on-premises servers with an associated IAM Role that can be used to communicate with your AWS resources.
This process can be seen here:
The correct answer didn’t say “attach” but rather, “associate” which means two things.
You can also associate an IAM Service Role in AWS Systems Manager if you’re setting up a hybrid environment: https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-service-role.html
Regards,
Jon Bonso