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:
parent
a84823f597
commit
a6669c9e99
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue