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

Lint TRE cost tags #3061

Merged
merged 3 commits into from
Jan 11, 2023
Merged

Lint TRE cost tags #3061

merged 3 commits into from
Jan 11, 2023

Conversation

tamirkamara
Copy link
Collaborator

What is being addressed

We have been checking that each TRE resource has the tre_id tag as that is the common one between all entities (like workspace, workspace service, etc.).
Ideally we should lint each TRE level for its respective tag requirements.

How is this addressed

  • Upgrade SuperLint to 4.10 to include a new TFLint version which is required for complex tags like we do (with a local definition)
  • Add TFLint definition files for each level that describe the required tags
  • Add CI steps to run SuperLinter with the TFLint definitions when needed
  • A couple of fix-ups on missing tags

@github-actions
Copy link

github-actions bot commented Jan 5, 2023

Unit Test Results

0 tests   0 ✔️  0s ⏱️
0 suites  0 💤
0 files    0

Results for commit 22bf27d.

♻️ This comment has been updated with latest results.

@tamirkamara tamirkamara force-pushed the tamirkamara/superlint-tre-cost-tags branch from 833fa47 to 9cbd83f Compare January 5, 2023 09:26
Copy link
Contributor

@guybartal guybartal left a comment

Choose a reason for hiding this comment

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

Looks great, much better now!

@tamirkamara tamirkamara force-pushed the tamirkamara/superlint-tre-cost-tags branch from 9cbd83f to 22bf27d Compare January 11, 2023 05:04
@tamirkamara tamirkamara enabled auto-merge (squash) January 11, 2023 05:05
@tamirkamara
Copy link
Collaborator Author

/test-force-approve

@github-actions
Copy link

🤖 pr-bot 🤖

✅ Marking tests as complete (for commit 22bf27d)

(in response to this comment from @tamirkamara)

@tamirkamara tamirkamara merged commit 351d4ad into main Jan 11, 2023
@tamirkamara tamirkamara deleted the tamirkamara/superlint-tre-cost-tags branch January 11, 2023 05:16
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