Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Terraform Plan Fails #2

Open
brianantonelli opened this issue Sep 6, 2017 · 0 comments
Open

Terraform Plan Fails #2

brianantonelli opened this issue Sep 6, 2017 · 0 comments

Comments

@brianantonelli
Copy link

When running the example command against the example Swagger YAML the terraform plan command fails:

$ jsderef swagger.yaml | swagger2tf > schema.tf
$ terraform plan

1 error(s) occurred:

* module root: 2 error(s) occurred:

* resource 'aws_api_gateway_authorizer.default' config: unknown resource 'aws_iam_role.apigateway' referenced in variable aws_iam_role.apigateway.arn
* resource 'aws_api_gateway_authorizer.default' config: unknown resource 'aws_lambda_function.authorizer' referenced in variable aws_lambda_function.authorizer.arn

I also get similar errors when running against my own Swagger YAML:

$ jsderef api/swagger/swagger.yaml | swagger2tf > apig-terraform/schema.tf
$ cd apig-terraform/
$ terraform plan

Failed to load root config module: Error loading /Users/brianantonelli/Dev/apig-tf-example/example/eb_sample_swagger_app/apig-terraform/schema.tf: position -: resource must be followed by exactly two strings, a type and a name

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant