dazzling-sundown-39670
10/26/2020, 5:52 PMError putting S3 Grants: InvalidArgument: Invalid id
. I've been looking at this: https://www.pulumi.com/docs/reference/pkg/aws/s3/bucket/#using-acl-policy-grants
Any suggestions? Code in comments ➡️const user = new aws.iam.User('backup-user');
const accessKey = new aws.iam.AccessKey(
'backup-user-access-key',
{
user: user.name,
},
{
parent: user,
},
);
const bucket = new aws.s3.Bucket(
'backup-bucket',
{
grants: [
{
id: user.id, // also tried user.uniqueId
type: 'CanonicalUser',
permissions: ['FULL_CONTROL'],
},
{
type: 'Group',
permissions: ['READ', 'WRITE'],
uri: '<http://acs.amazonaws.com/groups/s3/LogDelivery>',
},
],
},
{
parent: user,
},
);
breezy-butcher-78604
10/27/2020, 7:27 AMdazzling-sundown-39670
10/27/2020, 7:44 AMbreezy-butcher-78604
10/27/2020, 7:47 AMdazzling-sundown-39670
10/27/2020, 1:11 PMbreezy-butcher-78604
10/27/2020, 1:24 PM