Fixes a bug in registering child resources of the SyncedFolder component which manifests to users as an error. See:
10
Users may encounter an error like the following:
error: Duplicate resource URN
'urn:pulumi:dev::synced-folder-aws-yaml::synced-folder:index:S3BucketFolder$aws:s3/bucketObject:BucketObject::index.html';
try giving it a unique name
This error is caused by registering multiple child resources under the same name, in this case index.html. Fixing this by only changing the resource name however introduces a regression, users will would resource deletes and creates like so:
To fix this, we use the aliases resource option. This ensures the resource synced-folder-index.html is registered with an alias for the old name index.html, which allows Pulumi to rename the URN instead of planning a create and delete.
Users will encounter an error "Duplicate resource alias" if more than one resource is registered, so an input disableManagedObjectAliases is added to disabling the alias to the legacy name.
Fixes a bug in registering child resources of the SyncedFolder component which manifests to users as an error. See:
10
Users may encounter an error like the following:
This error is caused by registering multiple child resources under the same name, in this case
index.html
. Fixing this by only changing the resource name however introduces a regression, users will would resource deletes and creates like so:To fix this, we use the aliases resource option. This ensures the resource
synced-folder-index.html
is registered with an alias for the old nameindex.html
, which allows Pulumi to rename the URN instead of planning a create and delete.Users will encounter an error "Duplicate resource alias" if more than one resource is registered, so an input
disableManagedObjectAliases
is added to disabling the alias to the legacy name.