Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve ADF version references in main template #351

Merged
merged 3 commits into from
Apr 14, 2021

Conversation

sbkok
Copy link
Collaborator

@sbkok sbkok commented Apr 12, 2021

Why?

For each new version of ADF, we need to update the version number in the
main template. However, as there are quite a few, it is likely to forget
one or search/replace another string that should not have matched.

What?

By adding the version number as a mapping, it can be updated quickly.
Reducing the number of times the version is repeated in the template to
two.

The first usage, in the Serverless Application Repository (SAR) metadata
is not able to use intrinsic CloudFormation functions unfortunately.
As described in the SAR Metadata property documentation.

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

**Why?**

For each new version of ADF, we need to update the version number in the
main template. However, as there are quite a few, it is likely to forget
one or search/replace another string that should not have matched.

**What?**

By adding the version number as a mapping, it can be updated quickly.
Reducing the number of times the version is repeated in the template to
two.

The first usage, in the Serverless Application Repository (SAR) metadata
is not able to use intrinsic CloudFormation functions unfortunately.
As described in the
[SAR Metadata property documentation](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-template-publishing-applications-metadata-properties.html).
deltagarrett
deltagarrett previously approved these changes Apr 12, 2021
Copy link

@deltagarrett deltagarrett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM : )

thomasmcgannon
thomasmcgannon previously approved these changes Apr 14, 2021
Copy link
Collaborator

@thomasmcgannon thomasmcgannon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@sbkok sbkok dismissed stale reviews from thomasmcgannon and deltagarrett via e3e7a0c April 14, 2021 15:14
Copy link

@deltagarrett deltagarrett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sbkok sbkok merged commit e16816e into awslabs:master Apr 14, 2021
@sbkok sbkok deleted the improvement/adf-version-references branch April 14, 2021 15:39
@sbkok sbkok added this to the v3.2.0 milestone Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants