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

upd: aws-anyscale-s3-policy module to support custom policies #54

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

brent-anyscale
Copy link
Collaborator

The custom policies were not being passed from the root module to the sub-module. This change adds the ability to pass in custom modules from the root module.

This may replace the existing S3 Policy on the Anyscale S3 bucket

Additional updates include a large rewrite of the s3-policy module to include:

  • Pre-defined S3 Policy template file
  • Renamed variables to be more descriptive
  • Reworked examples/tests

Lastly, this also includes an updated kitchensink example to show how to use the custom policy feature.

On branch brent/update-s3policy
Changes to be committed:
modified: .pre-commit-config.yaml
modified: README.md
modified: examples/anyscale-v2-kitchensink/README.md
modified: examples/anyscale-v2-kitchensink/main.tf
modified: examples/anyscale-v2-kitchensink/variables.tf
modified: main.tf
modified: modules/aws-anyscale-s3-policy/README.md
deleted: modules/aws-anyscale-s3-policy/examples/README.md
modified: modules/aws-anyscale-s3-policy/examples/main.tf
modified: modules/aws-anyscale-s3-policy/examples/outputs.tf
modified: modules/aws-anyscale-s3-policy/examples/variables.tf
modified: modules/aws-anyscale-s3-policy/main.tf
new file: modules/aws-anyscale-s3-policy/predefined_s3_policy.tpl
modified: modules/aws-anyscale-s3-policy/test/README.md
deleted: modules/aws-anyscale-s3-policy/test/anyscale-test/main.tf
deleted: modules/aws-anyscale-s3-policy/test/anyscale-test/outputs.tf
deleted: modules/aws-anyscale-s3-policy/test/anyscale-test/variables.tf
deleted: modules/aws-anyscale-s3-policy/test/anyscale-test/versions.tf
modified: modules/aws-anyscale-s3-policy/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

This may replace the S3 policy on the existing S3 bucket

The custom policies were not being passed from the root module to the
sub-module. This change adds the ability to pass in custom modules from
the root module.

Additional updates include a large rewrite of the s3-policy module to include:
- Pre-defined S3 Policy template file
- Renamed variables to be more descriptive
- Reworked examples/tests

Lastly, this also includes an updated kitchensink example to show how
to use the custom policy feature.

On branch brent/update-s3policy
Changes to be committed:
	modified:   .pre-commit-config.yaml
	modified:   README.md
	modified:   examples/anyscale-v2-kitchensink/README.md
	modified:   examples/anyscale-v2-kitchensink/main.tf
	modified:   examples/anyscale-v2-kitchensink/variables.tf
	modified:   main.tf
	modified:   modules/aws-anyscale-s3-policy/README.md
	deleted:    modules/aws-anyscale-s3-policy/examples/README.md
	modified:   modules/aws-anyscale-s3-policy/examples/main.tf
	modified:   modules/aws-anyscale-s3-policy/examples/outputs.tf
	modified:   modules/aws-anyscale-s3-policy/examples/variables.tf
	modified:   modules/aws-anyscale-s3-policy/main.tf
	new file:   modules/aws-anyscale-s3-policy/predefined_s3_policy.tpl
	modified:   modules/aws-anyscale-s3-policy/test/README.md
	deleted:    modules/aws-anyscale-s3-policy/test/anyscale-test/main.tf
	deleted:    modules/aws-anyscale-s3-policy/test/anyscale-test/outputs.tf
	deleted:    modules/aws-anyscale-s3-policy/test/anyscale-test/variables.tf
	deleted:    modules/aws-anyscale-s3-policy/test/anyscale-test/versions.tf
	modified:   modules/aws-anyscale-s3-policy/variables.tf
@github-actions github-actions bot added documentation Improvements or additions to documentation examples terraform unittests labels Oct 4, 2024
@brent-anyscale brent-anyscale added bug Something isn't working terraform-module-s3policy labels Oct 4, 2024
Copy link
Member

@hongchaodeng hongchaodeng left a comment

Choose a reason for hiding this comment

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

LGTM

This seems to be breaking change though. Might need to point that out in release note.

@brent-anyscale
Copy link
Collaborator Author

image It's in the release notes, and bolded at the top. Any concerns with that?

@hongchaodeng
Copy link
Member

Great!
My negligence.

@hongchaodeng hongchaodeng merged commit adeb5cd into main Oct 7, 2024
3 checks passed
@hongchaodeng hongchaodeng deleted the brent/update-s3policy branch October 7, 2024 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation examples terraform terraform-module-s3policy unittests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants