fix backend init
This commit is contained in:
parent
1585f15582
commit
577c717a87
2 changed files with 6 additions and 0 deletions
|
@ -36,6 +36,8 @@ class Aws(Validateable, CredentialMappingDefault):
|
|||
result = {}
|
||||
if self.aws_as_backend:
|
||||
result = {
|
||||
"access_key": self.aws_access_key,
|
||||
"secret_key": self.aws_secret_key,
|
||||
"bucket": self.aws_bucket,
|
||||
"key": self.__bucket_key__(),
|
||||
"region": self.aws_region,
|
||||
|
|
|
@ -41,6 +41,8 @@ def test_should_calculate_backend_config():
|
|||
{
|
||||
"module": "dns_aws",
|
||||
"stage": "prod",
|
||||
"aws_access_key": "aws_access_key",
|
||||
"aws_secret_key": "aws_secret_key",
|
||||
"aws_bucket": "meissa-configuration",
|
||||
"aws_bucket_kms_key_id": "arn:aws:kms:eu-central-1:907507348333:alias/meissa-configuration",
|
||||
"aws_region": "eu-central-1",
|
||||
|
@ -48,6 +50,8 @@ def test_should_calculate_backend_config():
|
|||
)
|
||||
)
|
||||
assert {
|
||||
"access_key": "aws_access_key",
|
||||
"secret_key": "aws_secret_key",
|
||||
"bucket": "meissa-configuration",
|
||||
"key": "prod/dns_aws",
|
||||
"kms_key_id": "arn:aws:kms:eu-central-1:907507348333:alias/meissa-configuration",
|
||||
|
|
Loading…
Reference in a new issue