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

aws_vpc_endpoint_service - Use Filter instead of ServiceNames #10853

Conversation

jaredledvina
Copy link

@jaredledvina jaredledvina commented Nov 12, 2019

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" comments, they generate extra noise for pull request followers and do not help prioritize the request

Release note for CHANGELOG:

aws_vpc_endpoint_service - Query via Filters for service-names instead of ServiceNames

us-east-1 currently fails to have the s3 service endpoint returned when used in this fashion. This switches the code to using filters which works in us-east-1 and the other regions.

As of 6:26:30 PM EST on Tuesday, November 12, 2019:

❯ aws ec2 describe-vpc-endpoint-services --service-names "com.amazonaws.us-east-1.s3"

An error occurred (InvalidServiceName) when calling the DescribeVpcEndpointServices operation: The Vpc Endpoint Service 'com.amazonaws.us-east-1.s3' does not exist

Whereas the filter expression works:

❯ aws ec2 describe-vpc-endpoint-services --filter "Name=service-name,Values=com.amazonaws.us-east-1.s3"
{
    "ServiceDetails": [
        {
            "ServiceName": "com.amazonaws.us-east-1.s3",
            "ServiceId": "vpce-svc-1234567890",
            "ServiceType": [
                {
                    "ServiceType": "Gateway"
                }
            ],
            "AvailabilityZones": [
                "us-east-1a",
                "us-east-1b",
                "us-east-1c",
                "us-east-1d",
                "us-east-1e",
                "us-east-1f"
            ],
            "Owner": "amazon",
            "BaseEndpointDnsNames": [
                "s3.us-east-1.amazonaws.com"
            ],
            "VpcEndpointPolicySupported": true,
            "AcceptanceRequired": false,
            "ManagesVpcEndpoints": false,
            "Tags": []
        }
    ],
    "ServiceNames": [
        "com.amazonaws.us-east-1.s3"
    ]
}

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccXXX'
TODO

@jaredledvina jaredledvina requested a review from a team November 12, 2019 23:27
@ghost ghost added needs-triage Waiting for first response or review from a maintainer. size/XS Managed by automation to categorize the size of a PR. service/ec2 Issues and PRs that pertain to the ec2 service. labels Nov 12, 2019
@jaredledvina
Copy link
Author

Noting here, the issue on the AWS side has been resolved. I think this PR can still go in but, is no longer required.

@bflad
Copy link
Contributor

bflad commented Feb 20, 2020

Hi @jaredledvina 👋 Thank you for submitting this. Our general preference is to have Terraform resource arguments match the underlying API request structure, so operators do not need to know about any special translation that might be occurring within Terraform. This data source should support filter configuration blocks, similar to other EC2 data sources and an issue has been created in that regard: #11994

Since the underlying API issue has been resolved (so there's no bug to fix), there's no additional upvotes to this pull request, and there's a tracking issue for future enhancement work, I'm going to close this. Thank you again.

@ghost
Copy link

ghost commented Mar 27, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 27, 2020
@breathingdust breathingdust removed the needs-triage Waiting for first response or review from a maintainer. label Sep 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/ec2 Issues and PRs that pertain to the ec2 service. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants