You can use the dedicated entity ‘Product Attributes’ to import and create attributes in your Magento 2 store. The step-by-step guide with sample tables can be found inside the  Improved Import & Export Guide List blog post.