Last active
April 29, 2016 03:07
-
-
Save ijin/ce0147db0a9033837a282011fc46d836 to your computer and use it in GitHub Desktop.
[Terraform Plan] API Gateway to get Elastic Beanstalk IP(s)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ terraform plan | |
Refreshing Terraform state prior to plan... | |
The Terraform execution plan has been generated and is shown below. | |
Resources are shown in alphabetical order for quick scanning. Green resources | |
will be created (or destroyed and then created if an existing resource | |
exists), yellow resources are being changed in-place, and red resources | |
will be destroyed. | |
Note: You didn't specify an "-out" parameter to save this plan, so when | |
"apply" is called, Terraform can't guarantee this is what will execute. | |
+ aws_api_gateway_deployment.eb_deployment | |
rest_api_id: "" => "${aws_api_gateway_rest_api.EB.id}" | |
stage_name: "" => "prod" | |
+ aws_api_gateway_integration.ip_get | |
http_method: "" => "GET" | |
integration_http_method: "" => "POST" | |
request_templates.#: "" => "1" | |
request_templates.application/json: "" => "{ \"env_name\": \"$input.params('env_name')\" }" | |
resource_id: "" => "${aws_api_gateway_resource.ip.id}" | |
rest_api_id: "" => "${aws_api_gateway_rest_api.EB.id}" | |
type: "" => "AWS" | |
uri: "" => "arn:aws:apigateway:ap-northeast-1:lambda:path/2015-03-31/functions/arn:aws:lambda:ap-northeast-1:123456789012:function:eb_ip/invocations" | |
+ aws_api_gateway_integration.server_num_get | |
http_method: "" => "GET" | |
integration_http_method: "" => "POST" | |
request_templates.#: "" => "1" | |
request_templates.application/json: "" => "{\n \"env_name\": \"$input.params('env_name')\",\n \"server_num\": \"$input.params('server_num')\" \n}" | |
resource_id: "" => "${aws_api_gateway_resource.server_num.id}" | |
rest_api_id: "" => "${aws_api_gateway_rest_api.EB.id}" | |
type: "" => "AWS" | |
uri: "" => "arn:aws:apigateway:ap-northeast-1:lambda:path/2015-03-31/functions/arn:aws:lambda:ap-northeast-1:123456789012:function:eb_ip/invocations" | |
+ aws_api_gateway_integration_response.ip_get_200 | |
http_method: "" => "GET" | |
resource_id: "" => "${aws_api_gateway_resource.ip.id}" | |
response_templates.#: "" => "1" | |
response_templates.application/json: "" => "$input.path('$')" | |
rest_api_id: "" => "${aws_api_gateway_rest_api.EB.id}" | |
status_code: "" => "200" | |
+ aws_api_gateway_integration_response.ip_get_400 | |
http_method: "" => "GET" | |
resource_id: "" => "${aws_api_gateway_resource.ip.id}" | |
response_templates.#: "" => "1" | |
response_templates.application/json: "" => "$input.path('$').errorMessage" | |
rest_api_id: "" => "${aws_api_gateway_rest_api.EB.id}" | |
selection_pattern: "" => "[^0-9](.|\n)*" | |
status_code: "" => "400" | |
+ aws_api_gateway_integration_response.server_num_get_200 | |
http_method: "" => "GET" | |
resource_id: "" => "${aws_api_gateway_resource.server_num.id}" | |
response_templates.#: "" => "1" | |
response_templates.application/json: "" => "$input.path('$')" | |
rest_api_id: "" => "${aws_api_gateway_rest_api.EB.id}" | |
status_code: "" => "200" | |
+ aws_api_gateway_integration_response.server_num_get_400 | |
http_method: "" => "GET" | |
resource_id: "" => "${aws_api_gateway_resource.server_num.id}" | |
response_templates.#: "" => "1" | |
response_templates.application/json: "" => "$input.path('$').errorMessage" | |
rest_api_id: "" => "${aws_api_gateway_rest_api.EB.id}" | |
selection_pattern: "" => "[^0-9](.|\n)*" | |
status_code: "" => "400" | |
+ aws_api_gateway_method.ip_get | |
api_key_required: "" => "0" | |
authorization: "" => "NONE" | |
http_method: "" => "GET" | |
resource_id: "" => "${aws_api_gateway_resource.ip.id}" | |
rest_api_id: "" => "${aws_api_gateway_rest_api.EB.id}" | |
+ aws_api_gateway_method.server_num_get | |
api_key_required: "" => "0" | |
authorization: "" => "NONE" | |
http_method: "" => "GET" | |
api_key_required: "" => "0" | |
authorization: "" => "NONE" | |
http_method: "" => "GET" | |
resource_id: "" => "${aws_api_gateway_resource.server_num.id}" | |
rest_api_id: "" => "${aws_api_gateway_rest_api.EB.id}" | |
+ aws_api_gateway_method_response.ip_200 | |
http_method: "" => "GET" | |
resource_id: "" => "${aws_api_gateway_resource.ip.id}" | |
rest_api_id: "" => "${aws_api_gateway_rest_api.EB.id}" | |
status_code: "" => "200" | |
+ aws_api_gateway_method_response.ip_400 | |
http_method: "" => "GET" | |
resource_id: "" => "${aws_api_gateway_resource.ip.id}" | |
rest_api_id: "" => "${aws_api_gateway_rest_api.EB.id}" | |
status_code: "" => "400" | |
+ aws_api_gateway_method_response.server_num_200 | |
http_method: "" => "GET" | |
resource_id: "" => "${aws_api_gateway_resource.server_num.id}" | |
rest_api_id: "" => "${aws_api_gateway_rest_api.EB.id}" | |
status_code: "" => "200" | |
+ aws_api_gateway_method_response.server_num_400 | |
http_method: "" => "GET" | |
resource_id: "" => "${aws_api_gateway_resource.server_num.id}" | |
rest_api_id: "" => "${aws_api_gateway_rest_api.EB.id}" | |
status_code: "" => "400" | |
+ aws_api_gateway_resource.eb | |
parent_id: "" => "${aws_api_gateway_rest_api.EB.root_resource_id}" | |
path: "" => "<computed>" | |
path_part: "" => "eb" | |
rest_api_id: "" => "${aws_api_gateway_rest_api.EB.id}" | |
+ aws_api_gateway_resource.env_name | |
parent_id: "" => "${aws_api_gateway_resource.eb.id}" | |
path: "" => "<computed>" | |
path_part: "" => "{env_name}" | |
rest_api_id: "" => "${aws_api_gateway_rest_api.EB.id}" | |
+ aws_api_gateway_resource.ip | |
parent_id: "" => "${aws_api_gateway_resource.env_name.id}" | |
path: "" => "<computed>" | |
path_part: "" => "ip" | |
rest_api_id: "" => "${aws_api_gateway_rest_api.EB.id}" | |
+ aws_api_gateway_resource.server_num | |
parent_id: "" => "${aws_api_gateway_resource.ip.id}" | |
path: "" => "<computed>" | |
path_part: "" => "{server_num}" | |
rest_api_id: "" => "${aws_api_gateway_rest_api.EB.id}" | |
+ aws_api_gateway_rest_api.EB | |
description: "" => "get EB info" | |
name: "" => "EB" | |
root_resource_id: "" => "<computed>" | |
Plan: 18 to add, 0 to change, 0 to destroy. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment