This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -e | |
| # Creates Service Role for CodeDeploy | |
| if aws iam get-role --role-name AWSCodeDeployServiceRole | |
| then | |
| echo "AWSCodeDeployServiceRole already exists" | |
| else | |
| # CodeDeploy | |
| cat >/tmp/TrustPolicy.json <<EOF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -e | |
| # This script creates Service Roles for various AWS Services so that they | |
| # can assume the corresponding role and perform the necessary tasks in your account | |
| SERVICE_ROLE_MAPPING=( | |
| "autoscaling.amazonaws.com AWSServiceRoleForAutoScaling" | |
| "ecs.amazonaws.com AWSServiceRoleForECS" | |
| "elasticloadbalancing.amazonaws.com AWSServiceRoleForElasticLoadBalancing" | |
| "elasticmapreduce.amazonaws.com AWSServiceRoleForEMRCleanup" |