Skip to content

Conversation

@dlpzx
Copy link
Contributor

@dlpzx dlpzx commented Sep 3, 2025

Issue #, if available:
If CustomIdentifier is not used when deploying SDLF the data-lakes-on-aws/sdlf-cicd/template-cicd-domain-roles.yaml creation will fail because it will try to create an empty SSM param.

Description of changes:

1. template-cicd-domain-roles.yaml:

• Modified rCustomIdentifierSsm to always create the SSM parameter, using "FALSE" as default when pCustomIdentifier is empty

2. sdlf-foundations/src/template.yaml:

• Added UseCustomSuffix condition that checks if pCustomSuffix is not equal to "FALSE"
• Updated all resource names (KMS alias, queues, Lambda functions, DynamoDB tables) to conditionally include the suffix only when UseCustomSuffix is true

3. sdlf-team/src/template.yaml:

• Added UseCustomOctagonSuffix condition that checks if pCustomOctagonSuffix is not equal to "FALSE"
• Updated Lambda environment variables to conditionally include the suffix only when UseCustomOctagonSuffix is true

Now when pCustomSuffix or pCustomOctagonSuffix is set to "FALSE", the custom suffix won't be appended to resource names, while any other value (including the resolved SSM parameter) will be used as the
suffix.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@dlpzx dlpzx marked this pull request as ready for review September 3, 2025 08:11
@dlpzx dlpzx force-pushed the fix/conditional-pCustomIdentifier branch from 058320e to c3d1676 Compare September 3, 2025 09:20
@dlpzx dlpzx merged commit d12f75f into main Sep 3, 2025
5 of 6 checks passed
@dlpzx dlpzx deleted the fix/conditional-pCustomIdentifier branch October 1, 2025 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant