Skip to content

feat: Add policy column to aws_efs_filesystems table#14672

Merged
kodiakhq[bot] merged 10 commits intocloudquery:mainfrom
cychiang:feat-add-efs-filesystem-policy-to-filesystems-table
Oct 20, 2023
Merged

feat: Add policy column to aws_efs_filesystems table#14672
kodiakhq[bot] merged 10 commits intocloudquery:mainfrom
cychiang:feat-add-efs-filesystem-policy-to-filesystems-table

Conversation

@cychiang
Copy link
Copy Markdown
Contributor

@cychiang cychiang commented Oct 18, 2023

Summary

resolves #14632

I'm looking for a way to reduce the duplicate implementations, for example, the following part is a way to get a service to resolve data for the table. It works well when a table relays on a single resolver. But if a table needs multiple resolver then might be a good way to do it.

	p := resource.Item.(types.FileSystemDescription)
	config := efs.DescribeFileSystemPolicyInput{
		FileSystemId: p.FileSystemId,
	}
	cl := meta.(*client.Client)
	svc := cl.Services(client.AWSServiceEfs).Efs

Use the following steps to ensure your PR is ready to be reviewed

  • Read the contribution guidelines 🧑‍🎓
  • Run make lint to ensure the proposed changes follow the coding style 🚨 (install golangci-lint here)
  • Run make test to ensure the proposed changes pass the tests 🧪
  • If changing a source plugin run make gen to ensure docs are up to date 📝
  • Ensure the status checks below are successful ✅

@cq-bot
Copy link
Copy Markdown
Contributor

cq-bot commented Oct 18, 2023

This PR has the following changes to source plugin(s) tables:

  • Table aws_efs_filesystems: column added with name file_system_policy and type utf8

@cychiang cychiang changed the title feat(aws): Add policy column to aws_efs_filesystems table feat: Add policy column to aws_efs_filesystems table Oct 18, 2023
@vercel
Copy link
Copy Markdown

vercel bot commented Oct 20, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
cloudquery-web ⬜️ Ignored (Inspect) Visit Preview Oct 20, 2023 3:57pm

Copy link
Copy Markdown
Collaborator

@bbernays bbernays left a comment

Choose a reason for hiding this comment

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

This PR is almost there! one last issues/change about the column name

@bbernays bbernays added the automerge Automatically merge once required checks pass label Oct 20, 2023
@kodiakhq kodiakhq bot merged commit 833b9c2 into cloudquery:main Oct 20, 2023
kodiakhq bot pushed a commit that referenced this pull request Oct 23, 2023
🤖 I have created a release *beep* *boop*
---


## [22.16.0](plugins-source-aws-v22.15.2...plugins-source-aws-v22.16.0) (2023-10-23)


### This Release has the Following Changes to Tables
- Table `aws_efs_filesystems`: column added with name `file_system_policy` and type `utf8`

### Features

* Add `policy` column to `aws_efs_filesystems` table ([#14672](#14672)) ([833b9c2](833b9c2))


### Bug Fixes

* Changed the condition to check for policies in policies table ([#13935](#13935)) ([f136331](f136331))
* **deps:** Update github.com/cloudquery/arrow/go/v14 digest to f46436f ([#14803](#14803)) ([f5248d7](f5248d7))
* **deps:** Update module github.com/cloudquery/codegen to v0.3.10 ([#14773](#14773)) ([98f3e2c](98f3e2c))
* **deps:** Update module github.com/cloudquery/codegen to v0.3.11 ([#14870](#14870)) ([4fa917d](4fa917d))
* Don't call GetFunctionCodeSigningConfig or GetRuntimeManagementConfig on Lambdas packaged as Images (`aws_lambda_functions`) ([#14729](#14729)) ([6fc30d3](6fc30d3))
* Handle `NotFound` error when syncing Subscriptions with deleted topic (`aws_sns_subscriptions`) ([#14771](#14771)) ([6fcf43d](6fcf43d))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/plugin/source/aws area/website automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Add EFS FileSystemPolicy to AWS source plugin

3 participants