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_elb_lb boto3 migration #377

Merged
merged 38 commits into from
Sep 28, 2021

Conversation

tremble
Copy link
Contributor

@tremble tremble commented May 28, 2021

SUMMARY

Rewrite ec2_elb_lb using the boto3 SDK

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

ec2_elb_lb

ADDITIONAL INFORMATION

Current state

  • renamed to elb_classic_lb
  • create/delete ELBs
  • change schema
  • update availability-zones
  • update subnets
  • manage tags
  • manage listeners
  • manage health checks
  • manage cross-AZ balancing
  • manage draining
  • manage idle_timeout
  • manage backend policies
  • manage stickiness
  • manage Instance attachment
  • manage access logging
  • lookup SGs by name
  • parameter validation (protocol, mandatory on creation etc)

Depends-On: ansible/ansible-zuul-jobs#1097

@ansibullbot
Copy link

@ansibullbot ansibullbot added WIP Work in progress feature This issue/PR relates to a feature request integration tests/integration module module needs_triage plugins plugin (any type) tests tests labels May 28, 2021
@tremble

This comment has been minimized.

@ansibullbot ansibullbot added new_module New module new_plugin New plugin module_utils module_utils labels Aug 15, 2021
@jillr
Copy link
Collaborator

jillr commented Aug 17, 2021

following up on our irc convo, I'm +1 to ec2_classic_lb with redirects (the ec2 classic announcements read like classic ELBs will also be retired, but I'm skimming quickly so I could have missed something)

@tremble

This comment has been minimized.

@tremble tremble changed the title [WIP] ec2_elb_lb boto3 migration ec2_elb_lb boto3 migration Aug 24, 2021
@tremble tremble requested review from alinabuzachis and jillr August 24, 2021 18:47
@tremble
Copy link
Contributor Author

tremble commented Sep 5, 2021

@jillr I've re-added the 'fact' (for what little a hard-coded value is worth). As such we should be able to land this in a normal minor release rather than this needing to wait for a major release.

There are a couple of similar 'facts' over in community.aws that we should probably prune at the same time we clean out all of the _fact aliases, and just have 3.0 labeled as our big "fact" cleanup.

@tremble

This comment has been minimized.

@tremble
Copy link
Contributor Author

tremble commented Sep 12, 2021

recheck

Copy link
Collaborator

@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.

All this seems good to me! Thank you @tremble, the review took more than I expected.

description:
- Creates, updates or destroys an Amazon Elastic Load Balancer (ELB).
- This module was renamed from M(ec2_elb_lb) to M(elb_classic_lb) in version
2.0.0 of the amazon.aws collection.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
2.0.0 of the amazon.aws collection.
2.1.0 of the amazon.aws collection.

plugins/modules/elb_classic_lb.py Outdated Show resolved Hide resolved
plugins/modules/elb_classic_lb.py Outdated Show resolved Hide resolved
We missed 2.0.0
@tremble tremble added the gate label Sep 28, 2021
Copy link
Contributor

@ansible-zuul ansible-zuul bot left a comment

Choose a reason for hiding this comment

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

LGTM!

@ansible-zuul ansible-zuul bot merged commit 0d790f6 into ansible-collections:main Sep 28, 2021
ansible-zuul bot pushed a commit that referenced this pull request Oct 26, 2021
elb_classic_lb - deprecate the ec2_elb fact

SUMMARY
deprecates the ec2_elb fact in favour of the elb return value.
Split off from #377
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
elb_classic_lb
ADDITIONAL INFORMATION
(yes, this module set a fact with the same name, but different content, as the elb_instance module.)

Reviewed-by: Alina Buzachis <None>
Reviewed-by: None <None>
@tremble tremble deleted the boto3/ec2_elb_lb branch November 26, 2021 12:42
softwarefactory-project-zuul bot pushed a commit that referenced this pull request May 25, 2022
elb_classic_lb - Remove deprecated ec2_elb fact

SUMMARY
Remove previously deprecated ec2_elb fact from elb_classic_lb this only every returned the value 'info'.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
elb_classic_lb
ADDITIONAL INFORMATION
See also #552 and #377 for some of the history.

Reviewed-by: Alina Buzachis <None>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community_review feature This issue/PR relates to a feature request has_issue integration tests/integration module_utils module_utils module module new_module New module new_plugin New plugin plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants