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

Do we keep the Container App module or archive it? #131

Open
kov117 opened this issue Feb 9, 2024 · 15 comments
Open

Do we keep the Container App module or archive it? #131

kov117 opened this issue Feb 9, 2024 · 15 comments
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@kov117
Copy link
Contributor

kov117 commented Feb 9, 2024

It was previously discussed outside of Github, that this repo only makes one resource and our standard is that a repo should make more than one resource., so by default the option was to simply delete or archive. However since we do not have any recording of that discussion, then it makes sense to have an issue where we can either further discuss it or confirm wether or not to we delete/archieve this repo.

@kov117 kov117 added the help wanted Extra attention is needed label Feb 9, 2024
@kov117
Copy link
Contributor Author

kov117 commented Feb 9, 2024

@equinor/terraform-baseline @BouvetMorten any thoughts or comments regarding this.

@BouvetMorten
Copy link

Can you explain what the reasoning is for the rule of one resource?
I would argue that it gives value to have a module with some examples of how to set up the resource.
There's a lot of attributes that you can set, and a multiple ways to set it.
You can set default values according to best practices even if it's only one resource.
And terraform documentation can be a bit lacking.

But I am a bit conflicted in that maybe what I'm asking for are some examples.
And maybe there are better ways of doing that than having a module?

@kov117
Copy link
Contributor Author

kov117 commented Feb 9, 2024

i see what you are saying and i do agree, what did you have in mind regarding better ways of having examples ? as to why the rule, i can honestly say i cannot remember or find information as to why it is again we have that rule 😅 maybe someone from the team @equinor/terraform-baseline could help and remind me again why that is ?

@hknutsen
Copy link
Member

hknutsen commented Feb 9, 2024

If the module simplifies the creating of the resource drastically, then it can make sense.

For example, a Key Vault module that only creates a Key Vault module would only make sense if it configures the Key Vault in a way that is drastically different from the defaults, for example disable public access by default, enable RBAC instead of access policies etc.

If the module is a simple wrapper around the resource that adds no real value, then using the resource directly instead is easier.

Vaguely inspired by this documentation.

@BouvetMorten
Copy link

Right now the module does not do anything drastically different from the defaults.
Only value it brings at the moment is that it's an example of how to dynamically create multiple containers in the container app.

@kov117
Copy link
Contributor Author

kov117 commented Feb 21, 2024

Is it safe to assume then that we agrre to just archive the container app repo ? @equinor/terraform-baseline

@hknutsen hknutsen transferred this issue from equinor/terraform-azurerm-container-app Apr 4, 2024
@hknutsen hknutsen changed the title Do we keep the Container App repo or do we archive it Do we keep the Container App module or archive it? Apr 4, 2024
@hknutsen hknutsen added the question Further information is requested label Apr 4, 2024
@hknutsen
Copy link
Member

hknutsen commented Apr 4, 2024

Once this issue has been closed, we could repurpose this module to create a Container App environment and a diagnostic setting: hashicorp/terraform-provider-azurerm#25426

Alternatively, use the AzAPI provider to create the Container App environment instead.

@kov117
Copy link
Contributor Author

kov117 commented Apr 4, 2024

i will go ahead and archive the container app module as well as close this issue.

@kov117 kov117 closed this as completed Apr 4, 2024
@hknutsen
Copy link
Member

hknutsen commented Apr 4, 2024

I see how my last comment was unclear 😅

I meant that the possibility of repurposing this module to create a Container App environment and diagnostic setting instead of a simple Container App is a reason to keep this issue open and continue discussing.

@kov117
Copy link
Contributor Author

kov117 commented Apr 4, 2024

Ah i get it 😆 then i will reopen this issue and the container app aswell

@kov117 kov117 reopened this Apr 4, 2024
Copy link
Contributor

github-actions bot commented Jul 4, 2024

There has been no activity on this issue for 60 days. stale label will be added. If no additional activity occurs, the issue will be closed in 14 days.

@github-actions github-actions bot added the stale label Jul 4, 2024
@helenakallekleiv
Copy link
Contributor

This issue is still under discussion.

@helenakallekleiv
Copy link
Contributor

@equinor/terraform-baseline-maintainers Investigate if we could use container app environment and diagn. setting as main module, and repurpose the container app resource as a submodule.

@sebastianlolv
Copy link
Contributor

We could make it like the Proof of Concept in the Key Vault module, where the main module uses both an Container App Environment + Container App. Then create two submodules. One for the container app environment and one for the container app. So if you only need one of each you can just create the simple main module, but if you need multiple container apps in one container app environment or multiple environments with different container apps going to different environments you can use the submodules?

@helenakallekleiv
Copy link
Contributor

We could make it like the Proof of Concept in the Key Vault module, where the main module uses both an Container App Environment + Container App. Then create two submodules. One for the container app environment and one for the container app. So if you only need one of each you can just create the simple main module, but if you need multiple container apps in one container app environment or multiple environments with different container apps going to different environments you can use the submodules?

I've started on a POC for this suggestion. I'll link the PR here when its ready.

@helenakallekleiv helenakallekleiv self-assigned this Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants