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

Address runtime errors when importing authz resources #763

Merged
merged 4 commits into from
Nov 19, 2022

Conversation

naushadh
Copy link
Contributor

@naushadh naushadh commented Nov 8, 2022

Fixes #762

The validation and API expects the resource identifier to be made up of 3 parts, but we're accessing the 4th element which will always be undefined.

This results in a imports for these resource types failing with a cryptic error: "error: code = Canceled desc = context canceled"
In CI/CD environment, we can use helper modules to automatically install specific versions of GoLang and other system dependencies. For local development, not all devs/contributors may have the right GoLang or OS deps setup already. So we offer one using docker-compose.

This simplifies the (local) build process to this; all you need is docker + compose.

```bash
$ docker-compose run --rm app bash
$ make build
```
@naushadh
Copy link
Contributor Author

GitHub says I need maintainer approval to launch the checks for this PR. @mrparkers can I get approval to run workflows?

Copy link
Owner

@mrparkers mrparkers left a comment

Choose a reason for hiding this comment

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

LGTM, just had one comment

docker-compose.yml Outdated Show resolved Hide resolved
@mrparkers
Copy link
Owner

Sorry for taking so long to get around to this @naushadh. PRs from first-time contributors are gated to avoid potential abuse, such as using the GitHub Actions runner to mine cryptocurrency lol.

I've approved this PR to run so we should be able to make some progress on this. Thanks for submitting this PR!

@mrparkers mrparkers merged commit 36255bc into mrparkers:master Nov 19, 2022
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.

terraform import fails for resources within a client
2 participants