Skip to content

Commit

Permalink
Ignore SecretsManager transform (#7863)
Browse files Browse the repository at this point in the history
  • Loading branch information
silv-io committed Mar 15, 2023
1 parent eb15fd7 commit 3cb5069
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -22,6 +22,7 @@
LOG = logging.getLogger(__name__)
SERVERLESS_TRANSFORM = "AWS::Serverless-2016-10-31"
EXTENSIONS_TRANSFORM = "AWS::LanguageExtensions"
SECRETSMANAGER_TRANSFORM = "AWS::SecretsManager-2020-07-23"


def parse_template(template: str) -> dict:
Expand Down Expand Up @@ -63,6 +64,9 @@ def transform_template(template: dict, parameters: list, stack=None) -> Dict:
result = apply_serverless_transformation(result)
elif transformation["Name"] == EXTENSIONS_TRANSFORM:
continue
elif transformation["Name"] == SECRETSMANAGER_TRANSFORM:
# https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-secretsmanager.html
LOG.warning("%s is not yet supported. Ignoring.", SECRETSMANAGER_TRANSFORM)
else:
result = execute_macro(
parsed_template=result,
Expand Down

0 comments on commit 3cb5069

Please sign in to comment.