From <
# docs
Copy code
The name specified during resource creation is used in two key ways:

As a default prefix for the resource's physical name, assigned by the cloud provider.
To construct the Universal Resource Name (URN) used to track the resource across updates.

Note that the variable names you use for resource objects aren't used in any way for either logical or physical resource naming. The variable simply lets you refer to that resource elsewhere in your program.