crossplane-contrib / provider-upjet-aws

Official AWS Provider for Crossplane by Upbound.
https://marketplace.upbound.io/providers/upbound/provider-aws
Apache License 2.0
137 stars 113 forks source link

"allocationRefId" for LB in provider-aws-elbv2 #1278

Open milers0 opened 2 months ago

milers0 commented 2 months ago

What problem are you facing?

It seems that the property "allocationRefId" has not been implemented for LB in provider-aws-elbv2 (v1.3.1).

When creating an internet-facing load balancer, I would like to make a reference to a public IP address that is already created with Crossplane (using kind: EIP). In other providers/CRDs, such as NATGateway in provider-aws-ec2 (v1.3.1), it is possible to use allocationIdRef to make a reference to the EIP object, to actually use the IP address, but LB only allows allocationId. Not having allocationIdRef requires a manual update by checking the allocationId in the AWS console.

How could Official AWS Provider help solve your problem?

By implementing the "allocationRefId" property for LB in provider-aws-elbv2 (v1.3.1). It has already been implemented by other providers, for example, NATGateway in provider-aws-ec2 (v1.3.1).

Thank you for taking the time to read the issue. If I have overlooked anything, then please let me know.

P.S. This issue was first raised here, but it was mentioned to open the issue here.

mbbush commented 2 months ago

It sounds like the request is to add a new cross-resource reference to this resource kind.

This would be a great first contribution if you're willing. There are plenty of examples to follow and automated tests to run to ensure you're doing it correctly.

Basically all you'd need to do would be:

milers0 commented 2 months ago

Hi Matt, thanks for the explanation!

I will give it a go somewhere this or next week. At the moment, I do not have any experience with Go nor with Open Source projects. Hope that's okay!