Permission for the bucket needs to be the entity name, not the name of the resource

This commit is contained in:
Christian van der Leeden 2019-12-18 23:59:59 +01:00
parent 25911efc51
commit c22a8f5f66
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ type terraformStorageBucketAcl struct {
func (_ *StorageBucketAcl) RenderTerraform(t *terraform.TerraformTarget, a, e, changes *StorageBucketAcl) error {
var roleEntities []string
roleEntities = append(roleEntities, fi.StringValue(e.Role)+":"+fi.StringValue(e.Name))
roleEntities = append(roleEntities, fi.StringValue(e.Role)+":"+fi.StringValue(e.Entity))
tf := &terraformStorageBucketAcl{
Bucket: fi.StringValue(e.Bucket),
RoleEntity: roleEntities,