-
Notifications
You must be signed in to change notification settings - Fork 1
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
[#274] Add project name to the IAM group names #275
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
It is maybe not needed, but should add a test for args.projectName.toLowerCase().replace(/\s/g, '-');
(e.g. add a space in the current projectDir = 'core test'
and add 1 assertion that the file does main.tf does NOT contains core test
but contains core-test
. 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides Xavier's comment about adding covered tests, the rest is LGTM 👍
Good point. I have added positive test here: 007ce2a In cases where the file doesn't contain the value, we don't yet have a helper, and adding one here might be excessive. What do you think? |
Also I wasn't clear earlier. After these changes, the directory name for the template output will change too. If a user chooses We could split the current project name variable into two: project name and project dir. This would keep the requested directory unchanged, and the generated project name would meet AWS requirements, which often don't allow spaces in names. However, I don't believe it's worth the effort. In most cases, people don't use directory names with spaces since it's not the norm for developers |
007ce2a
to
32b091e
Compare
What happened 👀
-
to make sure that we can use project name as variableProof Of Work 📹
Before the fix, I couldn't deploy the template to the company's AWS account since the groups had already been created by the Nexus project:
After the fix groups were created: