Skip to content

Conversation

@glasnt
Copy link
Collaborator

@glasnt glasnt commented Jul 4, 2024

Reported failures trying to delete deployments tell a tale of woe:

Error: Error setting IAM policy for cloudrun service (service): googleapi: 
Error 404: Resource (service) of kind 'SERVICE' in region (region) in
project (project) does not exist.

In theory, this is because the terraform destory is removing the google_cloud_run_v2_service before the google_cloud_run_service_iam_policy.

Given that, this PR adds a depends_on to the policy, which in theory should ensure a dependency graph where the policy is removed before the service.

Also bumps avocano version to current latest (dependency updates)

glasnt added 2 commits July 4, 2024 15:24
Attempts to reduce failure errors on destroy
@glasnt glasnt requested review from a team and donmccasland as code owners July 4, 2024 05:29
Copy link
Contributor

@NimJay NimJay left a comment

Choose a reason for hiding this comment

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

Thanks for doing this! Approved.

| database\_username | Cloud SQL database name | `string` | `"server"` | no |
| enable\_apis | Whether or not to enable underlying apis in this solution. | `bool` | `true` | no |
| image\_version | Version of the container image to use | `string` | `"v1.9.0"` | no |
| image\_version | Version of the container image to use | `string` | `"v1.10.3"` | no |
Copy link
Contributor

Choose a reason for hiding this comment

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

Rationale for change: lint was failing:

< | image\_version | Version of the container image to use | `string` | `"v1.9.0"` | no |
---
> | image\_version | Version of the container image to use | `string` | `"v1.10.3"` | no |

Copy link
Contributor

@NimJay NimJay Jul 8, 2024

Choose a reason for hiding this comment

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

We should be good to merge now.

@glasnt glasnt merged commit fd3502d into main Jul 8, 2024
@glasnt glasnt deleted the iam-dependency branch July 8, 2024 21:51
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