This application discloses a resource configuration method and apparatus. The method includes: obtaining, by a terminal, a slice attribute corresponding to a slice type of a first session, where the slice attribute corresponding to the slice type includes at least one of a security requirement or a latency requirement of the slice type; and performing resource configuration for the first session based on the slice attribute. In this way, a security requirement and/or a latency requirement of network slices can be implemented on a terminal side.