https://pulumi.com logo
#general
Title
# general
e

early-postman-62454

07/08/2022, 6:00 AM
bucket = s3.Bucket('my-testing-bucket') rp1 = aws.iam.RolePolicy( "my-test-policy", role=role.id, opts=pulumi.ResourceOptions(depends_on=[bucket]), policy=json.dumps({ "Version": "2012-10-17", "Statement": [ { "Action": ["s3:PutObject", "s3:ListBucket", "s3:GetObject"], "Effect": "Allow", "Resource": [bucket.arn], "Sid": "1" } ] }) )