def __init__(self, secret_key, region, service, date=None,
                 store_secret_key=True):

        self.region = region
        self.service = service
        self.date = date or datetime.utcnow().strftime('%Y%m%d')
        self.scope = '{}/{}/{}/aws4_request'.format(
                                            self.date,
                                            self.region,
                                            self.service)
        self.store_secret_key = store_secret_key
        self.secret_key = secret_key if self.store_secret_key else None
        self.key = self.generate_key(secret_key, self.region,
                                     self.service, self.date)
Tests that a SaltCloudSystemExit is raised when something other than
dataset/ETHPy150Open sam-washington/requests-aws4auth/requests_aws4auth/aws4signingkey.py/AWS4SigningKey.__init__--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/cloud/clouds/opennebula_test.py/OpenNebulaTestCase.test_secgroup_clone_function_error