find better name for aws mixin

This commit is contained in:
jem 2020-03-09 20:02:13 +01:00
parent cd95a8b866
commit d604901ffd
4 changed files with 8 additions and 8 deletions

View file

@ -27,7 +27,7 @@ use_plugin("python.distutils")
default_task = "publish" default_task = "publish"
name = "ddadevops" name = "ddadevops"
version = "0.4.1.dev3" version = "0.4.1.dev6"
summary = "tools to support builds combining gopass, terraform, dda-pallet, aws & hetzner-cloud" summary = "tools to support builds combining gopass, terraform, dda-pallet, aws & hetzner-cloud"
description = __doc__ description = __doc__
authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")] authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")]

View file

@ -8,7 +8,7 @@ from .credential import gopass_credential_from_env_path, gopass_credential_from_
from .devops_build import DevopsBuild, create_devops_build_config, get_devops_build from .devops_build import DevopsBuild, create_devops_build_config, get_devops_build
from .devops_terraform_build import DevopsTerraformBuild, create_devops_terraform_build_config from .devops_terraform_build import DevopsTerraformBuild, create_devops_terraform_build_config
from .hetzner_mixin import HetznerMixin, add_hetzner_mixin_config from .hetzner_mixin import HetznerMixin, add_hetzner_mixin_config
from .aws_mixin import AwsMixin, add_aws_mixin_config from .aws_backend_properties_mixin import AwsBackendPropertiesMixin, add_aws_backend_properties_mixin_config
from .aws_mfa_mixin import AwsMfaMixin, add_aws_mfa_mixin_config from .aws_mfa_mixin import AwsMfaMixin, add_aws_mfa_mixin_config
from .dda_pallet_mixin import DdaPalletMixin, add_dda_pallet_mixin_config from .dda_pallet_mixin import DdaPalletMixin, add_dda_pallet_mixin_config

View file

@ -2,17 +2,17 @@ from python_terraform import *
from .devops_terraform_build import DevopsTerraformBuild from .devops_terraform_build import DevopsTerraformBuild
def add_aws_mixin_config(config, account_name): def add_aws_backend_properties_mixin_config(config, account_name):
config.update({'AwsMixin': config.update({'AwsBackendPropertiesMixin':
{'account_name': account_name}}) {'account_name': account_name}})
return config return config
class AwsMixin(DevopsTerraformBuild): class AwsBackendPropertiesMixin(DevopsTerraformBuild):
def __init__(self, project, config): def __init__(self, project, config):
super().__init__(project, config) super().__init__(project, config)
aws_mixin_config = config['AwsMixin'] aws_mixin_config = config['AwsBackendPropertiesMixin']
self.account_name = aws_mixin_config['account_name'] self.account_name = aws_mixin_config['account_name']
def backend_config(self): def backend_config(self):

View file

@ -2,7 +2,7 @@ from python_terraform import *
from boto3 import * from boto3 import *
from .credential import gopass_credential_from_env_path from .credential import gopass_credential_from_env_path
from .python_util import execute from .python_util import execute
from .aws_mixin import AwsMixin from .aws_backend_properties_mixin import AwsBackendPropertiesMixin
def add_aws_mfa_mixin_config(config, account_id, region, def add_aws_mfa_mixin_config(config, account_id, region,
@ -16,7 +16,7 @@ mfa_role='developer', mfa_account_prefix='', mfa_login_account_suffix='main'):
return config return config
class AwsMfaMixin(AwsMixin): class AwsMfaMixin(AwsBackendPropertiesMixin):
def __init__(self, project, config): def __init__(self, project, config):
super().__init__(project, config) super().__init__(project, config)