Comments (5)
Given a stack name parameter, the program will attempt to pull the configuration from AWS (i.e., the argument is not a path). To use a local file, try passing its contents to standard input:
cf-to-tf --stack - config < /home/Username/Desktop/Test
from cf-to-tf.
What is the output from cf-to-tf --stack /home/Username/Desktop/Test config
?
from cf-to-tf.
Here is the error message, if that is what you are asking for. I am trying to pull the config file from a local source, not directly from the AWS account.
{ ConfigError: Missing region in config at Request.VALIDATE_REGION (/usr/local/lib/node_modules/@humanmade/cf-to-tf/node_modules/aws-sdk/lib/event_listeners.js:91:45) at Request.callListeners (/usr/local/lib/node_modules/@humanmade/cf-to-tf/node_modules/aws-sdk/lib/sequential_executor.js:109:20) at callNextListener (/usr/local/lib/node_modules/@humanmade/cf-to-tf/node_modules/aws-sdk/lib/sequential_executor.js:99:12) at /usr/local/lib/node_modules/@humanmade/cf-to-tf/node_modules/aws-sdk/lib/event_listeners.js:85:9 at finish (/usr/local/lib/node_modules/@humanmade/cf-to-tf/node_modules/aws-sdk/lib/config.js:322:7) at /usr/local/lib/node_modules/@humanmade/cf-to-tf/node_modules/aws-sdk/lib/config.js:340:9 at SharedIniFileCredentials.get (/usr/local/lib/node_modules/@humanmade/cf-to-tf/node_modules/aws-sdk/lib/credentials.js:126:7) at getAsyncCredentials (/usr/local/lib/node_modules/@humanmade/cf-to-tf/node_modules/aws-sdk/lib/config.js:334:24) at Config.getCredentials (/usr/local/lib/node_modules/@humanmade/cf-to-tf/node_modules/aws-sdk/lib/config.js:354:9) at Request.VALIDATE_CREDENTIALS (/usr/local/lib/node_modules/@humanmade/cf-to-tf/node_modules/aws-sdk/lib/event_listeners.js:80:26) message: 'Missing region in config', code: 'ConfigError', time: 2018-10-18T23:20:33.964Z }
from cf-to-tf.
Those recommended changes solved the problem I was getting running this against the example template.
from cf-to-tf.
Hi i am having an error, i have set the profile with the region it still shows this error cf-to-tf -s LogStack state | tee terraform.tfstate
Error [ConfigError]: Missing region in config
at Request.VALIDATE_REGION (/usr/local/lib/node_modules/@humanmade/cf-to-tf/node_modules/aws-sdk/lib/event_listeners.js:92:45)
at Request.callListeners (/usr/local/lib/node_modules/@humanmade/cf-to-tf/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
at callNextListener (/usr/local/lib/node_modules/@humanmade/cf-to-tf/node_modules/aws-sdk/lib/sequential_executor.js:96:12)
at /usr/local/lib/node_modules/@humanmade/cf-to-tf/node_modules/aws-sdk/lib/event_listeners.js:86:9
at finish (/usr/local/lib/node_modules/@humanmade/cf-to-tf/node_modules/aws-sdk/lib/config.js:379:7)
at /usr/local/lib/node_modules/@humanmade/cf-to-tf/node_modules/aws-sdk/lib/config.js:397:9
at SharedIniFileCredentials.get (/usr/local/lib/node_modules/@humanmade/cf-to-tf/node_modules/aws-sdk/lib/credentials.js:127:7)
at getAsyncCredentials (/usr/local/lib/node_modules/@humanmade/cf-to-tf/node_modules/aws-sdk/lib/config.js:391:24)
at Config.getCredentials (/usr/local/lib/node_modules/@humanmade/cf-to-tf/node_modules/aws-sdk/lib/config.js:411:9)
at Request.VALIDATE_CREDENTIALS (/usr/local/lib/node_modules/@humanmade/cf-to-tf/node_modules/aws-sdk/lib/event_listeners.js:81:26) {
message: 'Missing region in config',
code: 'ConfigError',
time: 2020-02-12T17:36:35.904Z
}
from cf-to-tf.
Related Issues (17)
- Installation failed HOT 1
- Parse Error HOT 2
- nested cloudformation to terraform
- Doesn't support MFA
- Missing required but undoc'd config step results in "Missing region in config" HOT 2
- installation issue. HOT 1
- template call fails
- Type Error when i run cf-to-tf HOT 1
- Unable to parse json error HOT 1
- node --harmony HOT 10
- Not able to generate tfstate file
- How to actually convert Cloudformation templates to Terraform code HOT 4
- Installing and Using this script is a hassle HOT 1
- Cloudformation template support? HOT 2
- No longer maintained HOT 5
- \'stackName\' failed to satisfy constraint HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cf-to-tf.