GoogleCloudPlatform / terraformer

CLI tool to generate terraform files from existing infrastructure (reverse Terraform). Infrastructure to Code
Apache License 2.0
12.09k stars 1.6k forks source link

Support for AWS API Gateway v2 (HTTP API, WebSocket API) #1853

Closed vazome closed 4 weeks ago

vazome commented 3 months ago

Hi! I tried to import my HTTP AWS API Gateway:

terraformer import aws --resources=api_gateway --regions=eu-central-1
2024/03/07 04:12:48 aws importing region eu-central-1
2024/03/07 04:12:50 aws importing... api_gateway
2024/03/07 04:12:52 aws done importing api_gateway
2024/03/07 04:12:52 Number of resources for service api_gateway: 0
2024/03/07 04:12:52 aws Connecting....
2024/03/07 04:12:52 aws save api_gateway
2024/03/07 04:12:52 aws save tfstate for api_gateway

The number is 0, which is strange considering I indeed have it deployed in my account.

image

Then I checked the source code for terraformer, particularly api_gateway.go, and it appears it references AWS SDK API Gateway whereas AWS SDK API Gateway v2 is released which enables HTTP API, WebSocket API types.

lballe commented 3 months ago

+1

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 4 weeks ago

This issue was closed because it has been stalled for 7 days with no activity.