diff --git a/docs/source/reference/config.rst b/docs/source/reference/config.rst index 2669aef0a1b..6c2fe2569a6 100644 --- a/docs/source/reference/config.rst +++ b/docs/source/reference/config.rst @@ -90,7 +90,7 @@ Available fields and semantics: # Advanced AWS configurations (optional). # Apply to all new instances but not existing ones. aws: - # Tags to assign to all instances launched by SkyPilot (optional). + # Tags to assign to all instances and buckets created by SkyPilot (optional). # # Example use case: cost tracking by user/team/project. # diff --git a/sky/data/storage.py b/sky/data/storage.py index 9e9de70fc27..5214799d2f3 100644 --- a/sky/data/storage.py +++ b/sky/data/storage.py @@ -1448,7 +1448,8 @@ def _create_s3_bucket(self, logger.info( f'Created S3 bucket {bucket_name!r} in {region or "us-east-1"}') - # add tags to the bucket + # Add AWS tags configured in config.yaml to the bucket. + # This is useful for cost tracking and external cleanup. bucket_tags = skypilot_config.get_nested(('aws', 'labels'), {}) if bucket_tags: s3_client.put_bucket_tagging(