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: Expose variables to set AMI share permisions #317

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

leigholiver
Copy link
Contributor

@leigholiver leigholiver commented Sep 24, 2024

Summary

Exposes the ami_ou_arns, ami_org_arns, and ami_users variables for configuration.
Resolves #30

Implementation details

Adds three entries to variables.tf for these variables, and pass them through to the underlying ebs_builders

Testing

I have built and deployed both the al2 and al2arm variants. Unfortunately the make tests command mentioned doesnt appear to exist but im happy to run any additional tests needed.

New tests cover the changes: no

Description for the changelog

Feature - Support AMI sharing

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@leigholiver leigholiver requested a review from a team as a code owner September 24, 2024 13:35
@mye956
Copy link
Contributor

mye956 commented Nov 4, 2024

Thanks @leigholiver for your contribution! I also tested this locally with AL1, AL2, AL2023, and AL2023 ARM and it seems to working as expected. Seems like this option was introduced on version v1.0.6 of packer-plugin-amazon.

Since we're requiring the version to be at least v1.2.8 already from this PR, this change looks pretty safe/good to me.

@mye956
Copy link
Contributor

mye956 commented Nov 4, 2024

You might need to format all of the packer files via a packer fmt.

@danehlim danehlim merged commit 1f59b08 into aws:main Nov 26, 2024
2 checks passed
@danehlim
Copy link
Contributor

Thank you again @leigholiver for your contribution! This pull request has now been merged.

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.

Expose variables to set AMI share permisions
3 participants