Skip to content

avoid creating kms key twice #6

@hrodmn

Description

@hrodmn

We need to just create the kms key once instead of once for each secret.

❌  MAAP-STAC-auth-dev failed: ValidationError: Template format error: The Outputs section contains duplicate Export names: [maap-stac-auth-key]. Specify a unique name for each export.

The _create_secret method runs _create_kms_key():

encryption_key=self._create_kms_key(service_id),

Then we run _create_secret twice (for user client and service client). Just needs a small refactor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions