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

fix: test name override #143

Merged
merged 1 commit into from
Dec 21, 2023
Merged

fix: test name override #143

merged 1 commit into from
Dec 21, 2023

Conversation

jta
Copy link
Contributor

@jta jta commented Dec 19, 2023

Typically we rely on Cloudformation to pick resource names for us. In
some cases however we need stable identifiers, for example IAM role
names that must be assumed from our end, or functions for which we need
to create a log group upfront.

In those cases, we can't necessarily rely on the stack name.
Cloudformation names have a maximum length of 128 characters, which far
exceeds the name limits for most resources in AWS. We need to provide an
override for passing a name that abides by the limits of all the
resources present in a given template.

This change ended up being a bit involved because I had to change the
interface of our setup module. We now create three variables on setup:

  • a stack_name which is 128 characters long
  • an id which is 64 characters long
  • a short identifier which is 32 characters long

We then pass in these variables as necessary to exercise the limits of
our templates.

@jta jta force-pushed the joao/nameoverride branch 22 times, most recently from 1b120d3 to fff80e2 Compare December 20, 2023 01:01
This commit tests `NameOverride`.

Typically we rely on Cloudformation to pick resource names for us. In
some cases however we need stable identifiers, for example IAM role
names that must be assumed from our end, or functions for which we need
to create a log group upfront.

In those cases, we can't necessarily rely on the stack name.
Cloudformation names have a maximum length of 128 characters, which far
exceeds the name limits for most resources in AWS. We need to provide an
override for passing a name that abides by the limits of all the
resources present in a given template.

This change ended up being a bit involved because I had to change the
interface of our setup module. We now create three variables on setup:

- a `stack_name` which is 128 characters long
- an `id` which is 64 characters long
- a `short` identifier which is 32 characters long

We then pass in these variables as necessary to exercise the limits of
our templates.
@jta jta marked this pull request as ready for review December 20, 2023 17:44
@jta jta merged commit 55fd901 into main Dec 21, 2023
14 checks passed
@jta jta deleted the joao/nameoverride branch December 21, 2023 18:24
Copy link

🎉 This PR is included in version 1.5.0-beta.8 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Copy link

🎉 This PR is included in version 1.5.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants