backend/remote-state/gcs: Don't enable versioning on new buckets.

Enabling versioning without setting up lifecycle management leads to
every lock file being archived, slowly accruing useless data.
This commit is contained in:
Florian Forster 2017-10-04 10:56:33 +02:00 committed by James Bardin
parent a84823f597
commit a6669c9e99
1 changed files with 1 additions and 2 deletions

View File

@ -139,8 +139,7 @@ func (b *gcsBackend) ensureBucketExists() error {
}
attrs := &storage.BucketAttrs{
VersioningEnabled: true,
Location: b.region,
Location: b.region,
}
return b.storageClient.Bucket(b.bucketName).Create(b.storageContext, b.projectID, attrs)