provider-aws icon indicating copy to clipboard operation
provider-aws copied to clipboard

domain.opensearchservice: vpc endpoint URI does not appear in status.atProvider

Open kkendzia opened this issue 1 year ago • 0 comments

What happened?

When creating a Domain or a Server it also creates, with the correct configuration, a VPC Endpoint. Unfortunately the only possiblity to retrieve the URI is by using aws-cli (or console), because the information won't be added to the status output of the resources.

DomainStatus.Endpoints.vpc provides you with the necessary URI, but https://github.com/crossplane-contrib/provider-aws/blob/master/pkg/controller/opensearchservice/domain/zz_controller.go#L353 somehow doesn't map it correctly apparently.

This is the response of the aws-cli call.

bash-4.2# aws opensearch describe-domain --domain-name <domainname>
{
    "DomainStatus": {
        "DomainId": "<domainid>",
        "DomainName": "<domainname",
        "ARN": "<domainArn>",
        "Created": true,
        "Deleted": false,
        "Endpoints": {
            "vpc": "vpc-<domainname>-<hash>.eu-central-1.es.amazonaws.com"
        },
....

How can we reproduce it?

Create a Domain and take a look at status of the resource

What environment did it happen in?

Crossplane version: 1.14.5

kubectl version Client Version: v1.28.2 Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3 Server Version: v1.24.17-eks-5e0fdde

kkendzia avatar Feb 06 '24 09:02 kkendzia