Skip to content

Instantly share code, notes, and snippets.

@ahmad2x4
Created May 18, 2020 00:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmad2x4/c9f9fbcf6d3342ceb1207699186f7d9b to your computer and use it in GitHub Desktop.
Save ahmad2x4/c9f9fbcf6d3342ceb1207699186f7d9b to your computer and use it in GitHub Desktop.
Pulumi sample infra source code part 5
const instanceProfileRole = new aws.iam.Role("eb-ec2-role", {
name: "eb-ec2-role",
description: "Role for EC2 managed by EB",
assumeRolePolicy: pulumi.interpolate`{
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
"Principal": {
"Service": "ec2.amazonaws.com"
},
"Effect": "Allow",
"Sid": ""
}
]
}`,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment