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: Add KMS support for EFS and S3 in Root module #48

Merged
merged 2 commits into from
Mar 19, 2024

Conversation

brent-anyscale
Copy link
Collaborator

KMS support was enabled for S3, but additional functionality to support S3 Bucket Keys to manage costs, as well as EFS encryption was added.

This commit also includes a new example for KMS encryption.

Additional changes include:

  • VPC Subnet name changes to remove deprecated double lookup call.
  • README updates
  • Add functional-verify to example outputs
  • Upgrade pre-commit from tfsec (deprecated) to trivy
  • tflint updates
  • e2e test updates

On branch brent/kms-support
Changes to be committed:
modified: .pre-commit-config.yaml
modified: .tflint.hcl
modified: CHANGELOG.md
modified: README.md
modified: examples/README.md
modified: examples/anyscale-v2-commonname/outputs.tf
modified: examples/anyscale-v2-existing-s3/outputs.tf
modified: examples/anyscale-v2-existing-vpc/outputs.tf
modified: examples/anyscale-v2-kitchensink/main.tf
modified: examples/anyscale-v2-kitchensink/outputs.tf
new file: examples/anyscale-v2-kms/README.md
new file: examples/anyscale-v2-kms/data.tf
new file: examples/anyscale-v2-kms/main.tf
new file: examples/anyscale-v2-kms/outputs.tf
new file: examples/anyscale-v2-kms/variables.tf
new file: examples/anyscale-v2-kms/versions.tf
modified: examples/anyscale-v2-privatesubnets/outputs.tf
modified: main.tf
modified: modules/aws-anyscale-efs/README.md
modified: modules/aws-anyscale-efs/variables.tf
modified: modules/aws-anyscale-iam/README.md
modified: modules/aws-anyscale-iam/iam-policies-data.tf
modified: modules/aws-anyscale-memorydb/README.md
modified: modules/aws-anyscale-s3-policy/README.md
modified: modules/aws-anyscale-s3-policy/examples/README.md
modified: modules/aws-anyscale-s3-policy/variables.tf
modified: modules/aws-anyscale-s3/README.md
modified: modules/aws-anyscale-s3/main.tf
modified: modules/aws-anyscale-s3/variables.tf
modified: modules/aws-anyscale-securitygroups/README.md
modified: modules/aws-anyscale-securitygroups/main.tf
modified: modules/aws-anyscale-vpc/README.md
modified: modules/aws-anyscale-vpc/main.tf
modified: modules/aws-anyscale-vpc/subnets-private.tf
modified: modules/aws-anyscale-vpc/subnets-public.tf
modified: test/anyscale-v2-e2e-private-test/variables.tf
modified: variables.tf

Pull request checklist

Please check if your PR fulfills the following requirements:

  • pre-commit has been run
  • Tests for the changes have been added (for bug fixes / features)
  • All tests passing
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Pull Request Type

  • Bugfix
  • New feature
  • Refactoring (no functional changes)
  • Documentation change
  • Other (please describe):

Does this introduce a breaking change?

  • Yes
  • No

KMS support was enabled for S3, but additional functionality to support
S3 Bucket Keys to manage costs, as well as EFS encryption was added.

This commit also includes a new example for KMS encryption.

Additional changes include:
- VPC Subnet name changes to remove deprecated double lookup call.
- README updates
- Add functional-verify to example outputs
- Upgrade pre-commit from tfsec (deprecated) to trivy
- tflint updates
- e2e test updates

On branch brent/kms-support
Changes to be committed:
	modified:   .pre-commit-config.yaml
	modified:   .tflint.hcl
	modified:   CHANGELOG.md
	modified:   README.md
	modified:   examples/README.md
	modified:   examples/anyscale-v2-commonname/outputs.tf
	modified:   examples/anyscale-v2-existing-s3/outputs.tf
	modified:   examples/anyscale-v2-existing-vpc/outputs.tf
	modified:   examples/anyscale-v2-kitchensink/main.tf
	modified:   examples/anyscale-v2-kitchensink/outputs.tf
	new file:   examples/anyscale-v2-kms/README.md
	new file:   examples/anyscale-v2-kms/data.tf
	new file:   examples/anyscale-v2-kms/main.tf
	new file:   examples/anyscale-v2-kms/outputs.tf
	new file:   examples/anyscale-v2-kms/variables.tf
	new file:   examples/anyscale-v2-kms/versions.tf
	modified:   examples/anyscale-v2-privatesubnets/outputs.tf
	modified:   main.tf
	modified:   modules/aws-anyscale-efs/README.md
	modified:   modules/aws-anyscale-efs/variables.tf
	modified:   modules/aws-anyscale-iam/README.md
	modified:   modules/aws-anyscale-iam/iam-policies-data.tf
	modified:   modules/aws-anyscale-memorydb/README.md
	modified:   modules/aws-anyscale-s3-policy/README.md
	modified:   modules/aws-anyscale-s3-policy/examples/README.md
	modified:   modules/aws-anyscale-s3-policy/variables.tf
	modified:   modules/aws-anyscale-s3/README.md
	modified:   modules/aws-anyscale-s3/main.tf
	modified:   modules/aws-anyscale-s3/variables.tf
	modified:   modules/aws-anyscale-securitygroups/README.md
	modified:   modules/aws-anyscale-securitygroups/main.tf
	modified:   modules/aws-anyscale-vpc/README.md
	modified:   modules/aws-anyscale-vpc/main.tf
	modified:   modules/aws-anyscale-vpc/subnets-private.tf
	modified:   modules/aws-anyscale-vpc/subnets-public.tf
	modified:   test/anyscale-v2-e2e-private-test/variables.tf
	modified:   variables.tf
@brent-anyscale brent-anyscale requested a review from a team as a code owner March 19, 2024 17:03
@github-actions github-actions bot added documentation Improvements or additions to documentation examples terraform unittests labels Mar 19, 2024
@brent-anyscale brent-anyscale added the enhancement New feature or request label Mar 19, 2024
Changes to be committed:
	modified:   examples/anyscale-v2-commonname/main.tf
	modified:   examples/anyscale-v2-kms/main.tf
	modified:   modules/aws-anyscale-iam/iam-policies-data.tf
	modified:   modules/aws-anyscale-iam/main.tf
	modified:   modules/aws-anyscale-securitygroups/main.tf
	modified:   modules/aws-anyscale-vpc/main.tf
	modified:   modules/aws-anyscale-vpc/subnets-public.tf
@brent-anyscale brent-anyscale merged commit 3a80b95 into main Mar 19, 2024
3 checks passed
@brent-anyscale brent-anyscale deleted the brent/kms-support branch March 19, 2024 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request examples terraform unittests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants