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

feat: use resource account #15

Conversation

johanneswuerbach
Copy link
Contributor

@johanneswuerbach johanneswuerbach commented Mar 28, 2024

Use a resource account to inject credentials instead of directly injecting them into the driver.

This will allow us to use temporary credentials in the future.

So far the account role is fairly wide, but we can narrow it down in the future. As most resources need to provision GCP service accounts, the provisioner role needs to be always fairly powerful though.

@johanneswuerbach johanneswuerbach requested a review from a team as a code owner March 28, 2024 15:21
@@ -12,10 +44,11 @@ module "dns_basic" {

resource_packs_gcp_url = var.resource_packs_gcp_url
resource_packs_gcp_rev = var.resource_packs_gcp_rev
append_logs_to_error = true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We started to use this in Azure and it proved really valuable for debugging, so also enabling it for the examples and made it configurable for the modules.

@@ -24,4 +57,5 @@ module "dns_basic" {
resource "humanitec_resource_definition_criteria" "dns_basic" {
resource_definition_id = module.dns_basic.id
app_id = humanitec_application.example.id
force_delete = true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The criteria always need a force_delete, otherwise you can't destroy the stack as Humanitec waits for the app to be gone, but TF waits for the criteria to be deleted 😅

Copy link
Contributor

@mateuszjenek mateuszjenek left a comment

Choose a reason for hiding this comment

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

LGTM

@johanneswuerbach johanneswuerbach merged commit 297dacb into humanitec-architecture:main Mar 28, 2024
1 check passed
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.

2 participants