Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

'604800' violates constraint 'constraints/storage.softDeletePolicySeconds'

While creating a GCS bucket using python code I am getting below error

cmd = "gcloud auth application-default login >$null 2>&1"
returned_value = subprocess.call(cmd, shell=True)
# Initialize the client
storage_client = storage.Client(project="03114")
# Bucket name and region
bucket_name = "automationbuckettesting-name"
region_name = "us-west1"
bucket = storage_client.create_bucket(bucket_name,location=region_name)
 
 
Error:
'604800' violates constraint 'constraints/storage.softDeletePolicySeconds'
0 1 276