Code Monkey home page Code Monkey logo

Comments (5)

zackse avatar zackse commented on August 12, 2024 1

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.

zackse avatar zackse commented on August 12, 2024

What is the output from cf-to-tf --stack /home/Username/Desktop/Test config ?

from cf-to-tf.

LucasGood avatar LucasGood commented on August 12, 2024

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.

LucasGood avatar LucasGood commented on August 12, 2024

Those recommended changes solved the problem I was getting running this against the example template.

from cf-to-tf.

ASethi93 avatar ASethi93 commented on August 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.