sparse-intern-71089
04/24/2019, 6:12 PMbusy-umbrella-36067
04/24/2019, 6:17 PMlet rolePolicy = new aws.iam.RolePolicy(`${name}-s3-access`, {
role: role.id,
policy: {
Version: "2012-10-17",
Statement: [{
Effect: "Allow",
Action: [
"s3:ListBucket",
"s3:HeadBucket",
"s3:PutObject",
"s3:GetObject"
],
Resource: [
bucket.arn.apply(arn => arn),
bucket.arn.apply(arn => `${arn}/*`)
]
}]
}
}, {
parent: role
});
white-balloon-205
PolicyDocument
interface.No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by