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

ec2: Create security group with tags in the spec #2026

Merged

Conversation

justinmir
Copy link

@justinmir justinmir commented Mar 29, 2024

Description of your changes

Resource tags are used to ensure that only IAM roles with the right access can modify the resources. This ensures that the security groups will have the right tags from creation time. Without this change, IAM policy based on tags may fail to run subsequent steps of security group creation.

This change makes security groups created with the tags rather than waiting for the first observation / update to add tags.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

Tested on our own internal production fork and staging environments.

Resource tags are used to ensure that only IAM roles with the right
access can modify the resources. This ensures that the security groups
will have the right tags from creation time. Without this change,
IAM policy based on tags may fail to run subsequent steps of security
group creation.

Signed-off-by: justin.miron <justin.miron@reddit.com>
@justinmir justinmir marked this pull request as ready for review March 31, 2024 02:45
@justinmir justinmir marked this pull request as draft March 31, 2024 02:45
@justinmir justinmir marked this pull request as ready for review April 1, 2024 17:32
Copy link
Collaborator

@MisterMX MisterMX left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you very much @justinmir!

@MisterMX MisterMX merged commit ddd940a into crossplane-contrib:master Apr 8, 2024
9 checks passed
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.

None yet

2 participants