mirror of https://github.com/pulumi/pulumi.git
20 lines
530 B
TypeScript
20 lines
530 B
TypeScript
import * as pulumi from "@pulumi/pulumi";
|
|
import * as aws_native from "@pulumi/aws-native";
|
|
|
|
const role = new aws_native.iam.Role("role", {
|
|
roleName: "ScriptIAMRole",
|
|
assumeRolePolicyDocument: {
|
|
Version: "2012-10-17",
|
|
Statement: [{
|
|
Effect: "Allow",
|
|
Action: "sts:AssumeRole",
|
|
Principal: {
|
|
Service: [
|
|
"cloudformation.amazonaws.com",
|
|
"gamelift.amazonaws.com",
|
|
],
|
|
},
|
|
}],
|
|
},
|
|
});
|