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

Add new manage_ec2_instance role #123

Merged
merged 39 commits into from
Dec 9, 2024

Conversation

mandar242
Copy link
Contributor

This adds a new role to create a ec2 instance with customizable configuration.
See: https://issues.redhat.com/browse/ACA-1959

@mandar242 mandar242 marked this pull request as draft November 20, 2024 00:24
roles/ec2_instance_create/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create/defaults/main.yml Outdated Show resolved Hide resolved
roles/ec2_instance_create/README.md Outdated Show resolved Hide resolved
@mandar242 mandar242 marked this pull request as ready for review November 21, 2024 02:21
roles/ec2_instance_create/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create/tasks/main.yml Outdated Show resolved Hide resolved
roles/ec2_instance_create/tasks/main.yml Outdated Show resolved Hide resolved
roles/ec2_instance_create/tasks/main.yml Outdated Show resolved Hide resolved
roles/ec2_instance_create/README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@alinabuzachis alinabuzachis left a comment

Choose a reason for hiding this comment

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

Since we are here, shouldn't we also provide a playbook for this role?

roles/ec2_instance_create/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create/defaults/main.yml Outdated Show resolved Hide resolved
roles/ec2_instance_create/meta/argument_specs.yml Outdated Show resolved Hide resolved
roles/ec2_instance_create/meta/argument_specs.yml Outdated Show resolved Hide resolved
roles/ec2_instance_create/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create/meta/argument_specs.yml Outdated Show resolved Hide resolved
roles/ec2_instance_create/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create/README.md Outdated Show resolved Hide resolved

### Role Operation

* **ec2_instance_create_operation**: (Optional)
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be replaced by the instance state with the values: present, running...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I left a comment about this but I disagree, for this use case I think we should stick to create and delete.

roles/ec2_instance_create/meta/argument_specs.yml Outdated Show resolved Hide resolved
@mandar242 mandar242 requested a review from abikouo December 1, 2024 19:05
roles/ec2_instance_create_delete/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create_delete/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create_delete/meta/argument_specs.yml Outdated Show resolved Hide resolved
roles/ec2_instance_create_delete/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create_delete/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create_delete/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create_delete/meta/argument_specs.yml Outdated Show resolved Hide resolved
roles/ec2_instance_create/README.md Outdated Show resolved Hide resolved
@hakbailey hakbailey force-pushed the ec2-create-instance-role branch from d3bbb9f to 076eade Compare December 5, 2024 20:04
@hakbailey hakbailey self-requested a review December 5, 2024 20:11
Copy link
Contributor

@GomathiselviS GomathiselviS left a comment

Choose a reason for hiding this comment

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

Just a small suggestion, not a requirement. Do you think it would be better to rename the role to something like ec2_instance_management or manage_ec2_instance, or something along those lines?

roles/ec2_instance_create_delete/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create_delete/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create_delete/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create_delete/README.md Outdated Show resolved Hide resolved
roles/ec2_instance_create_delete/meta/argument_specs.yml Outdated Show resolved Hide resolved
roles/ec2_instance_create_delete/meta/argument_specs.yml Outdated Show resolved Hide resolved
roles/ec2_instance_create_delete/README.md Outdated Show resolved Hide resolved
@hakbailey hakbailey changed the title Add new ec2_instance_create role Add new manage_ec2_instance role Dec 6, 2024
@hakbailey hakbailey merged commit 8bc3076 into redhat-cop:main Dec 9, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants